diff options
author | Richard Levitte <levitte@openssl.org> | 2017-03-15 14:11:34 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2017-03-15 15:03:11 +0100 |
commit | d1da335c5514f9ba8b5115faab208a8046a5bc56 (patch) | |
tree | c3c2249eb951fe49531fcfd5d8d0155eed416d96 /crypto/ec | |
parent | 89b06ca7b0b08d31ac48275d1376a7046dd75f55 (diff) |
Add EC_KEY_get0_engine()
Just as for DH, DSA and RSA, this gives the engine associated with the
key.
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2960)
Diffstat (limited to 'crypto/ec')
-rw-r--r-- | crypto/ec/ec_key.c | 5 |
1 files changed, 5 insertions, 0 deletions
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) { |