diff options
author | 2019-10-31 14:05:30 +0000 | |
---|---|---|
committer | 2019-10-31 14:05:30 +0000 | |
commit | a48d29b175ca4ef5e97de43256390f0ddf408710 (patch) | |
tree | de7bef268f28d22f5b8dedbb4a74a9e5f2ecc3bb | |
parent | Add support for RSA-PSS. (diff) | |
download | wireguard-openbsd-a48d29b175ca4ef5e97de43256390f0ddf408710.tar.xz wireguard-openbsd-a48d29b175ca4ef5e97de43256390f0ddf408710.zip |
Add CMS controls for RSA.
-rw-r--r-- | lib/libcrypto/rsa/rsa_pmeth.c | 9 |
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; |