projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rewrite PBE handling read to support PKCS#5 v2.0 and update the function
[openssl.git]
/
crypto
/
pkcs12
/
p12_decr.c
diff --git
a/crypto/pkcs12/p12_decr.c
b/crypto/pkcs12/p12_decr.c
index 53fb8aad0fe7940bf2b920b4eff2b63cd7af4eba..8f502fae7fe6c1df3435be72bb83e4dde3fec9ba 100644
(file)
--- a/
crypto/pkcs12/p12_decr.c
+++ b/
crypto/pkcs12/p12_decr.c
@@
-82,7
+82,8
@@
unsigned char * PKCS12_pbe_crypt (X509_ALGOR *algor, const char *pass,
}
/* Decrypt data */
}
/* Decrypt data */
- if (!EVP_PBE_ALGOR_CipherInit (algor, pass, passlen, &ctx, en_de)) {
+ if (!EVP_PBE_CipherInit (algor->algorithm, pass, passlen,
+ algor->parameter, &ctx, en_de)) {
PKCS12err(PKCS12_F_PKCS12_PBE_CRYPT,PKCS12_R_PKCS12_ALGOR_CIPHERINIT_ERROR);
return NULL;
}
PKCS12err(PKCS12_F_PKCS12_PBE_CRYPT,PKCS12_R_PKCS12_ALGOR_CIPHERINIT_ERROR);
return NULL;
}