CIFS: Enable encryption during session setup phase

commit cabfb3680f upstream.

In order to allow encryption on SMB connection we need to exchange
a session key and generate encryption and decryption keys.

Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
[bwh: Backported to 3.16:
 - SMB2_sess_establish_session() has not been split out from SMB2_sess_setup()
   and there is additional cleanup to do on error, so keep the
   'goto keygen_exit'
 - Adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
This commit is contained in:
Pavel Shilovsky 2016-11-07 18:20:50 -08:00 • committed by Ben Hutchings
commit cbf513cb20
2 changed files with 11 additions and 19 deletions