diff options
author | tb <> | 2025-01-15 10:54:17 +0000 |
---|---|---|
committer | tb <> | 2025-01-15 10:54:17 +0000 |
commit | 5f0eba55ef76d10d214ee6e9720f71139555905b (patch) | |
tree | b4d18eb73941fd86bc3bffedf7d6913942390942 /src/regress/lib/libssl/interop/openssl11 | |
parent | 85b648c5f8603ca38a5239a92436c6d644c7b87b (diff) | |
download | openbsd-5f0eba55ef76d10d214ee6e9720f71139555905b.tar.gz openbsd-5f0eba55ef76d10d214ee6e9720f71139555905b.tar.bz2 openbsd-5f0eba55ef76d10d214ee6e9720f71139555905b.zip |
Interop tests for openssl 3.3 and 3.4, retire 3.2, 1.1 (and 3.1 remnants)
OpenSSL 1.1 and 3.2 will be removed from the ports tree, so test the two
remaining versions. Unfortunately, this requires a lot more manual
massaging than there should be.
Diffstat (limited to 'src/regress/lib/libssl/interop/openssl11')
-rw-r--r-- | src/regress/lib/libssl/interop/openssl11/Makefile | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/regress/lib/libssl/interop/openssl11/Makefile b/src/regress/lib/libssl/interop/openssl11/Makefile deleted file mode 100644 index 27e7354925..0000000000 --- a/src/regress/lib/libssl/interop/openssl11/Makefile +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | # $OpenBSD: Makefile,v 1.8 2021/12/02 17:10:53 kn Exp $ | ||
2 | |||
3 | .if ! exists(/usr/local/bin/eopenssl11) | ||
4 | regress: | ||
5 | # install openssl-1.1 from ports for interop tests | ||
6 | @echo 'Run "pkg_add openssl--%1.1" to run tests against OpenSSL 1.1' | ||
7 | @echo SKIPPED | ||
8 | .else | ||
9 | |||
10 | PROGS = client server | ||
11 | CPPFLAGS = -I /usr/local/include/eopenssl11 | ||
12 | LDFLAGS = -L /usr/local/lib/eopenssl11 | ||
13 | LDADD = -lssl -lcrypto | ||
14 | DPADD = /usr/local/lib/eopenssl11/libssl.a \ | ||
15 | /usr/local/lib/eopenssl11/libcrypto.a | ||
16 | LD_LIBRARY_PATH = /usr/local/lib/eopenssl11 | ||
17 | REGRESS_TARGETS = run-self-client-server | ||
18 | .for p in ${PROGS} | ||
19 | REGRESS_TARGETS += run-ldd-$p run-version-$p run-protocol-$p | ||
20 | .endfor | ||
21 | |||
22 | .for p in ${PROGS} | ||
23 | |||
24 | run-ldd-$p: ldd-$p.out | ||
25 | # check that $p is linked with OpenSSL 1.1 | ||
26 | grep -q /usr/local/lib/eopenssl11/libcrypto.so ldd-$p.out | ||
27 | grep -q /usr/local/lib/eopenssl11/libssl.so ldd-$p.out | ||
28 | # check that $p is not linked with LibreSSL | ||
29 | ! grep -v libc.so ldd-$p.out | grep /usr/lib/ | ||
30 | |||
31 | run-version-$p: $p-self.out | ||
32 | # check that runtime version is OpenSSL 1.1 | ||
33 | grep 'SSLEAY_VERSION: OpenSSL 1.1' $p-self.out | ||
34 | |||
35 | run-protocol-$p: $p-self.out | ||
36 | # check that OpenSSL 1.1 protocol version is TLS 1.3 | ||
37 | grep 'Protocol *: TLSv1.3' $p-self.out | ||
38 | |||
39 | .endfor | ||
40 | |||
41 | .endif # exists(/usr/local/bin/eopenssl11) | ||
42 | |||
43 | .include <bsd.regress.mk> | ||