diff options
Diffstat (limited to '')
-rw-r--r-- | src/regress/lib/libssl/tlsfuzzer/Makefile | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/regress/lib/libssl/tlsfuzzer/Makefile b/src/regress/lib/libssl/tlsfuzzer/Makefile new file mode 100644 index 0000000000..224fc96c5c --- /dev/null +++ b/src/regress/lib/libssl/tlsfuzzer/Makefile | |||
@@ -0,0 +1,45 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1 2020/05/21 10:38:43 tb Exp $ | ||
2 | |||
3 | .if !exists(/usr/local/share/tlsfuzzer) | ||
4 | regress: | ||
5 | @echo package py3-tlsfuzzer is required for this regress | ||
6 | @echo SKIPPED | ||
7 | .else | ||
8 | |||
9 | localhost.key localhost.crt: | ||
10 | openssl req -x509 -newkey rsa -keyout localhost.key -out localhost.crt \ | ||
11 | -subj /CN=localhost -nodes -batch | ||
12 | |||
13 | certs: localhost.key localhost.crt | ||
14 | |||
15 | CLEANFILES += localhost.key localhost.crt | ||
16 | |||
17 | PORT ?= 4433 | ||
18 | SLOW = -s | ||
19 | TIMING = # -t | ||
20 | VERBOSE = # -v | ||
21 | |||
22 | all: certs | ||
23 | python3 ${.CURDIR}/tlsfuzzer.py ${SLOW} ${TIMING} ${VERBOSE} | ||
24 | |||
25 | failing: certs | ||
26 | python3 ${.CURDIR}/tlsfuzzer.py -f ${SLOW} ${TIMING} ${VERBOSE} | ||
27 | |||
28 | |||
29 | port: certs | ||
30 | python3 ${.CURDIR}/tlsfuzzer.py ${SLOW} ${TIMING} ${VERBOSE} -p ${PORT} | ||
31 | |||
32 | list: | ||
33 | @python3 ${.CURDIR}/tlsfuzzer.py -l | ||
34 | |||
35 | list-failing: | ||
36 | @python3 ${.CURDIR}/tlsfuzzer.py -l -f | ||
37 | |||
38 | missing: | ||
39 | @python3 ${.CURDIR}/tlsfuzzer.py -m | ||
40 | |||
41 | .PHONY: all certs failing list list-failing missing port | ||
42 | |||
43 | .endif | ||
44 | |||
45 | .include <bsd.regress.mk> | ||