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

s4:libcli: Call correct function to get HMAC output length

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-11-23 19:27:27 +13:00 committed by Andrew Bartlett
parent 769b652752
commit 99ded98b39

View File

@ -33,7 +33,7 @@
*/
NTSTATUS smb2_sign_message(struct smb2_request_buffer *buf, DATA_BLOB session_key)
{
uint8_t digest[gnutls_hash_get_len(GNUTLS_MAC_SHA256)];
uint8_t digest[gnutls_hmac_get_len(GNUTLS_MAC_SHA256)];
uint64_t session_id;
size_t hdr_offset;
int rc;
@ -85,7 +85,7 @@ NTSTATUS smb2_sign_message(struct smb2_request_buffer *buf, DATA_BLOB session_ke
NTSTATUS smb2_check_signature(struct smb2_request_buffer *buf, DATA_BLOB session_key)
{
uint64_t session_id;
uint8_t digest[gnutls_hash_get_len(GNUTLS_MAC_SHA256)];
uint8_t digest[gnutls_hmac_get_len(GNUTLS_MAC_SHA256)];
uint8_t sig[16];
size_t hdr_offset;
int rc;