diff options
Diffstat (limited to 'src/lib/libcrypto/ec')
| -rw-r--r-- | src/lib/libcrypto/ec/ec_ameth.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/src/lib/libcrypto/ec/ec_ameth.c b/src/lib/libcrypto/ec/ec_ameth.c index dd1c31883e..0dab68d5fe 100644 --- a/src/lib/libcrypto/ec/ec_ameth.c +++ b/src/lib/libcrypto/ec/ec_ameth.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ec_ameth.c,v 1.16 2015/02/11 04:05:14 beck Exp $ */ | 1 | /* $OpenBSD: ec_ameth.c,v 1.17 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 | */ |
| @@ -65,9 +65,6 @@ | |||
| 65 | #include <openssl/err.h> | 65 | #include <openssl/err.h> |
| 66 | #include <openssl/x509.h> | 66 | #include <openssl/x509.h> |
| 67 | 67 | ||
| 68 | #ifndef OPENSSL_NO_CMS | ||
| 69 | #include <openssl/cms.h> | ||
| 70 | #endif | ||
| 71 | 68 | ||
| 72 | #include "asn1_locl.h" | 69 | #include "asn1_locl.h" |
| 73 | 70 | ||
| @@ -573,24 +570,6 @@ ec_pkey_ctrl(EVP_PKEY * pkey, int op, long arg1, void *arg2) | |||
| 573 | X509_ALGOR_set0(alg2, OBJ_nid2obj(snid), V_ASN1_UNDEF, 0); | 570 | X509_ALGOR_set0(alg2, OBJ_nid2obj(snid), V_ASN1_UNDEF, 0); |
| 574 | } | 571 | } |
| 575 | return 1; | 572 | return 1; |
| 576 | #ifndef OPENSSL_NO_CMS | ||
| 577 | case ASN1_PKEY_CTRL_CMS_SIGN: | ||
| 578 | if (arg1 == 0) { | ||
| 579 | int snid, hnid; | ||
| 580 | X509_ALGOR *alg1, *alg2; | ||
| 581 | CMS_SignerInfo_get0_algs(arg2, NULL, NULL, | ||
| 582 | &alg1, &alg2); | ||
| 583 | if (alg1 == NULL || alg1->algorithm == NULL) | ||
| 584 | return -1; | ||
| 585 | hnid = OBJ_obj2nid(alg1->algorithm); | ||
| 586 | if (hnid == NID_undef) | ||
| 587 | return -1; | ||
| 588 | if (!OBJ_find_sigid_by_algs(&snid, hnid, EVP_PKEY_id(pkey))) | ||
| 589 | return -1; | ||
| 590 | X509_ALGOR_set0(alg2, OBJ_nid2obj(snid), V_ASN1_UNDEF, 0); | ||
| 591 | } | ||
| 592 | return 1; | ||
| 593 | #endif | ||
| 594 | 573 | ||
| 595 | case ASN1_PKEY_CTRL_DEFAULT_MD_NID: | 574 | case ASN1_PKEY_CTRL_DEFAULT_MD_NID: |
| 596 | *(int *) arg2 = NID_sha1; | 575 | *(int *) arg2 = NID_sha1; |
