Skip to content

Commit a785586

Browse files
author
tb
committed
Adjust the signer test to link statically and work with hidden tls_signer
API.
1 parent dd80a5d commit a785586

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/regress/lib/libtls/signer/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
# $OpenBSD: Makefile,v 1.1 2022/01/30 18:38:41 jsing Exp $
1+
# $OpenBSD: Makefile,v 1.2 2022/03/24 15:58:57 tb Exp $
22

33
PROG= signertest
4-
LDADD= -lcrypto -lssl -ltls
4+
LDADD= -lcrypto -lssl
5+
LDADD+= -Wl,-Bstatic -ltls -Wl,-Bdynamic
56
DPADD= ${LIBCRYPTO} ${LIBSSL} ${LIBTLS}
67

78
WARNINGS= Yes
89
CFLAGS+= -DLIBRESSL_INTERNAL -Wall -Wundef -Werror
10+
CFLAGS+= -I${.CURDIR}/../../../../lib/libtls/
911

1012
REGRESS_TARGETS= \
1113
regress-signertest

src/regress/lib/libtls/signer/signertest.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: signertest.c,v 1.4 2022/02/01 17:19:16 jsing Exp $ */
1+
/* $OpenBSD: signertest.c,v 1.5 2022/03/24 15:58:57 tb Exp $ */
22
/*
33
* Copyright (c) 2017, 2018, 2022 Joel Sing <jsing@openbsd.org>
44
*
@@ -32,6 +32,8 @@
3232

3333
#include <tls.h>
3434

35+
#include "tls_internal.h"
36+
3537
const char *cert_path;
3638
int sign_cb_count;
3739

0 commit comments

Comments
 (0)