From b375f08145d78479674580042614c9e770b011dd Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Thu, 28 Apr 2016 15:20:52 +0100 Subject: [PATCH] A call to RSA_set0_key had the arguments in the wrong order Reviewed-by: Richard Levitte --- 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 dc9008809b..86d5921bf4 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); -- 2.25.1