-# $OpenBSD: Makefile,v 1.1 2022/01/30 18:38:41 jsing Exp $
+# $OpenBSD: Makefile,v 1.2 2022/03/24 15:58:57 tb Exp $
PROG= signertest
-LDADD= -lcrypto -lssl -ltls
+LDADD= -lcrypto -lssl
+LDADD+= -Wl,-Bstatic -ltls -Wl,-Bdynamic
DPADD= ${LIBCRYPTO} ${LIBSSL} ${LIBTLS}
WARNINGS= Yes
CFLAGS+= -DLIBRESSL_INTERNAL -Wall -Wundef -Werror
+CFLAGS+= -I${.CURDIR}/../../../../lib/libtls/
REGRESS_TARGETS= \
regress-signertest
-/* $OpenBSD: signertest.c,v 1.4 2022/02/01 17:19:16 jsing Exp $ */
+/* $OpenBSD: signertest.c,v 1.5 2022/03/24 15:58:57 tb Exp $ */
/*
* Copyright (c) 2017, 2018, 2022 Joel Sing <jsing@openbsd.org>
*
#include <tls.h>
+#include "tls_internal.h"
+
const char *cert_path;
int sign_cb_count;