summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKamil Dudka <kdudka@redhat.com>2009-05-27 16:17:42 +0200
committerRob Crittenden <rcritten@redhat.com>2009-05-29 12:55:41 -0400
commit27654eb42b27e296bb2375aa929b550daadc4d81 (patch)
tree08d1f75719cec0d112a392c291e0a3a94d624c3b
parentf32266d0b8d4bfa2f228c0d3c3ed9869a2b3eb50 (diff)
downloadpemnss-27654eb42b27e296bb2375aa929b550daadc4d81.zip
pemnss-27654eb42b27e296bb2375aa929b550daadc4d81.tar.gz
pemnss-27654eb42b27e296bb2375aa929b550daadc4d81.tar.xz
Support arbitrarily long password while loading a private key.
Reported by Michael Cronenworth. 500180
-rw-r--r--psession.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/psession.c b/psession.c
index 472e0b1..a25b70a 100644
--- a/psession.c
+++ b/psession.c
@@ -343,7 +343,7 @@ pem_mdSession_Login
iv = convert_iv(io->u.key.ivstring, 8);
/* Convert the PIN and IV into a DES key */
- make_key(iv, pin->data, 8, mykey);
+ make_key(iv, pin->data, pin->size, mykey);
output =
(unsigned char *) nss_ZAlloc(NULL,