summaryrefslogtreecommitdiff
path: root/src/regress/lib/libssl/interop/openssl
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/openssl
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/openssl')
-rw-r--r--src/regress/lib/libssl/interop/openssl/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/regress/lib/libssl/interop/openssl/Makefile b/src/regress/lib/libssl/interop/openssl/Makefile
index 9661767d7b..ad0c7288ca 100644
--- a/src/regress/lib/libssl/interop/openssl/Makefile
+++ b/src/regress/lib/libssl/interop/openssl/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
3.if ! exists(/usr/local/bin/eopenssl) 3.if ! exists(/usr/local/bin/eopenssl)
4regress: 4regress:
@@ -22,11 +22,18 @@ run-ldd-$p: ldd-$p.out
22 grep -q /usr/local/lib/eopenssl/libssl.so ldd-$p.out 22 grep -q /usr/local/lib/eopenssl/libssl.so ldd-$p.out
23 # check that $p is not linked with LibreSSL 23 # check that $p is not linked with LibreSSL
24 ! grep -v libc.so ldd-$p.out | grep /usr/lib/ 24 ! grep -v libc.so ldd-$p.out | grep /usr/lib/
25.endfor
25 26
26run-version-$p: $p.out 27.for o in nc-client nc-server self-client self-server
28run-version-$o: $o.out
27 @echo '\n======== $@ ========' 29 @echo '\n======== $@ ========'
28 # check that runtime version is OpenSSL 1.0 30 # check that runtime version is OpenSSL 1.0
29 grep 'SSLEAY_VERSION: OpenSSL 1.0' $p.out 31 grep 'SSLEAY_VERSION: OpenSSL 1.0' $o.out
32
33run-protocol-$o: $o.out
34 @echo '\n======== $@ ========'
35 # check that protocol version is TLS 1.2
36 grep 'Protocol *: TLSv1.2' $o.out
30.endfor 37.endfor
31 38
32.include <bsd.regress.mk> 39.include <bsd.regress.mk>