summaryrefslogtreecommitdiffstats
path: root/crypto/pem/pvkfmt.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-04-28 15:20:52 +0100
committerMatt Caswell <matt@openssl.org>2016-04-29 09:20:13 +0100
commitb375f08145d78479674580042614c9e770b011dd (patch)
treed382add462c6f80253aff0f8548dfef05255b8c0 /crypto/pem/pvkfmt.c
parent6f137370dd52c11ecfd73a2dd7a07a52b8435891 (diff)
A call to RSA_set0_key had the arguments in the wrong order
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/pem/pvkfmt.c')
-rw-r--r--crypto/pem/pvkfmt.c2
1 files changed, 1 insertions, 1 deletions
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);