diff options
author | Kaspar Brand <ossl-rt@velox.ch> | 2013-08-06 16:01:47 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2013-08-06 16:04:52 +0100 |
commit | b0cfaf58adba8f6744e4deca8253395fa898c46f (patch) | |
tree | f816e0b863128df040d38985d7b4d8bca7c339dc /crypto/pem | |
parent | 9dc07f04c3ae31490946ca6feba534482cd9bde8 (diff) |
Fix for PEM_X509_INFO_read_bio.
PR: 3028
Fix bug introduced in PEM_X509_INFO_bio which wouldn't process RSA keys
correctly if they appeared first.
(cherry picked from commit 5ae8d6bcbaff99423a2608559d738a3fcf7ed6dc)
Diffstat (limited to 'crypto/pem')
-rw-r--r-- | crypto/pem/pem_info.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/pem/pem_info.c b/crypto/pem/pem_info.c index 1b2be527ed..cc7f24a9c1 100644 --- a/crypto/pem/pem_info.c +++ b/crypto/pem/pem_info.c @@ -167,6 +167,7 @@ start: #ifndef OPENSSL_NO_RSA if (strcmp(name,PEM_STRING_RSA) == 0) { + d2i=(D2I_OF(void))d2i_RSAPrivateKey; if (xi->x_pkey != NULL) { if (!sk_X509_INFO_push(ret,xi)) goto err; |