提交 5ae8d6bc 编写于 作者: K Kaspar Brand 提交者: Dr. Stephen Henson

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.
上级 dfcb42c6
...@@ -167,6 +167,7 @@ start: ...@@ -167,6 +167,7 @@ start:
#ifndef OPENSSL_NO_RSA #ifndef OPENSSL_NO_RSA
if (strcmp(name,PEM_STRING_RSA) == 0) if (strcmp(name,PEM_STRING_RSA) == 0)
{ {
d2i=(D2I_OF(void))d2i_RSAPrivateKey;
if (xi->x_pkey != NULL) if (xi->x_pkey != NULL)
{ {
if (!sk_X509_INFO_push(ret,xi)) goto err; if (!sk_X509_INFO_push(ret,xi)) goto err;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册