[openssl-dev] [openssl.org #4493] [PATCH] crypto/ec: fix setting the private key.
Justus Winter via RT
rt at openssl.org
Tue Mar 29 14:24:24 UTC 2016
From: Justus Winter <justus at g10code.com>
Use the function from the group vtable after checking for it.
Signed-off-by: Justus Winter <justus at g10code.com>
---
crypto/ec/ec_key.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crypto/ec/ec_key.c b/crypto/ec/ec_key.c
index d241154..ef8176f 100644
--- a/crypto/ec/ec_key.c
+++ b/crypto/ec/ec_key.c
@@ -484,7 +484,7 @@ int EC_KEY_set_private_key(EC_KEY *key, const BIGNUM *priv_key)
if (key->group == NULL || key->group->meth == NULL)
return 0;
if (key->group->meth->set_private
- && key->meth->set_private(key, priv_key) == 0)
+ && key->group->meth->set_private(key, priv_key) == 0)
return 0;
if (key->meth->set_private != NULL
&& key->meth->set_private(key, priv_key) == 0)
--
2.1.4
--
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4493
Please log in as guest with password guest if prompted
More information about the openssl-dev
mailing list