summaryrefslogtreecommitdiff
path: root/regress/lib/libssl/interop/libressl/Makefile
blob: 16ec8cf086e29c52c76b6e421cd50f9a373b7cd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# $OpenBSD: Makefile,v 1.6 2020/05/11 18:20:24 jsing Exp $

PROGS =			client server
CPPFLAGS =
LDFLAGS =
LDADD =			-lssl -lcrypto
DPADD =			${LIBSSL} ${LIBCRYPTO}
LD_LIBRARY_PATH =
REGRESS_TARGETS =	run-self-client-server
.for p in ${PROGS}
REGRESS_TARGETS +=	run-ldd-$p run-version-$p run-protocol-$p
.endfor

.for p in ${PROGS}

run-ldd-$p: ldd-$p.out
	@echo '\n======== $@ ========'
	# check that $p is linked with LibreSSL
	grep -q /usr/lib/libcrypto.so ldd-$p.out
	grep -q /usr/lib/libssl.so ldd-$p.out
	# check that $p is not linked with OpenSSL
	! grep /usr/local/lib/ ldd-$p.out

run-version-$p: $p-self.out
	@echo '\n======== $@ ========'
	# check that runtime version is LibreSSL
	grep 'SSLEAY_VERSION: LibreSSL' $p-self.out

run-protocol-$p: $p-self.out
	@echo '\n======== $@ ========'
	# check that LibreSSL protocol version is TLS 1.3
	grep 'Protocol *: TLSv1.3' $p-self.out

.endfor

.include <bsd.regress.mk>