From d1da335c5514f9ba8b5115faab208a8046a5bc56 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Wed, 15 Mar 2017 14:11:34 +0100 Subject: Add EC_KEY_get0_engine() Just as for DH, DSA and RSA, this gives the engine associated with the key. Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/2960) --- crypto/ec/ec_key.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crypto') diff --git a/crypto/ec/ec_key.c b/crypto/ec/ec_key.c index 2d10a8c26b..96411c0b6a 100644 --- a/crypto/ec/ec_key.c +++ b/crypto/ec/ec_key.c @@ -177,6 +177,11 @@ int EC_KEY_up_ref(EC_KEY *r) return ((i > 1) ? 1 : 0); } +ENGINE *EC_KEY_get0_engine(const EC_KEY *eckey) +{ + return eckey->engine; +} + int EC_KEY_generate_key(EC_KEY *eckey) { if (eckey == NULL || eckey->group == NULL) { -- cgit v1.2.3