mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-05-15 02:49:39 +00:00
Fix EC_KEY_set_private_key() to call key->group->meth->set_private()
Fix a bug introduced by 6903e2e7e9a4 (Extended EC_METHOD customisation support., 2016-02-01). key->meth->set_private() is wrongly called where it should call key->group->meth->set_private(). PR#4517 Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Stephen Henson <steve@openssl.org>
This commit is contained in:
parent
9f13d4dd5e
commit
acde647fb0
@ -483,8 +483,8 @@ int EC_KEY_set_private_key(EC_KEY *key, const BIGNUM *priv_key)
|
|||||||
{
|
{
|
||||||
if (key->group == NULL || key->group->meth == NULL)
|
if (key->group == NULL || key->group->meth == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
if (key->group->meth->set_private
|
if (key->group->meth->set_private != NULL
|
||||||
&& key->meth->set_private(key, priv_key) == 0)
|
&& key->group->meth->set_private(key, priv_key) == 0)
|
||||||
return 0;
|
return 0;
|
||||||
if (key->meth->set_private != NULL
|
if (key->meth->set_private != NULL
|
||||||
&& key->meth->set_private(key, priv_key) == 0)
|
&& key->meth->set_private(key, priv_key) == 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user