summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1
diff options
context:
space:
mode:
authortb <>2024-03-02 10:33:51 +0000
committertb <>2024-03-02 10:33:51 +0000
commit277f3edd9b1ca36d2165db8f849130e82cb63991 (patch)
tree58ebaeb44569122a7b0c6e9b5308c23847976977 /src/lib/libcrypto/asn1
parentec2a181702a200c7cbfaa3e93de38f22d7b9cf4b (diff)
downloadopenbsd-277f3edd9b1ca36d2165db8f849130e82cb63991.tar.gz
openbsd-277f3edd9b1ca36d2165db8f849130e82cb63991.tar.bz2
openbsd-277f3edd9b1ca36d2165db8f849130e82cb63991.zip
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
Diffstat (limited to 'src/lib/libcrypto/asn1')
-rw-r--r--src/lib/libcrypto/asn1/x_algor.c8
1 files changed, 1 insertions, 7 deletions
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 @@
1/* $OpenBSD: x_algor.c,v 1.38 2023/11/01 20:41:12 tb Exp $ */ 1/* $OpenBSD: x_algor.c,v 1.39 2024/03/02 10:33:51 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 2000. 3 * project 2000.
4 */ 4 */
@@ -268,12 +268,6 @@ X509_ALGOR_set_evp_md(X509_ALGOR *alg, const EVP_MD *md)
268 return 1; 268 return 1;
269} 269}
270 270
271void
272X509_ALGOR_set_md(X509_ALGOR *alg, const EVP_MD *md)
273{
274 (void)X509_ALGOR_set_evp_md(alg, md);
275}
276
277int 271int
278X509_ALGOR_cmp(const X509_ALGOR *a, const X509_ALGOR *b) 272X509_ALGOR_cmp(const X509_ALGOR *a, const X509_ALGOR *b)
279{ 273{