summaryrefslogtreecommitdiff
path: root/src/regress/lib/libssl/interop/session/Makefile
blob: e9a353f99e759f76a6e7da38007044b6e607c4e2 (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
37
38
39
40
41
42
43
# $OpenBSD: Makefile,v 1.12 2025/01/15 10:54:17 tb Exp $

LIBRARIES =		libressl
.if exists(/usr/local/bin/eopenssl33)
#LIBRARIES +=		openssl33
.endif
.if exists(/usr/local/bin/eopenssl34)
#LIBRARIES +=		openssl34
.endif

run-session-client-libressl-server-libressl:
	# TLS 1.3 needs some extra setup for session reuse
	@echo DISABLED

.for clib in ${LIBRARIES}
.for slib in ${LIBRARIES}

REGRESS_TARGETS +=	run-session-client-${clib}-server-${slib}

run-session-client-${clib}-server-${slib}: \
    127.0.0.1.crt ../${clib}/client ../${slib}/server
	LD_LIBRARY_PATH=/usr/local/lib/e${slib} \
	    ../${slib}/server >${@:S/^run/server/}.out \
	    -ss \
	    127.0.0.1 0
	LD_LIBRARY_PATH=/usr/local/lib/e${clib} \
	    ../${clib}/client >${@:S/^run/client/}.out \
	    -ss \
	    `sed -n 's/listen sock: //p' ${@:S/^run/server/}.out`
	grep '^success$$' ${@:S/^run/server/}.out || \
	    { sleep 1; grep '^success$$' ${@:S/^run/server/}.out; }
	grep '^success$$' ${@:S/^run/client/}.out
	grep '^session 2: new$$' ${@:S/^run/server/}.out
	grep '^session 2: new$$' ${@:S/^run/client/}.out
	grep '^session 1: reuse$$' ${@:S/^run/server/}.out
	grep '^session 1: reuse$$' ${@:S/^run/client/}.out
	grep '^session 0: reuse$$' ${@:S/^run/server/}.out
	grep '^session 0: reuse$$' ${@:S/^run/client/}.out

.endfor
.endfor

.include <bsd.regress.mk>