diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-08-13 15:19:01 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-08-14 13:13:49 +0200 |
commit | f086e796d6a933b95e36f5638b39ee261fb6a784 (patch) | |
tree | 872bf561d928f2082f22d66f9ca86137f4a77ace /source4 | |
parent | be92e7fc11c9ee55beacf8c6cc019539d3d7c486 (diff) | |
download | samba-f086e796d6a933b95e36f5638b39ee261fb6a784.tar.gz samba-f086e796d6a933b95e36f5638b39ee261fb6a784.tar.bz2 samba-f086e796d6a933b95e36f5638b39ee261fb6a784.zip |
libcli/smb2: use smb2 signing in auto mode if the server supports it
metze
(This used to be commit fe74faf13dc64eaa58d757de156aedcb24abed1f)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/libcli/smb2/connect.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source4/libcli/smb2/connect.c b/source4/libcli/smb2/connect.c index c89c109b72..43151943d3 100644 --- a/source4/libcli/smb2/connect.c +++ b/source4/libcli/smb2/connect.c @@ -115,13 +115,19 @@ static void continue_negprot(struct smb2_request *req) transport->signing_required = false; break; case SMB_SIGNING_SUPPORTED: - case SMB_SIGNING_AUTO: if (transport->negotiate.security_mode & SMB2_NEGOTIATE_SIGNING_REQUIRED) { transport->signing_required = true; } else { transport->signing_required = false; } break; + case SMB_SIGNING_AUTO: + if (transport->negotiate.security_mode & SMB2_NEGOTIATE_SIGNING_ENABLED) { + transport->signing_required = true; + } else { + transport->signing_required = false; + } + break; case SMB_SIGNING_REQUIRED: if (transport->negotiate.security_mode & SMB2_NEGOTIATE_SIGNING_ENABLED) { transport->signing_required = true; |