]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.18] crypto/x509: respect GODEBUG changes for allowing SHA1 certif...
authorRuss Cox <rsc@golang.org>
Wed, 26 Oct 2022 03:10:13 +0000 (23:10 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 8 Nov 2022 16:34:46 +0000 (16:34 +0000)
commitdb5cb5fceed48a487ca15c8321ddcb19652cc1b9
tree8509c8a122a5af477f0329c6457ef8811a74bef8
parent156bf3dd36a9264f721dc98749c8899c559cca43
[release-branch.go1.18] 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.
Fixes #56437.

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>
Reviewed-on: https://go-review.googlesource.com/c/go/+/445656
src/crypto/x509/verify_test.go
src/crypto/x509/x509.go
src/crypto/x509/x509_test.go