]> Cypherpunks.ru repositories - gostls13.git/commit
crypto/x509: fix system root tests + darwin intermediate handling
authorRoland Shoemaker <roland@golang.org>
Tue, 28 Feb 2023 21:23:43 +0000 (13:23 -0800)
committerRoland Shoemaker <roland@golang.org>
Wed, 1 Mar 2023 00:36:38 +0000 (00:36 +0000)
commitbb8f9a6ae66d742cb67b4ad444179905a537de00
treec7e80dccb08c6e5653ad6aad6c1b418d2b56cceb
parent0384235a15110bb3f8bf3a65eff4543d4d3e837b
crypto/x509: fix system root tests + darwin intermediate handling

On Windows, replace tests which rely on a root that expired last year.
On Darwin fix an test which wasn't testing the expected behavior, and
fix the behavior which was broken.

Fixes #58791

Change-Id: I771175b9e123b8bb0e4efdf58cc2bb93aa94fbae
Reviewed-on: https://go-review.googlesource.com/c/go/+/472295
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Roland Shoemaker <roland@golang.org>
src/crypto/x509/root_darwin.go
src/crypto/x509/root_unix_test.go
src/crypto/x509/verify_test.go