summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-10-17 11:26:49 -0400
committerSimo Sorce <simo@redhat.com>2013-10-18 15:26:32 -0400
commit9aae9989eae728b66cd1476eb216c95bf3d28981 (patch)
treea56e7b2e77a0dc1ef9f3df11a8c68269f4c198e4 /src
parent5a8271d7475029e680f049d24863763b2dce2e38 (diff)
downloadgss-ntlmssp-9aae9989eae728b66cd1476eb216c95bf3d28981.tar.gz
gss-ntlmssp-9aae9989eae728b66cd1476eb216c95bf3d28981.tar.xz
gss-ntlmssp-9aae9989eae728b66cd1476eb216c95bf3d28981.zip
Fix generation of signing keys and add tests
Diffstat (limited to 'src')
-rw-r--r--src/ntlm_crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ntlm_crypto.c b/src/ntlm_crypto.c
index d48f31c..e305e03 100644
--- a/src/ntlm_crypto.c
+++ b/src/ntlm_crypto.c
@@ -425,7 +425,7 @@ static int ntlm_key_derivation_function(struct ntlm_key *key,
int ret;
if (key->length > 16) return ERR_CRYPTO;
- len = strlen(magic_constant);
+ len = strlen(magic_constant) + 1;
if (len > 64) return ERR_CRYPTO;
payload.length = key->length;