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:
a00b956
)
Fix handling of EVP_PKEY_CTRL_PKCS7_ENCRYPT/DECRYPT with OPENSSL_NO_CMS.
author
Bernd Edlinger
<bernd.edlinger@hotmail.de>
Tue, 28 Feb 2017 08:48:32 +0000
(09:48 +0100)
committer
Rich Salz
<rsalz@openssl.org>
Tue, 28 Feb 2017 20:28:18 +0000
(15:28 -0500)
Reviewed-by: Stephen Henson <steve@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2764)
crypto/rsa/rsa_pmeth.c
patch
|
blob
|
history
diff --git
a/crypto/rsa/rsa_pmeth.c
b/crypto/rsa/rsa_pmeth.c
index d4b278ba5064c531f519c86cba791cf60826b05b..0292b26e6ce61d8999087a25a7514897e9c7babd 100644
(file)
--- a/
crypto/rsa/rsa_pmeth.c
+++ b/
crypto/rsa/rsa_pmeth.c
@@
-553,9
+553,10
@@
static int pkey_rsa_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2)
#ifndef OPENSSL_NO_CMS
case EVP_PKEY_CTRL_CMS_DECRYPT:
case EVP_PKEY_CTRL_CMS_ENCRYPT:
+#endif
if (!pkey_ctx_is_pss(ctx))
return 1;
-#endif
+ /* fall through */
case EVP_PKEY_CTRL_PEER_KEY:
RSAerr(RSA_F_PKEY_RSA_CTRL,
RSA_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE);