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:
parent
769b652752
commit
99ded98b39
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user