diff options
Diffstat (limited to 'src/regress/lib/libssl/interop/libressl/Makefile')
-rw-r--r-- | src/regress/lib/libssl/interop/libressl/Makefile | 30 |
1 files changed, 11 insertions, 19 deletions
diff --git a/src/regress/lib/libssl/interop/libressl/Makefile b/src/regress/lib/libssl/interop/libressl/Makefile index 6923e12469..868c3c146f 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.4 2018/11/09 06:30:41 bluhm Exp $ | 1 | # $OpenBSD: Makefile,v 1.5 2018/11/11 00:15:04 bluhm Exp $ |
2 | 2 | ||
3 | PROGS = client server | 3 | PROGS = client server |
4 | CPPFLAGS = | 4 | CPPFLAGS = |
@@ -6,21 +6,13 @@ LDFLAGS = | |||
6 | LDADD = -lssl -lcrypto | 6 | LDADD = -lssl -lcrypto |
7 | DPADD = ${LIBSSL} ${LIBCRYPTO} | 7 | DPADD = ${LIBSSL} ${LIBCRYPTO} |
8 | LD_LIBRARY_PATH = | 8 | LD_LIBRARY_PATH = |
9 | REGRESS_TARGETS = run-self | 9 | REGRESS_TARGETS = run-self-client-server |
10 | .for p in ${PROGS} | 10 | .for p in ${PROGS} |
11 | REGRESS_TARGETS += run-ldd-$p run-$p | 11 | REGRESS_TARGETS += run-ldd-$p run-version-$p run-protocol-$p |
12 | .for x in nc self | ||
13 | REGRESS_TARGETS += run-version-$x-$p run-protocol-$x-$p | ||
14 | .endfor | 12 | .endfor |
15 | .endfor | ||
16 | |||
17 | run-protocol-self-client run-protocol-self-server \ | ||
18 | run-protocol-nc-client run-protocol-nc-server: | ||
19 | @echo '\n======== $@ ========' | ||
20 | # LibreSSL does not support TLS 1.3 yet | ||
21 | @echo DISABLED | ||
22 | 13 | ||
23 | .for p in ${PROGS} | 14 | .for p in ${PROGS} |
15 | |||
24 | run-ldd-$p: ldd-$p.out | 16 | run-ldd-$p: ldd-$p.out |
25 | @echo '\n======== $@ ========' | 17 | @echo '\n======== $@ ========' |
26 | # check that $p is linked with LibreSSL | 18 | # check that $p is linked with LibreSSL |
@@ -28,18 +20,18 @@ run-ldd-$p: ldd-$p.out | |||
28 | grep -q /usr/lib/libssl.so ldd-$p.out | 20 | grep -q /usr/lib/libssl.so ldd-$p.out |
29 | # check that $p is not linked with OpenSSL | 21 | # check that $p is not linked with OpenSSL |
30 | ! grep /usr/local/lib/ ldd-$p.out | 22 | ! grep /usr/local/lib/ ldd-$p.out |
31 | .endfor | ||
32 | 23 | ||
33 | .for o in nc-client nc-server self-client self-server | 24 | run-version-$p: $p-self.out |
34 | run-version-$o: $o.out | ||
35 | @echo '\n======== $@ ========' | 25 | @echo '\n======== $@ ========' |
36 | # check that runtime version is LibreSSL | 26 | # check that runtime version is LibreSSL |
37 | grep 'SSLEAY_VERSION: LibreSSL' $o.out | 27 | grep 'SSLEAY_VERSION: LibreSSL' $p-self.out |
38 | 28 | ||
39 | run-protocol-$o: $o.out | 29 | run-protocol-$p: $p-self.out |
40 | @echo '\n======== $@ ========' | 30 | @echo '\n======== $@ ========' |
41 | # check that protocol version is TLS 1.3 | 31 | # check that LibreSSL protocol version is TLS 1.2 |
42 | grep 'Protocol *: TLSv1.3' $o.out | 32 | # XXX adapt when LibreSSL supports TLS 1.3 |
33 | grep 'Protocol *: TLSv1.2' $p-self.out | ||
34 | |||
43 | .endfor | 35 | .endfor |
44 | 36 | ||
45 | .include <bsd.regress.mk> | 37 | .include <bsd.regress.mk> |