smbd:smb2: only enable encryption in session if desired
authorMichael Adam <obnox@samba.org>
Wed, 1 Jul 2015 16:07:26 +0000 (18:07 +0200)
committerKarolin Seeger <kseeger@samba.org>
Sun, 19 Jul 2015 18:13:10 +0000 (20:13 +0200)
commit2cad86cbece6a7a09755dee1e9008d0c89b342ba
tree000571e3734ef913af4443086813d97544ae4fc7
parent3ed2fbe74351ff13da935af355e87c28f4992415
smbd:smb2: only enable encryption in session if desired

Don't enforce it but only announce ENCRYPT_DATA, using the
encryption_desired flag in session setup.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11372

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
(cherry picked from commit fc228025d78f165815d3fa1670d51f0c27ed2091)
source3/smbd/smb2_sesssetup.c