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)
committerGünther Deschner <gd@samba.org>
Tue, 7 Jul 2015 12:05:27 +0000 (14:05 +0200)
commitfc228025d78f165815d3fa1670d51f0c27ed2091
tree588a08dac58a5200f30740f27b1efd09b9f2f400
parent3bb299944391633c45d87d5e8ad48c2c14428592
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>
source3/smbd/smb2_sesssetup.c