summaryrefslogtreecommitdiffstats
path: root/crypto/evp
diff options
context:
space:
mode:
authorDmitry Belyavskiy <beldmit@gmail.com>2019-03-19 14:07:37 +0300
committerMatt Caswell <matt@openssl.org>2019-03-21 09:06:12 +0000
commitd95fb70b0e784d7c2a15d5ef5e42b0aa614e5045 (patch)
tree51cd41f94a2bd40452160919242122afe67b6054 /crypto/evp
parent6711493457410d1663e29876b678e9a883939826 (diff)
Providing missing accessor to EVP_PKEY.engine
Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8526)
Diffstat (limited to 'crypto/evp')
-rw-r--r--crypto/evp/p_lib.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/evp/p_lib.c b/crypto/evp/p_lib.c
index 148df90f84..0fe71161bd 100644
--- a/crypto/evp/p_lib.c
+++ b/crypto/evp/p_lib.c
@@ -394,6 +394,11 @@ int EVP_PKEY_set1_engine(EVP_PKEY *pkey, ENGINE *e)
pkey->pmeth_engine = e;
return 1;
}
+
+ENGINE *EVP_PKEY_get0_engine(const EVP_PKEY *pkey)
+{
+ return pkey->engine;
+}
#endif
int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key)
{