# $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