diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2022-03-24 15:58:58 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2022-03-24 15:58:58 +0000 |
commit | 01002d20e48b6d3f3e8c1bc09d2e8288860f8fca (patch) | |
tree | e506b838e1cf3f76379bc326d1693aeb468d64b8 /regress | |
parent | ed5e8929d39b9c6c463ce3561efa6cbec8ee78dd (diff) |
Adjust the signer test to link statically and work with hidden tls_signer
API.
Diffstat (limited to 'regress')
-rw-r--r-- | regress/lib/libtls/signer/Makefile | 6 | ||||
-rw-r--r-- | regress/lib/libtls/signer/signertest.c | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/regress/lib/libtls/signer/Makefile b/regress/lib/libtls/signer/Makefile index b26141728ca..d87f9031840 100644 --- a/regress/lib/libtls/signer/Makefile +++ b/regress/lib/libtls/signer/Makefile @@ -1,11 +1,13 @@ -# $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 diff --git a/regress/lib/libtls/signer/signertest.c b/regress/lib/libtls/signer/signertest.c index 50ee5f0c44e..89af2573726 100644 --- a/regress/lib/libtls/signer/signertest.c +++ b/regress/lib/libtls/signer/signertest.c @@ -1,4 +1,4 @@ -/* $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> * @@ -32,6 +32,8 @@ #include <tls.h> +#include "tls_internal.h" + const char *cert_path; int sign_cb_count; |