diff options
author | bluhm <> | 2018-11-07 20:46:28 +0000 |
---|---|---|
committer | bluhm <> | 2018-11-07 20:46:28 +0000 |
commit | 5693217025086160333d0a12214c5bee3d7660fc (patch) | |
tree | 4a37edab7e64df0fc8b70a7473deb4e7ba6402e6 /src/regress/lib/libssl/interop/openssl11 | |
parent | a0109d3da709152993f22cb2bb2d8787a88fadc0 (diff) | |
download | openbsd-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/openssl11')
-rw-r--r-- | src/regress/lib/libssl/interop/openssl11/Makefile | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/regress/lib/libssl/interop/openssl11/Makefile b/src/regress/lib/libssl/interop/openssl11/Makefile index b11e08488a..e7257a3976 100644 --- a/src/regress/lib/libssl/interop/openssl11/Makefile +++ b/src/regress/lib/libssl/interop/openssl11/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1 2018/11/07 19:09:01 bluhm Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2018/11/07 20:46:28 bluhm Exp $ |
2 | 2 | ||
3 | .if ! exists(/usr/local/bin/eopenssl11) | 3 | .if ! exists(/usr/local/bin/eopenssl11) |
4 | regress: | 4 | regress: |
@@ -14,6 +14,11 @@ DPADD = /usr/local/lib/eopenssl11/libssl.a \ | |||
14 | /usr/local/lib/eopenssl11/libcrypto.a | 14 | /usr/local/lib/eopenssl11/libcrypto.a |
15 | LD_LIBRARY_PATH = /usr/local/lib/eopenssl11 | 15 | LD_LIBRARY_PATH = /usr/local/lib/eopenssl11 |
16 | 16 | ||
17 | run-protocol-nc-client run-protocol-nc-server: | ||
18 | @echo '\n======== $@ ========' | ||
19 | # LibreSSL does not support TLS 1.3 yet | ||
20 | @echo DISABLED | ||
21 | |||
17 | .for p in ${PROGS} | 22 | .for p in ${PROGS} |
18 | run-ldd-$p: ldd-$p.out | 23 | run-ldd-$p: ldd-$p.out |
19 | @echo '\n======== $@ ========' | 24 | @echo '\n======== $@ ========' |
@@ -22,11 +27,18 @@ run-ldd-$p: ldd-$p.out | |||
22 | grep -q /usr/local/lib/eopenssl11/libssl.so ldd-$p.out | 27 | grep -q /usr/local/lib/eopenssl11/libssl.so ldd-$p.out |
23 | # check that $p is not linked with LibreSSL | 28 | # check that $p is not linked with LibreSSL |
24 | ! grep -v libc.so ldd-$p.out | grep /usr/lib/ | 29 | ! grep -v libc.so ldd-$p.out | grep /usr/lib/ |
30 | .endfor | ||
25 | 31 | ||
26 | run-version-$p: $p.out | 32 | .for o in nc-client nc-server self-client self-server |
33 | run-version-$o: $o.out | ||
27 | @echo '\n======== $@ ========' | 34 | @echo '\n======== $@ ========' |
28 | # check that runtime version is OpenSSL 1.1 | 35 | # check that runtime version is OpenSSL 1.1 |
29 | grep 'SSLEAY_VERSION: OpenSSL 1.1' $p.out | 36 | grep 'SSLEAY_VERSION: OpenSSL 1.1' $o.out |
37 | |||
38 | run-protocol-$o: $o.out | ||
39 | @echo '\n======== $@ ========' | ||
40 | # check that protocol version is TLS 1.3 | ||
41 | grep 'Protocol *: TLSv1.3' $o.out | ||
30 | .endfor | 42 | .endfor |
31 | 43 | ||
32 | .include <bsd.regress.mk> | 44 | .include <bsd.regress.mk> |