diff options
| author | jsing <> | 2019-10-31 14:05:30 +0000 |
|---|---|---|
| committer | jsing <> | 2019-10-31 14:05:30 +0000 |
| commit | 45b006f49114a2ffa926616210cdf4c10684e8e5 (patch) | |
| tree | ae8d941adcc4b16cd357d0f6ced314bdcbd04cac /src | |
| parent | e315891db19cf5426d8ed7e36da5a27a1e81bb78 (diff) | |
| download | openbsd-45b006f49114a2ffa926616210cdf4c10684e8e5.tar.gz openbsd-45b006f49114a2ffa926616210cdf4c10684e8e5.tar.bz2 openbsd-45b006f49114a2ffa926616210cdf4c10684e8e5.zip | |
Add CMS controls for RSA.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/rsa/rsa_pmeth.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_pmeth.c b/src/lib/libcrypto/rsa/rsa_pmeth.c index 5fd6309298..008d425bd1 100644 --- a/src/lib/libcrypto/rsa/rsa_pmeth.c +++ b/src/lib/libcrypto/rsa/rsa_pmeth.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: rsa_pmeth.c,v 1.31 2019/10/31 13:56:29 jsing Exp $ */ | 1 | /* $OpenBSD: rsa_pmeth.c,v 1.32 2019/10/31 14:05:30 jsing Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 2006. | 3 | * project 2006. |
| 4 | */ | 4 | */ |
| @@ -590,10 +590,17 @@ pkey_rsa_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) | |||
| 590 | 590 | ||
| 591 | case EVP_PKEY_CTRL_DIGESTINIT: | 591 | case EVP_PKEY_CTRL_DIGESTINIT: |
| 592 | case EVP_PKEY_CTRL_PKCS7_SIGN: | 592 | case EVP_PKEY_CTRL_PKCS7_SIGN: |
| 593 | #ifndef OPENSSL_NO_CMS | ||
| 594 | case EVP_PKEY_CTRL_CMS_SIGN: | ||
| 595 | #endif | ||
| 593 | return 1; | 596 | return 1; |
| 594 | 597 | ||
| 595 | case EVP_PKEY_CTRL_PKCS7_ENCRYPT: | 598 | case EVP_PKEY_CTRL_PKCS7_ENCRYPT: |
| 596 | case EVP_PKEY_CTRL_PKCS7_DECRYPT: | 599 | case EVP_PKEY_CTRL_PKCS7_DECRYPT: |
| 600 | #ifndef OPENSSL_NO_CMS | ||
| 601 | case EVP_PKEY_CTRL_CMS_DECRYPT: | ||
| 602 | case EVP_PKEY_CTRL_CMS_ENCRYPT: | ||
| 603 | #endif | ||
| 597 | if (ctx->pmeth->pkey_id != EVP_PKEY_RSA_PSS) | 604 | if (ctx->pmeth->pkey_id != EVP_PKEY_RSA_PSS) |
| 598 | return 1; | 605 | return 1; |
| 599 | 606 | ||
