From 89eb64e4c740465b9ae86211f8cea0d76ff94956 Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 2 Mar 2024 10:33:51 +0000 Subject: Remove X509_ALGOR_set_md() One of those void APIs that are super hard to use safely since they can fail but can't communicate failure. Nothing uses this. Internal uses have been converted to error checked X509_ALGOR_set_evp_md(). ok jsing --- src/lib/libcrypto/asn1/x_algor.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/lib/libcrypto/asn1/x_algor.c') diff --git a/src/lib/libcrypto/asn1/x_algor.c b/src/lib/libcrypto/asn1/x_algor.c index d9a6cf9d8e..939ce4b669 100644 --- a/src/lib/libcrypto/asn1/x_algor.c +++ b/src/lib/libcrypto/asn1/x_algor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x_algor.c,v 1.38 2023/11/01 20:41:12 tb Exp $ */ +/* $OpenBSD: x_algor.c,v 1.39 2024/03/02 10:33:51 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2000. */ @@ -268,12 +268,6 @@ X509_ALGOR_set_evp_md(X509_ALGOR *alg, const EVP_MD *md) return 1; } -void -X509_ALGOR_set_md(X509_ALGOR *alg, const EVP_MD *md) -{ - (void)X509_ALGOR_set_evp_md(alg, md); -} - int X509_ALGOR_cmp(const X509_ALGOR *a, const X509_ALGOR *b) { -- cgit v1.2.3-55-g6feb