Fix cttest to use public header
authortb <tb@openbsd.org>
Fri, 14 Apr 2023 11:18:40 +0000 (11:18 +0000)
committertb <tb@openbsd.org>
Fri, 14 Apr 2023 11:18:40 +0000 (11:18 +0000)
regress/lib/libcrypto/ct/Makefile
regress/lib/libcrypto/ct/cttest.c

index 2856ddf..5cfdf74 100644 (file)
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.4 2023/03/02 21:17:35 tb Exp $
+# $OpenBSD: Makefile,v 1.5 2023/04/14 11:18:40 tb Exp $
 
 PROG=          cttest
 LDADD=         -lcrypto
@@ -7,7 +7,6 @@ DPADD=          ${LIBCRYPTO}
 WARNINGS=      Yes
 CFLAGS+=       -Wundef -Werror
 CFLAGS+=       -DLIBRESSL_CRYPTO_INTERNAL -DLIBRESSL_INTERNAL
-CFLAGS+=       -I$(BSDSRCDIR)/lib/libcrypto
 
 run-regress-cttest: cttest
        ./cttest ${.CURDIR}/../../libcrypto/ct/
index 05ec88c..8986c93 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: cttest.c,v 1.4 2023/01/01 17:00:08 miod Exp $ */
+/* $OpenBSD: cttest.c,v 1.5 2023/04/14 11:18:40 tb Exp $ */
 /*
  * Copyright (c) 2021 Joel Sing <jsing@openbsd.org>
  *
 #include <err.h>
 #include <string.h>
 
+#include <openssl/ct.h>
 #include <openssl/err.h>
 #include <openssl/pem.h>
 #include <openssl/x509v3.h>
 
-#include "ct/ct.h"
-
 char *test_ctlog_conf_file;
 char *test_cert_file;
 char *test_issuer_file;