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 /include/openssl/ec.h | |
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 'include/openssl/ec.h')
-rw-r--r-- | include/openssl/ec.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/openssl/ec.h b/include/openssl/ec.h index 656cb410e6..418ca35aa6 100644 --- a/include/openssl/ec.h +++ b/include/openssl/ec.h @@ -787,6 +787,12 @@ EC_KEY *EC_KEY_dup(const EC_KEY *src); */ int EC_KEY_up_ref(EC_KEY *key); +/** Returns the ENGINE object of a EC_KEY object + * \param key EC_KEY object + * \return the ENGINE object (possibly NULL). + */ +ENGINE *EC_KEY_get0_engine(const EC_KEY *eckey); + /** Returns the EC_GROUP object of a EC_KEY object * \param key EC_KEY object * \return the EC_GROUP object (possibly NULL). |