From dd01b43e8ec4833e5d6d6bac95b032b7039797e5 Mon Sep 17 00:00:00 2001
From: tb <>
Date: Thu, 26 Oct 2023 08:01:38 +0000
Subject: Provide prototype for X509_ALGOR_set_md()

Once we remove X509_ALGOR_set_md() we can link this test statically and use
X509_ALGOR_set_evp_md() but for now make sure the documented workaround for
this garbage API works.
---
 src/regress/lib/libcrypto/asn1/x509_algor.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/regress/lib/libcrypto/asn1/x509_algor.c b/src/regress/lib/libcrypto/asn1/x509_algor.c
index 8d94e5998e..47d7305663 100644
--- a/src/regress/lib/libcrypto/asn1/x509_algor.c
+++ b/src/regress/lib/libcrypto/asn1/x509_algor.c
@@ -1,4 +1,4 @@
-/*	$OpenBSD: x509_algor.c,v 1.5 2023/10/12 17:14:17 tb Exp $ */
+/*	$OpenBSD: x509_algor.c,v 1.6 2023/10/26 08:01:38 tb Exp $ */
 /*
  * Copyright (c) 2023 Theo Buehler <tb@openbsd.org>
  *
@@ -23,6 +23,8 @@
 #include <openssl/objects.h>
 #include <openssl/x509.h>
 
+void X509_ALGOR_set_md(X509_ALGOR *alg, const EVP_MD *md);
+
 static int
 x509_algor_new_test(void)
 {
-- 
cgit v1.2.3-55-g6feb