summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2023-04-14 11:18:40 +0000
committertb <>2023-04-14 11:18:40 +0000
commit25fb8b7b6452723037d5e49c8ceb8e1430e7e379 (patch)
treeab717fa679a8293ed2f31587ac3f4bd8a5bb40b1 /src
parentaddc99b7cf477bb15e2929ce35c59aee13598588 (diff)
downloadopenbsd-25fb8b7b6452723037d5e49c8ceb8e1430e7e379.tar.gz
openbsd-25fb8b7b6452723037d5e49c8ceb8e1430e7e379.tar.bz2
openbsd-25fb8b7b6452723037d5e49c8ceb8e1430e7e379.zip
Fix cttest to use public header
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libcrypto/ct/Makefile3
-rw-r--r--src/regress/lib/libcrypto/ct/cttest.c5
2 files changed, 3 insertions, 5 deletions
diff --git a/src/regress/lib/libcrypto/ct/Makefile b/src/regress/lib/libcrypto/ct/Makefile
index 2856ddf288..5cfdf74c11 100644
--- a/src/regress/lib/libcrypto/ct/Makefile
+++ b/src/regress/lib/libcrypto/ct/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.4 2023/03/02 21:17:35 tb Exp $ 1# $OpenBSD: Makefile,v 1.5 2023/04/14 11:18:40 tb Exp $
2 2
3PROG= cttest 3PROG= cttest
4LDADD= -lcrypto 4LDADD= -lcrypto
@@ -7,7 +7,6 @@ DPADD= ${LIBCRYPTO}
7WARNINGS= Yes 7WARNINGS= Yes
8CFLAGS+= -Wundef -Werror 8CFLAGS+= -Wundef -Werror
9CFLAGS+= -DLIBRESSL_CRYPTO_INTERNAL -DLIBRESSL_INTERNAL 9CFLAGS+= -DLIBRESSL_CRYPTO_INTERNAL -DLIBRESSL_INTERNAL
10CFLAGS+= -I$(BSDSRCDIR)/lib/libcrypto
11 10
12run-regress-cttest: cttest 11run-regress-cttest: cttest
13 ./cttest ${.CURDIR}/../../libcrypto/ct/ 12 ./cttest ${.CURDIR}/../../libcrypto/ct/
diff --git a/src/regress/lib/libcrypto/ct/cttest.c b/src/regress/lib/libcrypto/ct/cttest.c
index 05ec88c091..8986c93883 100644
--- a/src/regress/lib/libcrypto/ct/cttest.c
+++ b/src/regress/lib/libcrypto/ct/cttest.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: cttest.c,v 1.4 2023/01/01 17:00:08 miod Exp $ */ 1/* $OpenBSD: cttest.c,v 1.5 2023/04/14 11:18:40 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2021 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2021 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -18,12 +18,11 @@
18#include <err.h> 18#include <err.h>
19#include <string.h> 19#include <string.h>
20 20
21#include <openssl/ct.h>
21#include <openssl/err.h> 22#include <openssl/err.h>
22#include <openssl/pem.h> 23#include <openssl/pem.h>
23#include <openssl/x509v3.h> 24#include <openssl/x509v3.h>
24 25
25#include "ct/ct.h"
26
27char *test_ctlog_conf_file; 26char *test_ctlog_conf_file;
28char *test_cert_file; 27char *test_cert_file;
29char *test_issuer_file; 28char *test_issuer_file;