diff options
-rw-r--r-- | src/lib/libcrypto/dsa/dsa_ameth.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libcrypto/dsa/dsa_ameth.c b/src/lib/libcrypto/dsa/dsa_ameth.c index f9b6a9e7d3..2fb80108bc 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.57 2024/01/04 17:01:26 tb Exp $ */ | 1 | /* $OpenBSD: dsa_ameth.c,v 1.58 2024/04/13 13:57:54 tb 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 | */ |
@@ -634,8 +634,7 @@ dsa_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) | |||
634 | hnid = OBJ_obj2nid(alg1->algorithm); | 634 | hnid = OBJ_obj2nid(alg1->algorithm); |
635 | if (hnid == NID_undef) | 635 | if (hnid == NID_undef) |
636 | return -1; | 636 | return -1; |
637 | if (!OBJ_find_sigid_by_algs(&snid, hnid, | 637 | if (!OBJ_find_sigid_by_algs(&snid, hnid, EVP_PKEY_id(pkey))) |
638 | EVP_PKEY_id(pkey))) | ||
639 | return -1; | 638 | return -1; |
640 | X509_ALGOR_set0(alg2, OBJ_nid2obj(snid), V_ASN1_UNDEF, | 639 | X509_ALGOR_set0(alg2, OBJ_nid2obj(snid), V_ASN1_UNDEF, |
641 | 0); | 640 | 0); |