提交 b375f081 编写于 作者: M Matt Caswell

A call to RSA_set0_key had the arguments in the wrong order

Reviewed-by: NRichard Levitte <levitte@openssl.org>
上级 6f137370
...@@ -388,7 +388,7 @@ static EVP_PKEY *b2i_rsa(const unsigned char **in, ...@@ -388,7 +388,7 @@ static EVP_PKEY *b2i_rsa(const unsigned char **in,
RSA_set0_factors(rsa, p, q); RSA_set0_factors(rsa, p, q);
RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp); 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); EVP_PKEY_set1_RSA(ret, rsa);
RSA_free(rsa); RSA_free(rsa);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册