diff options
author | tb <> | 2023-04-14 11:18:40 +0000 |
---|---|---|
committer | tb <> | 2023-04-14 11:18:40 +0000 |
commit | 25fb8b7b6452723037d5e49c8ceb8e1430e7e379 (patch) | |
tree | ab717fa679a8293ed2f31587ac3f4bd8a5bb40b1 /src | |
parent | addc99b7cf477bb15e2929ce35c59aee13598588 (diff) | |
download | openbsd-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/Makefile | 3 | ||||
-rw-r--r-- | src/regress/lib/libcrypto/ct/cttest.c | 5 |
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 | ||
3 | PROG= cttest | 3 | PROG= cttest |
4 | LDADD= -lcrypto | 4 | LDADD= -lcrypto |
@@ -7,7 +7,6 @@ DPADD= ${LIBCRYPTO} | |||
7 | WARNINGS= Yes | 7 | WARNINGS= Yes |
8 | CFLAGS+= -Wundef -Werror | 8 | CFLAGS+= -Wundef -Werror |
9 | CFLAGS+= -DLIBRESSL_CRYPTO_INTERNAL -DLIBRESSL_INTERNAL | 9 | CFLAGS+= -DLIBRESSL_CRYPTO_INTERNAL -DLIBRESSL_INTERNAL |
10 | CFLAGS+= -I$(BSDSRCDIR)/lib/libcrypto | ||
11 | 10 | ||
12 | run-regress-cttest: cttest | 11 | run-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 | |||
27 | char *test_ctlog_conf_file; | 26 | char *test_ctlog_conf_file; |
28 | char *test_cert_file; | 27 | char *test_cert_file; |
29 | char *test_issuer_file; | 28 | char *test_issuer_file; |