summaryrefslogtreecommitdiff
path: root/regress/lib/libcrypto/certs/Makefile
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2020-07-14 18:27:29 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2020-07-14 18:27:29 +0000
commitd6d1b9677130e7050d98626266a707ec00843340 (patch)
treed4051cc528e0f4f3c459aa4185bf049a553598ec /regress/lib/libcrypto/certs/Makefile
parenta847b703f2e49b63b3d32cf614b5f4bfa9ed76de (diff)
Provide tools to build certificate changes for verify regress.
This provides a script that generates a variety of certificate chains and assembles them into bundles containing various permutations, which can be used to test our X.509 verification. A Go program is included to verify each of these bundles. ok beck@ tb@
Diffstat (limited to 'regress/lib/libcrypto/certs/Makefile')
-rw-r--r--regress/lib/libcrypto/certs/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/regress/lib/libcrypto/certs/Makefile b/regress/lib/libcrypto/certs/Makefile
new file mode 100644
index 00000000000..621c60907fb
--- /dev/null
+++ b/regress/lib/libcrypto/certs/Makefile
@@ -0,0 +1,21 @@
+# $OpenBSD: Makefile,v 1.1 2020/07/14 18:27:28 jsing Exp $
+
+.if ! (make(clean) || make(cleandir) || make(obj))
+GO_VERSION != sh -c "(go version) 2>/dev/null || true"
+.endif
+
+.if empty(GO_VERSION)
+regress:
+ @echo package go is required for this regress
+ @echo SKIPPED
+.endif
+
+REGRESS_TARGETS=regress-go-verify
+
+certs:
+ cd ${.CURDIR} && sh ./make-certs.sh
+
+regress-go-verify:
+ cd ${.CURDIR} && go test -test.v .
+
+.include <bsd.regress.mk>