]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: add BetterTLS test coverage
authorDaniel McCarney <daniel@binaryparadox.net>
Mon, 3 Nov 2025 18:00:37 +0000 (13:00 -0500)
committerGopher Robot <gobot@golang.org>
Mon, 3 Nov 2025 21:11:11 +0000 (13:11 -0800)
commit4d2b03d2fc281a1883aceee3511f22d4865f8844
treee9f5b6cbc40788526c3f3ee3eb743d76a91d56ad
parent0c4444e13dc7f6a56b16224d32359559edff93b6
crypto/tls: add BetterTLS test coverage

This commit adds test coverage of path building and name constraint
verification using the suite of test data provided by Netflix's
BetterTLS project.

Since the uncompressed raw JSON test data exported by BetterTLS for
external test integrations is ~31MB we use a similar approach to the
BoGo and ACVP test integrations and fetch the BetterTLS Go module, and
run its export tool on-the-fly to generate the test data in a tempdir.

As expected, all tests pass currently and this coverage is mainly
helpful in catching regressions, especially with tricky/cursed name
constraints.

Change-Id: I23d7c24232e314aece86bcbfd133b7f02c9e71b5
Reviewed-on: https://go-review.googlesource.com/c/go/+/717420
TryBot-Bypass: Daniel McCarney <daniel@binaryparadox.net>
Reviewed-by: Roland Shoemaker <roland@golang.org>
Auto-Submit: Daniel McCarney <daniel@binaryparadox.net>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/crypto/tls/bettertls_test.go [new file with mode: 0644]