summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-08-06 18:02:00 -0400
committerSimo Sorce <simo@redhat.com>2014-08-07 12:44:47 -0400
commit1e64fe8b9f09c13040b4722d5e2f4ff224a7bf0b (patch)
tree77e0d5a1f5c5d0172c386a3c22ea389eccc264b7
parent43f3a179a1924f958821869dc0e444017c15acde (diff)
downloadgss-ntlmssp-1e64fe8b9f09c13040b4722d5e2f4ff224a7bf0b.tar.gz
gss-ntlmssp-1e64fe8b9f09c13040b4722d5e2f4ff224a7bf0b.tar.xz
gss-ntlmssp-1e64fe8b9f09c13040b4722d5e2f4ff224a7bf0b.zip
Formal adjustment of ntlmv1_sign
random_pad is always set to 0, so this change makes no difference, however with this change we conform to MS-NLMP 3.4.4.1
-rw-r--r--src/ntlm_crypto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ntlm_crypto.c b/src/ntlm_crypto.c
index 370873a..c07f6cd 100644
--- a/src/ntlm_crypto.c
+++ b/src/ntlm_crypto.c
@@ -768,7 +768,7 @@ static int ntlmv1_sign(struct ntlm_rc4_handle *handle,
return EINVAL;
}
- rc4buf[0] = 0;
+ rc4buf[0] = random_pad;
rc4buf[1] = htole32(CRC32(0, message));
rc4buf[2] = htole32(seq_num);
@@ -780,7 +780,7 @@ static int ntlmv1_sign(struct ntlm_rc4_handle *handle,
if (ret) return ret;
msg_sig->v1.version = htole32(NTLMSSP_MESSAGE_SIGNATURE_VERSION);
- msg_sig->v1.random_pad = random_pad;
+ msg_sig->v1.random_pad = 0;
return 0;
}