If EVP_PKEY structure contains an ENGINE the key is ENGINE specific and
we should use its method instead of any generic one.
This commit is contained in:
parent
1a8ecda3ee
commit
972491aece
@ -134,6 +134,8 @@ static EVP_PKEY_CTX *int_ctx_new(EVP_PKEY *pkey, ENGINE *e, int id)
|
|||||||
id = pkey->ameth->pkey_id;
|
id = pkey->ameth->pkey_id;
|
||||||
}
|
}
|
||||||
#ifndef OPENSSL_NO_ENGINE
|
#ifndef OPENSSL_NO_ENGINE
|
||||||
|
if (pkey && pkey->engine)
|
||||||
|
e = pkey->engine;
|
||||||
/* Try to find an ENGINE which implements this method */
|
/* Try to find an ENGINE which implements this method */
|
||||||
if (e)
|
if (e)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user