1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

libcli:auth: Use GnuTLS MD5 in encode_or_decode_arc4_passwd_buffer()

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Andreas Schneider 2019-05-15 08:02:59 +02:00 committed by Andrew Bartlett
parent 2463d1111f
commit 10a1caa46d

View File

@ -924,8 +924,6 @@ void encode_wkssvc_join_password_buffer(TALLOC_CTX *mem_ctx,
generate_random_buffer((uint8_t *)confounder, confounder_len); generate_random_buffer((uint8_t *)confounder, confounder_len);
GNUTLS_FIPS140_SET_LAX_MODE();
rc = gnutls_hash_init(&hash_hnd, GNUTLS_DIG_MD5); rc = gnutls_hash_init(&hash_hnd, GNUTLS_DIG_MD5);
if (rc < 0) { if (rc < 0) {
goto out; goto out;
@ -955,7 +953,6 @@ void encode_wkssvc_join_password_buffer(TALLOC_CTX *mem_ctx,
*pwd_buf = my_pwd_buf; *pwd_buf = my_pwd_buf;
out: out:
GNUTLS_FIPS140_SET_STRICT_MODE();
return; return;
} }