From 418908eb21fa8c6b36addd26e89f521fa77c745b Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 2 Nov 2011 17:02:03 +0100 Subject: s4:libcli/raw: only use smb signing if required This matches the source3 code, I want to have the behavior in common before I put the config options in common. Later we may change this consitently in all code. metze --- source4/libcli/raw/smb_signing.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/libcli/raw') diff --git a/source4/libcli/raw/smb_signing.c b/source4/libcli/raw/smb_signing.c index d6d53db329..588a86f51c 100644 --- a/source4/libcli/raw/smb_signing.c +++ b/source4/libcli/raw/smb_signing.c @@ -51,8 +51,8 @@ static bool smbcli_set_smb_signing_common(struct smbcli_transport *transport) return false; } - if (!(transport->negotiate.sec_mode & - (NEGOTIATE_SECURITY_SIGNATURES_REQUIRED|NEGOTIATE_SECURITY_SIGNATURES_ENABLED))) { + if (!(transport->negotiate.sec_mode & NEGOTIATE_SECURITY_SIGNATURES_REQUIRED) + && !transport->negotiate.sign_info.mandatory_signing) { DEBUG(5, ("SMB Signing is not negotiated by the peer\n")); return false; } -- cgit