diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-11-02 17:02:03 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-11-03 16:55:11 +0100 |
commit | 418908eb21fa8c6b36addd26e89f521fa77c745b (patch) | |
tree | 5ca1ad6dc92b43a72896c34c30cb8da66d08408b /source4 | |
parent | 09fe037b649edf4c58ec6a4f398af566c6a81fde (diff) | |
download | samba-418908eb21fa8c6b36addd26e89f521fa77c745b.tar.gz samba-418908eb21fa8c6b36addd26e89f521fa77c745b.tar.bz2 samba-418908eb21fa8c6b36addd26e89f521fa77c745b.zip |
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
Diffstat (limited to 'source4')
-rw-r--r-- | source4/libcli/raw/smb_signing.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |