summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2023-10-26 08:01:39 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2023-10-26 08:01:39 +0000
commite963519027fce12c0190ae47aab43461e609cd00 (patch)
treeda5a5f28c7a2c6c6bf1490877cf3bb2b6dcb3a7b /regress
parent4c3eaa83fc80272002e74e91a40a1cb134aa6383 (diff)
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.
Diffstat (limited to 'regress')
-rw-r--r--regress/lib/libcrypto/asn1/x509_algor.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/regress/lib/libcrypto/asn1/x509_algor.c b/regress/lib/libcrypto/asn1/x509_algor.c
index 8d94e5998e1..47d73056630 100644
--- a/regress/lib/libcrypto/asn1/x509_algor.c
+++ b/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)
{