summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-08-11 16:15:21 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:57:50 -0500
commit5a79e6cf484cd27092217a8e739e6d79bb8b12e9 (patch)
treede1742d9b2f437498f60427de2f670bf9cc54bf6 /source4
parent1bcd36ed8ac4cb748f80d75c3f3b9c33fb474a8d (diff)
downloadsamba-5a79e6cf484cd27092217a8e739e6d79bb8b12e9.tar.gz
samba-5a79e6cf484cd27092217a8e739e6d79bb8b12e9.tar.bz2
samba-5a79e6cf484cd27092217a8e739e6d79bb8b12e9.zip
r1725: Remove a silly 'utility' function.
Andrew Bartlett (This used to be commit 4d563d7e4afad1c5f583aca3f42087bfff0fb895)
Diffstat (limited to 'source4')
-rw-r--r--source4/libcli/raw/smb_signing.c20
1 files changed, 4 insertions, 16 deletions
diff --git a/source4/libcli/raw/smb_signing.c b/source4/libcli/raw/smb_signing.c
index ffbecb85fc..b65513ebce 100644
--- a/source4/libcli/raw/smb_signing.c
+++ b/source4/libcli/raw/smb_signing.c
@@ -50,20 +50,6 @@ static BOOL set_smb_signing_common(struct smbcli_transport *transport)
return True;
}
-/***********************************************************
- SMB signing - Common code for 'real' implementations
-************************************************************/
-static BOOL set_smb_signing_real_common(struct smbcli_transport *transport)
-{
- if (transport->negotiate.sign_info.mandatory_signing) {
- DEBUG(5, ("Mandatory SMB signing enabled!\n"));
- }
-
- DEBUG(5, ("SMB signing enabled!\n"));
-
- return True;
-}
-
static void mark_packet_signed(struct request_buffer *out)
{
uint16_t flags2;
@@ -268,10 +254,12 @@ BOOL smbcli_transport_simple_set_signing(struct smbcli_transport *transport,
return False;
}
- if (!set_smb_signing_real_common(transport)) {
- return False;
+ if (transport->negotiate.sign_info.mandatory_signing) {
+ DEBUG(5, ("Mandatory SMB signing enabled!\n"));
}
+ DEBUG(5, ("SMB signing enabled!\n"));
+
data = smb_xmalloc(sizeof(*data));
transport->negotiate.sign_info.signing_context = data;