From d7912eb093ea4f75cac6c1d096426b4790326eb5 Mon Sep 17 00:00:00 2001 From: Kaspar Brand Date: Tue, 6 Aug 2013 16:01:47 +0100 Subject: [PATCH 08/17] 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) --- crypto/pem/pem_info.c | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/pem/pem_info.c b/crypto/pem/pem_info.c index 1b2be52..cc7f24a 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; -- 1.7.9.5