projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
EVP: Check that key methods aren't foreign when exporting
[openssl.git]
/
crypto
/
evp
/
pmeth_fn.c
diff --git
a/crypto/evp/pmeth_fn.c
b/crypto/evp/pmeth_fn.c
index ca0790fcd627984eb7d618e17cdf14efa8e8e004..5d0e21ed687709bcaa2f48d3a9931f34f3217ac7 100644
(file)
--- a/
crypto/evp/pmeth_fn.c
+++ b/
crypto/evp/pmeth_fn.c
@@
-38,7
+38,7
@@
static int evp_pkey_asym_cipher_init(EVP_PKEY_CTX *ctx, int operation)
*/
ERR_set_mark();
- if (ctx->
keytype == NULL || ctx->engine !
= NULL)
+ if (ctx->
engine != NULL || ctx->keytype =
= NULL)
goto legacy;
/*