]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: respect GODEBUG changes for allowing SHA1 certificates
authorRuss Cox <rsc@golang.org>
Wed, 26 Oct 2022 03:10:13 +0000 (23:10 -0400)
committerGopher Robot <gobot@golang.org>
Wed, 26 Oct 2022 16:35:20 +0000 (16:35 +0000)
commit2a2b163bb9125389c5f70e65aec21816e2ea09c5
treebc8ddf9f7643ecd7746c0f965c626d4362e58f6a
parent3afba3124df90f1b2f56d3324793f16649a2d93a
crypto/x509: respect GODEBUG changes for allowing SHA1 certificates

This allows programs that want SHA1 support to call os.Setenv at startup
instead of insisting that users set the environment variable themselves.

For #41682.
Fixes #56436.

Change-Id: Idcb96212a1d8c560e1dd8eaf7c80b6266f16431e
Reviewed-on: https://go-review.googlesource.com/c/go/+/445496
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Roland Shoemaker <roland@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Russ Cox <rsc@golang.org>
src/crypto/x509/verify_test.go
src/crypto/x509/x509.go
src/crypto/x509/x509_test.go