diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2020-07-14 18:27:29 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2020-07-14 18:27:29 +0000 |
commit | d6d1b9677130e7050d98626266a707ec00843340 (patch) | |
tree | d4051cc528e0f4f3c459aa4185bf049a553598ec /regress/lib/libcrypto/certs/Makefile | |
parent | a847b703f2e49b63b3d32cf614b5f4bfa9ed76de (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/Makefile | 21 |
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> |