From 10a1caa46d01677cc40cd1193866187d4b1acd18 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 15 May 2019 08:02:59 +0200 Subject: [PATCH] libcli:auth: Use GnuTLS MD5 in encode_or_decode_arc4_passwd_buffer() Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- libcli/auth/smbencrypt.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libcli/auth/smbencrypt.c b/libcli/auth/smbencrypt.c index ca1d42b678d..958c011caa0 100644 --- a/libcli/auth/smbencrypt.c +++ b/libcli/auth/smbencrypt.c @@ -924,8 +924,6 @@ void encode_wkssvc_join_password_buffer(TALLOC_CTX *mem_ctx, generate_random_buffer((uint8_t *)confounder, confounder_len); - GNUTLS_FIPS140_SET_LAX_MODE(); - rc = gnutls_hash_init(&hash_hnd, GNUTLS_DIG_MD5); if (rc < 0) { goto out; @@ -955,7 +953,6 @@ void encode_wkssvc_join_password_buffer(TALLOC_CTX *mem_ctx, *pwd_buf = my_pwd_buf; out: - GNUTLS_FIPS140_SET_STRICT_MODE(); return; }