[openssl-commits] [openssl] master update

Matt Caswell matt at openssl.org
Fri Apr 29 08:21:43 UTC 2016


The branch master has been updated
       via  b375f08145d78479674580042614c9e770b011dd (commit)
      from  6f137370dd52c11ecfd73a2dd7a07a52b8435891 (commit)


- Log -----------------------------------------------------------------
commit b375f08145d78479674580042614c9e770b011dd
Author: Matt Caswell <matt at openssl.org>
Date:   Thu Apr 28 15:20:52 2016 +0100

    A call to RSA_set0_key had the arguments in the wrong order
    
    Reviewed-by: Richard Levitte <levitte at openssl.org>

-----------------------------------------------------------------------

Summary of changes:
 crypto/pem/pvkfmt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/pem/pvkfmt.c b/crypto/pem/pvkfmt.c
index dc90088..86d5921 100644
--- a/crypto/pem/pvkfmt.c
+++ b/crypto/pem/pvkfmt.c
@@ -388,7 +388,7 @@ static EVP_PKEY *b2i_rsa(const unsigned char **in,
         RSA_set0_factors(rsa, p, q);
         RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp);
     }
-    RSA_set0_key(rsa, e, n, d);
+    RSA_set0_key(rsa, n, e, d);
 
     EVP_PKEY_set1_RSA(ret, rsa);
     RSA_free(rsa);


More information about the openssl-commits mailing list