diff options
Diffstat (limited to '')
-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; |