summaryrefslogtreecommitdiff
path: root/fs/ksmbd/crypto_ctx.c
diff options
context:
space:
mode:
authorNamjae Jeon <linkinjeon@kernel.org>2021-09-27 15:47:48 +0300
committerSteve French <stfrench@microsoft.com>2021-09-30 00:17:34 +0300
commitce812992f239f45e13c820a52455fec6eacbce1e (patch)
tree743f1ea2edbb126c662e7cffacd0e8697dd6f583 /fs/ksmbd/crypto_ctx.c
parent1018bf24550fd0feec14648309a0aeb62401f4dc (diff)
downloadlinux-ce812992f239f45e13c820a52455fec6eacbce1e.tar.xz
ksmbd: remove NTLMv1 authentication
Remove insecure NTLMv1 authentication. Cc: Ronnie Sahlberg <ronniesahlberg@gmail.com> Cc: Ralph Böhme <slow@samba.org> Reviewed-by: Tom Talpey <tom@talpey.com> Acked-by: Steve French <smfrench@gmail.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/ksmbd/crypto_ctx.c')
-rw-r--r--fs/ksmbd/crypto_ctx.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/fs/ksmbd/crypto_ctx.c b/fs/ksmbd/crypto_ctx.c
index 5f4b1008d17e..81488d04199d 100644
--- a/fs/ksmbd/crypto_ctx.c
+++ b/fs/ksmbd/crypto_ctx.c
@@ -81,12 +81,6 @@ static struct shash_desc *alloc_shash_desc(int id)
case CRYPTO_SHASH_SHA512:
tfm = crypto_alloc_shash("sha512", 0, 0);
break;
- case CRYPTO_SHASH_MD4:
- tfm = crypto_alloc_shash("md4", 0, 0);
- break;
- case CRYPTO_SHASH_MD5:
- tfm = crypto_alloc_shash("md5", 0, 0);
- break;
default:
return NULL;
}
@@ -214,16 +208,6 @@ struct ksmbd_crypto_ctx *ksmbd_crypto_ctx_find_sha512(void)
return ____crypto_shash_ctx_find(CRYPTO_SHASH_SHA512);
}
-struct ksmbd_crypto_ctx *ksmbd_crypto_ctx_find_md4(void)
-{
- return ____crypto_shash_ctx_find(CRYPTO_SHASH_MD4);
-}
-
-struct ksmbd_crypto_ctx *ksmbd_crypto_ctx_find_md5(void)
-{
- return ____crypto_shash_ctx_find(CRYPTO_SHASH_MD5);
-}
-
static struct ksmbd_crypto_ctx *____crypto_aead_ctx_find(int id)
{
struct ksmbd_crypto_ctx *ctx;