summaryrefslogtreecommitdiff
path: root/src/regress/lib/libssl/interop/libressl
diff options
context:
space:
mode:
authorbluhm <>2018-11-07 20:46:28 +0000
committerbluhm <>2018-11-07 20:46:28 +0000
commit5693217025086160333d0a12214c5bee3d7660fc (patch)
tree4a37edab7e64df0fc8b70a7473deb4e7ba6402e6 /src/regress/lib/libssl/interop/libressl
parenta0109d3da709152993f22cb2bb2d8787a88fadc0 (diff)
downloadopenbsd-5693217025086160333d0a12214c5bee3d7660fc.tar.gz
openbsd-5693217025086160333d0a12214c5bee3d7660fc.tar.bz2
openbsd-5693217025086160333d0a12214c5bee3d7660fc.zip
Add a self test for each SSL library by connecting client with
server. Check that the highest available TLS version is selected. LibreSSL TLS 1.3 check is disabled until the feature becomes available.
Diffstat (limited to 'src/regress/lib/libssl/interop/libressl')
-rw-r--r--src/regress/lib/libssl/interop/libressl/Makefile19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/regress/lib/libssl/interop/libressl/Makefile b/src/regress/lib/libssl/interop/libressl/Makefile
index 5fce6c5c22..19557ffbc1 100644
--- a/src/regress/lib/libssl/interop/libressl/Makefile
+++ b/src/regress/lib/libssl/interop/libressl/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.2 2018/11/07 06:29:26 bluhm Exp $ 1# $OpenBSD: Makefile,v 1.3 2018/11/07 20:46:28 bluhm Exp $
2 2
3PROGS = client server 3PROGS = client server
4CPPFLAGS = 4CPPFLAGS =
@@ -7,6 +7,12 @@ LDADD = -lssl -lcrypto
7DPADD = ${LIBSSL} ${LIBCRYPTO} 7DPADD = ${LIBSSL} ${LIBCRYPTO}
8LD_LIBRARY_PATH = 8LD_LIBRARY_PATH =
9 9
10run-protocol-self-client run-protocol-self-server \
11run-protocol-nc-client run-protocol-nc-server:
12 @echo '\n======== $@ ========'
13 # LibreSSL does not support TLS 1.3 yet
14 @echo DISABLED
15
10.for p in ${PROGS} 16.for p in ${PROGS}
11run-ldd-$p: ldd-$p.out 17run-ldd-$p: ldd-$p.out
12 @echo '\n======== $@ ========' 18 @echo '\n======== $@ ========'
@@ -15,11 +21,18 @@ run-ldd-$p: ldd-$p.out
15 grep -q /usr/lib/libssl.so ldd-$p.out 21 grep -q /usr/lib/libssl.so ldd-$p.out
16 # check that $p is not linked with OpenSSL 22 # check that $p is not linked with OpenSSL
17 ! grep /usr/local/lib/ ldd-$p.out 23 ! grep /usr/local/lib/ ldd-$p.out
24.endfor
18 25
19run-version-$p: $p.out 26.for o in nc-client nc-server self-client self-server
27run-version-$o: $o.out
20 @echo '\n======== $@ ========' 28 @echo '\n======== $@ ========'
21 # check that runtime version is LibreSSL 29 # check that runtime version is LibreSSL
22 grep 'SSLEAY_VERSION: LibreSSL' $p.out 30 grep 'SSLEAY_VERSION: LibreSSL' $o.out
31
32run-protocol-$o: $o.out
33 @echo '\n======== $@ ========'
34 # check that protocol version is TLS 1.3
35 grep 'Protocol *: TLSv1.3' $o.out
23.endfor 36.endfor
24 37
25.include <bsd.regress.mk> 38.include <bsd.regress.mk>