summaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2pdu.c
diff options
context:
space:
mode:
authorSteve French <smfrench@gmail.com>2013-11-15 23:50:24 -0600
committerSteve French <smfrench@gmail.com>2013-11-15 23:50:24 -0600
commit0cbaa53cdd33080c1e2d67ad9295b83c7954f2b3 (patch)
tree2980f4a149b80f384ed3de6defabcd2f4974a76e /fs/cifs/smb2pdu.c
parentb1d93356427be6f050dc55c86eb019d173700af6 (diff)
downloadop-kernel-dev-0cbaa53cdd33080c1e2d67ad9295b83c7954f2b3.zip
op-kernel-dev-0cbaa53cdd33080c1e2d67ad9295b83c7954f2b3.tar.gz
[CIFS] Warn if SMB3 encryption required by server
We do not support SMB3 encryption yet, warn if server responds that SMB3 encryption is mandatory. Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/smb2pdu.c')
-rw-r--r--fs/cifs/smb2pdu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c
index ca7f307..d65270c 100644
--- a/fs/cifs/smb2pdu.c
+++ b/fs/cifs/smb2pdu.c
@@ -630,6 +630,8 @@ ssetup_ntlmssp_authenticate:
goto ssetup_exit;
ses->session_flags = le16_to_cpu(rsp->SessionFlags);
+ if (ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA)
+ cifs_dbg(VFS, "SMB3 encryption not supported yet\n");
ssetup_exit:
free_rsp_buf(resp_buftype, rsp);
OpenPOWER on IntegriCloud