diff options
| author | jsing <> | 2016-10-19 16:49:11 +0000 |
|---|---|---|
| committer | jsing <> | 2016-10-19 16:49:11 +0000 |
| commit | 32993d77e030496e89e508d70d0fb7a85cd0787f (patch) | |
| tree | 3232d4e14c244b635cf7b2be923782ede6e3f4b0 /src/lib/libcrypto/dsa | |
| parent | bf2e4fbd312b229ea2846ec4cb8bc0c0222e4850 (diff) | |
| download | openbsd-32993d77e030496e89e508d70d0fb7a85cd0787f.tar.gz openbsd-32993d77e030496e89e508d70d0fb7a85cd0787f.tar.bz2 openbsd-32993d77e030496e89e508d70d0fb7a85cd0787f.zip | |
unifdef OPENSSL_NO_CMS
Diffstat (limited to 'src/lib/libcrypto/dsa')
| -rw-r--r-- | src/lib/libcrypto/dsa/dsa_ameth.c | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/src/lib/libcrypto/dsa/dsa_ameth.c b/src/lib/libcrypto/dsa/dsa_ameth.c index a6e21a688e..3e434701aa 100644 --- a/src/lib/libcrypto/dsa/dsa_ameth.c +++ b/src/lib/libcrypto/dsa/dsa_ameth.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: dsa_ameth.c,v 1.19 2016/03/01 07:04:41 doug Exp $ */ | 1 | /* $OpenBSD: dsa_ameth.c,v 1.20 2016/10/19 16:49:11 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 | */ |
| @@ -66,9 +66,6 @@ | |||
| 66 | #include <openssl/err.h> | 66 | #include <openssl/err.h> |
| 67 | #include <openssl/x509.h> | 67 | #include <openssl/x509.h> |
| 68 | 68 | ||
| 69 | #ifndef OPENSSL_NO_CMS | ||
| 70 | #include <openssl/cms.h> | ||
| 71 | #endif | ||
| 72 | 69 | ||
| 73 | #include "asn1_locl.h" | 70 | #include "asn1_locl.h" |
| 74 | 71 | ||
| @@ -606,26 +603,6 @@ dsa_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) | |||
| 606 | 0); | 603 | 0); |
| 607 | } | 604 | } |
| 608 | return 1; | 605 | return 1; |
| 609 | #ifndef OPENSSL_NO_CMS | ||
| 610 | case ASN1_PKEY_CTRL_CMS_SIGN: | ||
| 611 | if (arg1 == 0) { | ||
| 612 | int snid, hnid; | ||
| 613 | X509_ALGOR *alg1, *alg2; | ||
| 614 | |||
| 615 | CMS_SignerInfo_get0_algs(arg2, NULL, NULL, &alg1, &alg2); | ||
| 616 | if (alg1 == NULL || alg1->algorithm == NULL) | ||
| 617 | return -1; | ||
| 618 | hnid = OBJ_obj2nid(alg1->algorithm); | ||
| 619 | if (hnid == NID_undef) | ||
| 620 | return -1; | ||
| 621 | if (!OBJ_find_sigid_by_algs(&snid, hnid, | ||
| 622 | EVP_PKEY_id(pkey))) | ||
| 623 | return -1; | ||
| 624 | X509_ALGOR_set0(alg2, OBJ_nid2obj(snid), V_ASN1_UNDEF, | ||
| 625 | 0); | ||
| 626 | } | ||
| 627 | return 1; | ||
| 628 | #endif | ||
| 629 | 606 | ||
| 630 | case ASN1_PKEY_CTRL_DEFAULT_MD_NID: | 607 | case ASN1_PKEY_CTRL_DEFAULT_MD_NID: |
| 631 | *(int *)arg2 = NID_sha1; | 608 | *(int *)arg2 = NID_sha1; |
