X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fevp%2Fpmeth_lib.c;h=bc7c8305a0e160133446a44468336288e5e72d6f;hp=29448c00ecba750ac73eb0ee6d045cb9a5597fdc;hb=ad889de09719b7b4065755d3f6924be2b9f47fcc;hpb=efcf5f1c50c6b1e89c843095702d56ab0032bacf diff --git a/crypto/evp/pmeth_lib.c b/crypto/evp/pmeth_lib.c index 29448c00ec..bc7c8305a0 100644 --- a/crypto/evp/pmeth_lib.c +++ b/crypto/evp/pmeth_lib.c @@ -135,6 +135,8 @@ static EVP_PKEY_CTX *int_ctx_new(EVP_PKEY *pkey, ENGINE *e, int id) id = pkey->ameth->pkey_id; } #ifndef OPENSSL_NO_ENGINE + if (pkey && pkey->engine) + e = pkey->engine; /* Try to find an ENGINE which implements this method */ if (e) {