diff options
author | Jeremy Allison <jra@samba.org> | 2022-03-07 19:16:07 -0800 |
---|---|---|
committer | David Mulder <dmulder@samba.org> | 2022-03-08 22:12:37 +0000 |
commit | 00d8b05ddbfd42cce56ad7d33da72f67fd07530e (patch) | |
tree | 351b6901f79a1f882026e8d1704ac522c2018bcb | |
parent | 7e82ac3a40dbe43b8e954d8d1eb6a4423b27cef9 (diff) | |
download | samba-00d8b05ddbfd42cce56ad7d33da72f67fd07530e.tar.gz |
s3: libcli: Rename smb_signing_md5() -> smb1_signing_md5()
Fix the debug that also used this name.
Signed-off-by: Jeremy Allison <jra@samba.org>
Signed-off-by: David Mulder <dmulder@samba.org>
-rw-r--r-- | libcli/smb/smb_signing.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libcli/smb/smb_signing.c b/libcli/smb/smb_signing.c index 4c1d59cfcf2..f94880b7ecb 100644 --- a/libcli/smb/smb_signing.c +++ b/libcli/smb/smb_signing.c @@ -142,7 +142,7 @@ static bool smb1_signing_good(struct smb1_signing_state *si, return false; } -static NTSTATUS smb_signing_md5(const DATA_BLOB *mac_key, +static NTSTATUS smb1_signing_md5(const DATA_BLOB *mac_key, const uint8_t *hdr, size_t len, uint32_t seq_number, uint8_t calc_md5_mac[16]) @@ -159,7 +159,7 @@ static NTSTATUS smb_signing_md5(const DATA_BLOB *mac_key, * We do this here, to avoid modifying the packet. */ - DEBUG(10,("smb_signing_md5: sequence number %u\n", seq_number )); + DBG_DEBUG("sequence number %u\n", seq_number ); SIVAL(sequence_buf, 0, seq_number); SIVAL(sequence_buf, 4, 0); @@ -286,7 +286,7 @@ NTSTATUS smb_signing_sign_pdu(struct smb1_signing_state *si, } else { NTSTATUS status; - status = smb_signing_md5(&si->mac_key, + status = smb1_signing_md5(&si->mac_key, outhdr, len, seqnum, @@ -327,7 +327,7 @@ bool smb_signing_check_pdu(struct smb1_signing_state *si, return false; } - status = smb_signing_md5(&si->mac_key, + status = smb1_signing_md5(&si->mac_key, inhdr, len, seqnum, @@ -352,7 +352,7 @@ bool smb_signing_check_pdu(struct smb1_signing_state *si, dump_data(5, reply_sent_mac, 8); for (i = -sign_range; i < sign_range; i++) { - smb_signing_md5(&si->mac_key, inhdr, len, + smb1_signing_md5(&si->mac_key, inhdr, len, seqnum+i, calc_md5_mac); if (memcmp(reply_sent_mac, calc_md5_mac, 8) == 0) { DEBUG(0,("smb_signing_check_pdu: " |