summaryrefslogtreecommitdiff
path: root/regress/lib/libssl/interop/libressl
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2018-11-07 20:46:29 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2018-11-07 20:46:29 +0000
commita4056e77cbb26f6a514e69738bd98681be4df918 (patch)
tree2deeba44875e2c55f96a7b85dca764ae55e3956c /regress/lib/libssl/interop/libressl
parent06d968cecd13de2f223a1d4c9feff96a9d241ade (diff)
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 'regress/lib/libssl/interop/libressl')
-rw-r--r--regress/lib/libssl/interop/libressl/Makefile19
1 files changed, 16 insertions, 3 deletions
diff --git a/regress/lib/libssl/interop/libressl/Makefile b/regress/lib/libssl/interop/libressl/Makefile
index 5fce6c5c223..19557ffbc1c 100644
--- a/regress/lib/libssl/interop/libressl/Makefile
+++ b/regress/lib/libssl/interop/libressl/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.2 2018/11/07 06:29:26 bluhm Exp $
+# $OpenBSD: Makefile,v 1.3 2018/11/07 20:46:28 bluhm Exp $
PROGS = client server
CPPFLAGS =
@@ -7,6 +7,12 @@ LDADD = -lssl -lcrypto
DPADD = ${LIBSSL} ${LIBCRYPTO}
LD_LIBRARY_PATH =
+run-protocol-self-client run-protocol-self-server \
+run-protocol-nc-client run-protocol-nc-server:
+ @echo '\n======== $@ ========'
+ # LibreSSL does not support TLS 1.3 yet
+ @echo DISABLED
+
.for p in ${PROGS}
run-ldd-$p: ldd-$p.out
@echo '\n======== $@ ========'
@@ -15,11 +21,18 @@ run-ldd-$p: ldd-$p.out
grep -q /usr/lib/libssl.so ldd-$p.out
# check that $p is not linked with OpenSSL
! grep /usr/local/lib/ ldd-$p.out
+.endfor
-run-version-$p: $p.out
+.for o in nc-client nc-server self-client self-server
+run-version-$o: $o.out
@echo '\n======== $@ ========'
# check that runtime version is LibreSSL
- grep 'SSLEAY_VERSION: LibreSSL' $p.out
+ grep 'SSLEAY_VERSION: LibreSSL' $o.out
+
+run-protocol-$o: $o.out
+ @echo '\n======== $@ ========'
+ # check that protocol version is TLS 1.3
+ grep 'Protocol *: TLSv1.3' $o.out
.endfor
.include <bsd.regress.mk>