diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2001-01-14 14:07:10 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2001-01-14 14:07:10 +0000 |
commit | 6308af199d97d1163d4317557e2d655d7aa211ae (patch) | |
tree | b51511bb05522efb3853cad6b75f4a4332cc5ba1 /crypto/pkcs12/p12_attr.c | |
parent | 8e5b6314ef3dd6de9188614ff356c0388fc37134 (diff) | |
download | openssl-6308af199d97d1163d4317557e2d655d7aa211ae.tar.gz |
Change PKCS#12 key derivation routines to cope with
non null terminated passwords.
Diffstat (limited to 'crypto/pkcs12/p12_attr.c')
-rw-r--r-- | crypto/pkcs12/p12_attr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/pkcs12/p12_attr.c b/crypto/pkcs12/p12_attr.c index 64bf4173fc..2d4d04292a 100644 --- a/crypto/pkcs12/p12_attr.c +++ b/crypto/pkcs12/p12_attr.c @@ -151,7 +151,7 @@ int PKCS12_add_friendlyname_asc (PKCS12_SAFEBAG *bag, const char *name, { unsigned char *uniname; int ret, unilen; - if (!asc2uni(name, &uniname, &unilen)) { + if (!asc2uni(name, namelen, &uniname, &unilen)) { PKCS12err(PKCS12_F_PKCS12_ADD_FRIENDLYNAME_ASC, ERR_R_MALLOC_FAILURE); return 0; |