s3:smb2_server: check xconn->smb2.server.cipher instead of xconn->smb2.server.capabil...
commit1ed30a6ba7beab8cd3a4a1cfce3724cdc61dbcab
authorStefan Metzmacher <metze@samba.org>
Mon, 13 Oct 2014 09:07:01 +0000 (13 11:07 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 16 Oct 2014 17:30:04 +0000 (16 19:30 +0200)
tree40c011c288202e28ad0fd89619412efb9d67ecde
parentb4604590b0f4c485e6c283070c36678b2bf9f052
s3:smb2_server: check xconn->smb2.server.cipher instead of xconn->smb2.server.capabilities

SMB 3.10 and later won't have SMB2_CAP_ENCRYPTION anymore.

xconn->smb2.server.cipher == 0 is the indication that we don't support encryption on the connection.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb2_server.c
source3/smbd/smb2_sesssetup.c
source3/smbd/smb2_tcon.c