Skip to content

Commit

Permalink
Check errors when parsing a PKCS8INF PEM FILE, or there will be a cor…
Browse files Browse the repository at this point in the history
…e dump on error.

PR: 77
  • Loading branch information
levitte committed Jun 5, 2002
1 parent b49053c commit 9f353dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crypto/pem/pem_pkey.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ EVP_PKEY *PEM_read_bio_PrivateKey(BIO *bp, EVP_PKEY **x, pem_password_cb *cb, vo
else if (strcmp(nm,PEM_STRING_PKCS8INF) == 0) {
PKCS8_PRIV_KEY_INFO *p8inf;
p8inf=d2i_PKCS8_PRIV_KEY_INFO(NULL, &p, len);
if(!p8inf) goto p8err;
ret = EVP_PKCS82PKEY(p8inf);
PKCS8_PRIV_KEY_INFO_free(p8inf);
} else if (strcmp(nm,PEM_STRING_PKCS8) == 0) {
Expand Down

0 comments on commit 9f353dd

Please sign in to comment.