]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: ignore 5 phantom 1024-bit roots in TestSystemRoots
authorFilippo Valsorda <filippo@golang.org>
Sat, 5 Jan 2019 00:09:01 +0000 (19:09 -0500)
committerFilippo Valsorda <filippo@golang.org>
Sat, 5 Jan 2019 00:35:02 +0000 (00:35 +0000)
commit303a596d8cf2e96d27d60288fca690e1703c0dd9
treee22ee35e8079b6e168e415f2bb01a0879bb197a0
parent28fb8c69871ff3edecb0951e50f7caf38943ec5d
crypto/x509: ignore 5 phantom 1024-bit roots in TestSystemRoots

On macOS 10.11, but not 10.10 and 10.12, the C API returns 5 old root
CAs which are not in SystemRootCertificates.keychain (but seem to be in
X509Anchors and maybe SystemCACertificates.keychain, along with many
others that the C API does not return). They all are moribund 1024-bit
roots which are now gone from the Apple store.

Since we can't seem to find a way to make the no-cgo code see them,
ignore them rather than skipping the test.

Fixes #21416

Change-Id: I24ff0461f71cec953b888a60b05b99bc37dad2ed
Reviewed-on: https://go-review.googlesource.com/c/156329
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/crypto/x509/root_darwin_test.go