summaryrefslogtreecommitdiff
path: root/source4/libcli/raw/smb_signing.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-06-28 00:57:15 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:18:55 -0500
commit025e03de549efa47979199adf80b6eef4c8f926b (patch)
tree993ae86b0205de5704daa01dfcd06e3c6d3a0031 /source4/libcli/raw/smb_signing.c
parent3ff79165715049f265ee35196c417a800808f088 (diff)
downloadsamba-025e03de549efa47979199adf80b6eef4c8f926b.tar.gz
samba-025e03de549efa47979199adf80b6eef4c8f926b.tar.bz2
samba-025e03de549efa47979199adf80b6eef4c8f926b.zip
r7970: This SMB signing code (merged from 3.0) turned out to be bogus.
Andrew Bartlett (This used to be commit 817160ec1a85724c8bf482f128ea687396de0888)
Diffstat (limited to 'source4/libcli/raw/smb_signing.c')
-rw-r--r--source4/libcli/raw/smb_signing.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/source4/libcli/raw/smb_signing.c b/source4/libcli/raw/smb_signing.c
index 4204f3b4dc..14dfc64737 100644
--- a/source4/libcli/raw/smb_signing.c
+++ b/source4/libcli/raw/smb_signing.c
@@ -118,15 +118,7 @@ void sign_outgoing_message(struct request_buffer *out, DATA_BLOB *mac_key, uint_
/* Calculate the 16 byte MAC and place first 8 bytes into the field. */
MD5Init(&md5_ctx);
-
- /* NB. When making and verifying SMB signatures, Windows apparently
- zero-pads the key to 128 bits if it isn't long enough.
- From Nalin Dahyabhai <nalin@redhat.com> */
MD5Update(&md5_ctx, mac_key->data, mac_key->length);
- if (mac_key->length < sizeof(key_buf)) {
- memset(key_buf, 0, sizeof(key_buf));
- MD5Update(&md5_ctx, key_buf, sizeof(key_buf) - mac_key->length);
- }
MD5Update(&md5_ctx,
out->buffer + NBT_HDR_SIZE,
out->size - NBT_HDR_SIZE);