smbd:smb2: separate between encryption required and enc desired
authorMichael Adam <obnox@samba.org>
Wed, 1 Jul 2015 15:42:58 +0000 (17:42 +0200)
committerGünther Deschner <gd@samba.org>
Tue, 7 Jul 2015 12:05:27 +0000 (14:05 +0200)
commit3bb299944391633c45d87d5e8ad48c2c14428592
treed67603c22bfb38db7b29518dec053567e70640af
parenta3ea6dbef53e049701326497e684e1563344e6d8
smbd:smb2: separate between encryption required and enc desired

this means we:
- accept unencrypted requests if encryption only desired
  and not required,
- but we always send encrypted responses in the desired
  case, not only when the request was encrypted.

For this purpose, the do_encryption in the request
structure is separated into was_encrypted and do_encryption.

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/globals.h
source3/smbd/smb2_server.c