mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
s4:libcli/smb2: let SMB_SIGNING_AUTO behave like SMB_SIGNING_SUPPORTED
This matches the smb1 behavior. metze
This commit is contained in:
parent
418908eb21
commit
f293438abd
@ -224,14 +224,8 @@ static void smb2_connect_negprot_done(struct smb2_request *smb2req)
|
||||
transport->signing_required = false;
|
||||
break;
|
||||
case SMB_SIGNING_SUPPORTED:
|
||||
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) {
|
||||
if (transport->negotiate.security_mode & SMB2_NEGOTIATE_SIGNING_REQUIRED) {
|
||||
transport->signing_required = true;
|
||||
} else {
|
||||
transport->signing_required = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user