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)
committerKarolin Seeger <kseeger@samba.org>
Sun, 19 Jul 2015 18:13:10 +0000 (20:13 +0200)
commit57c879aa568f3c5f81e5ebd167cebdefe0f55af3
treeffffaa60fb2d074c4d4defff299f3a45bda33086
parent2cad86cbece6a7a09755dee1e9008d0c89b342ba
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>
(cherry picked from commit 41cb881e775ea7eb0c59d9e0cafb6ab5531918d9)
source3/smbd/smb2_tcon.c