summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/rsa/rsa_pmeth.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2019-10-31 14:05:30 +0000
committerjsing <jsing@openbsd.org>2019-10-31 14:05:30 +0000
commita48d29b175ca4ef5e97de43256390f0ddf408710 (patch)
treede7bef268f28d22f5b8dedbb4a74a9e5f2ecc3bb /lib/libcrypto/rsa/rsa_pmeth.c
parentAdd support for RSA-PSS. (diff)
downloadwireguard-openbsd-a48d29b175ca4ef5e97de43256390f0ddf408710.tar.xz
wireguard-openbsd-a48d29b175ca4ef5e97de43256390f0ddf408710.zip
Add CMS controls for RSA.
Diffstat (limited to 'lib/libcrypto/rsa/rsa_pmeth.c')
-rw-r--r--lib/libcrypto/rsa/rsa_pmeth.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libcrypto/rsa/rsa_pmeth.c b/lib/libcrypto/rsa/rsa_pmeth.c
index 5fd63092982..008d425bd11 100644
--- a/lib/libcrypto/rsa/rsa_pmeth.c
+++ b/lib/libcrypto/rsa/rsa_pmeth.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rsa_pmeth.c,v 1.31 2019/10/31 13:56:29 jsing Exp $ */
+/* $OpenBSD: rsa_pmeth.c,v 1.32 2019/10/31 14:05:30 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2006.
*/
@@ -590,10 +590,17 @@ pkey_rsa_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2)
case EVP_PKEY_CTRL_DIGESTINIT:
case EVP_PKEY_CTRL_PKCS7_SIGN:
+#ifndef OPENSSL_NO_CMS
+ case EVP_PKEY_CTRL_CMS_SIGN:
+#endif
return 1;
case EVP_PKEY_CTRL_PKCS7_ENCRYPT:
case EVP_PKEY_CTRL_PKCS7_DECRYPT:
+#ifndef OPENSSL_NO_CMS
+ case EVP_PKEY_CTRL_CMS_DECRYPT:
+ case EVP_PKEY_CTRL_CMS_ENCRYPT:
+#endif
if (ctx->pmeth->pkey_id != EVP_PKEY_RSA_PSS)
return 1;