smbd:smb2: only enable encryption in session if desired
commit8e06f1811032f330ef13b1a02aaf1c2d4a4d9f38
authorMichael Adam <obnox@samba.org>
Wed, 1 Jul 2015 16:07:26 +0000 (1 18:07 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 16 Jul 2015 09:48:29 +0000 (16 11:48 +0200)
tree819cf9994213e325fd5ee2edbe863c6c76e2a636
parent6cb67e5aa66898b1d4bab189dd66d8e009d73f97
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