libcli/auth: Call correct function to get HMAC output length
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 23 Nov 2023 06:24:51 +0000 (19:24 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 30 Nov 2023 00:02:33 +0000 (00:02 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
libcli/auth/credentials.c

index 5f4e0954cd13cd6b5be38fb4f9c482b574cbe348..84838be6e73c71e5654a75cd70a7c84725444937 100644 (file)
@@ -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);