From: Joseph Sutton Date: Thu, 23 Nov 2023 06:24:51 +0000 (+1300) Subject: libcli/auth: Call correct function to get HMAC output length X-Git-Tag: talloc-2.4.2~464 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2482a714cf2e01ff7097643ec79c6c857a6b6b94;p=thirdparty%2Fsamba.git libcli/auth: Call correct function to get HMAC output length Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/libcli/auth/credentials.c b/libcli/auth/credentials.c index 5f4e0954cd1..84838be6e73 100644 --- a/libcli/auth/credentials.c +++ b/libcli/auth/credentials.c @@ -181,7 +181,7 @@ static NTSTATUS netlogon_creds_init_hmac_sha256(struct netlogon_creds_Credential const struct samr_Password *machine_password) { gnutls_hmac_hd_t hmac_hnd = NULL; - uint8_t digest[gnutls_hash_get_len(GNUTLS_MAC_SHA256)]; + uint8_t digest[gnutls_hmac_get_len(GNUTLS_MAC_SHA256)]; int rc; ZERO_ARRAY(creds->session_key);