projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f07cb1c
)
If EVP_PKEY structure contains an ENGINE the key is ENGINE specific and
author
Dr. Stephen Henson
<steve@openssl.org>
Tue, 16 Nov 2010 12:11:15 +0000
(12:11 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Tue, 16 Nov 2010 12:11:15 +0000
(12:11 +0000)
we should use its method instead of any generic one.
crypto/evp/pmeth_lib.c
patch
|
blob
|
history
diff --git
a/crypto/evp/pmeth_lib.c
b/crypto/evp/pmeth_lib.c
index b2d8de3a8de926708efa5420de6252694a5edfd4..5481d4b8a5b88870cf42efc99169df0bba8cf928 100644
(file)
--- a/
crypto/evp/pmeth_lib.c
+++ b/
crypto/evp/pmeth_lib.c
@@
-134,6
+134,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)
{