projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
New option to CA.pl to sign request using CA extensions.
[openssl.git]
/
crypto
/
pkcs12
/
p12_crt.c
diff --git
a/crypto/pkcs12/p12_crt.c
b/crypto/pkcs12/p12_crt.c
index a5f17c51a772d00cd5511228a1fcf35680a49c83..5641a00898b3a5227062571d496927a806468f7f 100644
(file)
--- a/
crypto/pkcs12/p12_crt.c
+++ b/
crypto/pkcs12/p12_crt.c
@@
-86,6
+86,8
@@
PKCS12 *PKCS12_create(char *pass, char *name, EVP_PKEY *pkey, X509 *cert,
return NULL;
}
+ if(!X509_check_private_key(cert, pkey)) return NULL;
+
if(!(bags = sk_PKCS12_SAFEBAG_new (NULL))) {
PKCS12err(PKCS12_F_PKCS12_CREATE,ERR_R_MALLOC_FAILURE);
return NULL;