summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnzo Matsumiya <ematsumiya@suse.de>2024-11-13 17:42:31 -0300
committerEnzo Matsumiya <ematsumiya@suse.de>2024-11-14 15:54:44 -0300
commit08b7526684abc39105b742a37c335969bd487aeb (patch)
tree7fe6d05f47efc1724e469d269e6b4e3d09d39dbd
parentedd88a5318ab95396a51f8a3ab7da6e2f62140be (diff)
downloadlinux-08b7526684abc39105b742a37c335969bd487aeb.tar.gz
linux-08b7526684abc39105b742a37c335969bd487aeb.tar.bz2
linux-08b7526684abc39105b742a37c335969bd487aeb.zip
smb: client: remove md5 secmech (SMB1)
Signed-off-by: Enzo Matsumiya <ematsumiya@suse.de>
-rw-r--r--fs/smb/client/cifsencrypt.c1
-rw-r--r--fs/smb/client/cifsglob.h1
2 files changed, 0 insertions, 2 deletions
diff --git a/fs/smb/client/cifsencrypt.c b/fs/smb/client/cifsencrypt.c
index b2d7df4dfbc8..c974b2b0ea6b 100644
--- a/fs/smb/client/cifsencrypt.c
+++ b/fs/smb/client/cifsencrypt.c
@@ -735,7 +735,6 @@ cifs_crypto_secmech_release(struct TCP_Server_Info *server)
{
cifs_free_hash(&server->secmech.aes_cmac);
cifs_free_hash(&server->secmech.hmacsha256);
- cifs_free_hash(&server->secmech.md5);
cifs_free_hash(&server->secmech.sha512);
cifs_free_hash(&server->secmech.hmacmd5);
diff --git a/fs/smb/client/cifsglob.h b/fs/smb/client/cifsglob.h
index 6a01b01ef8de..303074541cb3 100644
--- a/fs/smb/client/cifsglob.h
+++ b/fs/smb/client/cifsglob.h
@@ -179,7 +179,6 @@ struct session_key {
/* crypto hashing related structure/fields, not specific to a sec mech */
struct cifs_secmech {
struct shash_desc *hmacmd5; /* hmacmd5 hash function, for NTLMv2/CR1 hashes */
- struct shash_desc *md5; /* md5 hash function, for CIFS/SMB1 signatures */
struct shash_desc *hmacsha256; /* hmac-sha256 hash function, for SMB2 signatures */
struct shash_desc *sha512; /* sha512 hash function, for SMB3.1.1 preauth hash */
struct shash_desc *aes_cmac; /* block-cipher based MAC function, for SMB3 signatures */