diff options
author | Steve French <smfrench@gmail.com> | 2017-09-25 20:11:58 -0500 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2017-10-18 11:52:39 -0500 |
commit | 06e2290844fa408d3295ac03a1647f0798518ebe (patch) | |
tree | 9e02b92b9935ee4b3bb735b682b713192f258cdb /fs/cifs/cifsglob.h | |
parent | 3e0cc09a3a2c40ec1ffb6b4e12da86e98feccb11 (diff) | |
download | op-kernel-dev-06e2290844fa408d3295ac03a1647f0798518ebe.zip op-kernel-dev-06e2290844fa408d3295ac03a1647f0798518ebe.tar.gz |
Fix encryption labels and lengths for SMB3.1.1
SMB3.1.1 is most secure and recent dialect. Fixup labels and lengths
for sMB3.1.1 signing and encryption.
Signed-off-by: Steve French <smfrench@gmail.com>
CC: Stable <stable@vger.kernel.org>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index de5b2e1..e185b28 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h @@ -661,7 +661,9 @@ struct TCP_Server_Info { #endif unsigned int max_read; unsigned int max_write; - __u8 preauth_hash[512]; +#ifdef CONFIG_CIFS_SMB311 + __u8 preauth_sha_hash[64]; /* save initital negprot hash */ +#endif /* 3.1.1 */ struct delayed_work reconnect; /* reconnect workqueue job */ struct mutex reconnect_mutex; /* prevent simultaneous reconnects */ unsigned long echo_interval; @@ -849,7 +851,9 @@ struct cifs_ses { __u8 smb3signingkey[SMB3_SIGN_KEY_SIZE]; __u8 smb3encryptionkey[SMB3_SIGN_KEY_SIZE]; __u8 smb3decryptionkey[SMB3_SIGN_KEY_SIZE]; - __u8 preauth_hash[512]; +#ifdef CONFIG_CIFS_SMB311 + __u8 preauth_sha_hash[64]; +#endif /* 3.1.1 */ }; static inline bool |