From: Matt Caswell Date: Thu, 28 Apr 2016 14:20:52 +0000 (+0100) Subject: A call to RSA_set0_key had the arguments in the wrong order X-Git-Tag: OpenSSL_1_1_0-pre6~1008 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b375f08145d78479674580042614c9e770b011dd;p=oweals%2Fopenssl.git A call to RSA_set0_key had the arguments in the wrong order Reviewed-by: Richard Levitte --- 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);