smbd:smb2: only enable encryption in tcon if desired
authorMichael Adam <obnox@samba.org>
Wed, 1 Jul 2015 16:07:52 +0000 (18:07 +0200)
committerGünther Deschner <gd@samba.org>
Tue, 7 Jul 2015 12:05:27 +0000 (14:05 +0200)
commit41cb881e775ea7eb0c59d9e0cafb6ab5531918d9
tree6ec0c23c76f939a90a5d70169e5dec51eea8e21a
parentfc228025d78f165815d3fa1670d51f0c27ed2091
smbd:smb2: only enable encryption in tcon if desired

Don't enforce it but only announce DATA_ENCRYPT,
making use of encryption_desired in tcon.

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_tcon.c