diff options
Diffstat (limited to '')
-rw-r--r-- | src/regress/lib/libssl/interop/openssl33/Makefile | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/src/regress/lib/libssl/interop/openssl33/Makefile b/src/regress/lib/libssl/interop/openssl33/Makefile deleted file mode 100644 index eff61704d0..0000000000 --- a/src/regress/lib/libssl/interop/openssl33/Makefile +++ /dev/null | |||
@@ -1,44 +0,0 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1 2025/01/15 10:54:17 tb Exp $ | ||
2 | |||
3 | .if ! exists(/usr/local/bin/eopenssl33) | ||
4 | regress: | ||
5 | # install openssl-3.3 from ports for interop tests | ||
6 | @echo 'Run "pkg_add openssl--%3.3" to run tests against OpenSSL 3.3' | ||
7 | @echo SKIPPED | ||
8 | .else | ||
9 | |||
10 | PROGS = client server | ||
11 | CFLAGS += -DOPENSSL_SUPPRESS_DEPRECATED | ||
12 | CPPFLAGS = -I /usr/local/include/eopenssl33 | ||
13 | LDFLAGS = -L /usr/local/lib/eopenssl33 | ||
14 | LDADD = -lssl -lcrypto | ||
15 | DPADD = /usr/local/lib/eopenssl33/libssl.a \ | ||
16 | /usr/local/lib/eopenssl33/libcrypto.a | ||
17 | LD_LIBRARY_PATH = /usr/local/lib/eopenssl33 | ||
18 | REGRESS_TARGETS = run-self-client-server | ||
19 | .for p in ${PROGS} | ||
20 | REGRESS_TARGETS += run-ldd-$p run-version-$p run-protocol-$p | ||
21 | .endfor | ||
22 | |||
23 | .for p in ${PROGS} | ||
24 | |||
25 | run-ldd-$p: ldd-$p.out | ||
26 | # check that $p is linked with OpenSSL 3.3 | ||
27 | grep -q /usr/local/lib/eopenssl33/libcrypto.so ldd-$p.out | ||
28 | grep -q /usr/local/lib/eopenssl33/libssl.so ldd-$p.out | ||
29 | # check that $p is not linked with LibreSSL | ||
30 | ! grep -v libc.so ldd-$p.out | grep /usr/lib/ | ||
31 | |||
32 | run-version-$p: $p-self.out | ||
33 | # check that runtime version is OpenSSL 3.3 | ||
34 | grep 'SSLEAY_VERSION: OpenSSL 3.3' $p-self.out | ||
35 | |||
36 | run-protocol-$p: $p-self.out | ||
37 | # check that OpenSSL 3.3 protocol version is TLS 1.3 | ||
38 | grep 'Protocol *: TLSv1.3' $p-self.out | ||
39 | |||
40 | .endfor | ||
41 | |||
42 | .endif # exists(/usr/local/bin/eopenssl33) | ||
43 | |||
44 | .include <bsd.regress.mk> | ||