]> git.itanic.dy.fi Git - linux-stable/commit
CIFS: Enable encryption during session setup phase
authorPavel Shilovsky <pshilov@microsoft.com>
Tue, 8 Nov 2016 02:20:50 +0000 (18:20 -0800)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 4 Apr 2019 15:14:12 +0000 (16:14 +0100)
commitcbf513cb2080cc507f4b1f2d1a95141e64c87db3
tree3b68ee6f76606f2e667aa4577ec73f7896f449ea
parent553ae0f9207b1779e4da88b53f3a1f0cb0c127c6
CIFS: Enable encryption during session setup phase

commit cabfb3680f78981d26c078a26e5c748531257ebb 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>
fs/cifs/sess.c
fs/cifs/smb2pdu.c