From 77737039aff193ee0acc739d5ba11d4be67f554f Mon Sep 17 00:00:00 2001 From: Margo Crawford Date: Fri, 11 Mar 2022 09:02:17 -0800 Subject: [PATCH] Fips only mode Signed-off-by: Margo Crawford --- internal/crypto/ptls/fips_strict.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 internal/crypto/ptls/fips_strict.go diff --git a/internal/crypto/ptls/fips_strict.go b/internal/crypto/ptls/fips_strict.go new file mode 100644 index 00000000..ad0948ea --- /dev/null +++ b/internal/crypto/ptls/fips_strict.go @@ -0,0 +1,13 @@ +//go:build fips_strict +// +build fips_strict + +package ptls + +import ( + _ "crypto/tls/fipsonly" // restricts all TLS configuration to FIPS-approved settings. + "fmt" +) + +func main() { + fmt.Println("using fips only mode.") +}