summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;