1
0
mirror of https://github.com/golang/go synced 2024-11-08 14:56:31 -07:00
go/src/crypto/x509
Filippo Valsorda 303a596d8c 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>
2019-01-05 00:35:02 +00:00
..
pkix all: use "reports whether" consistently instead of "returns whether" 2018-12-02 15:12:26 +00:00
testdata
cert_pool.go crypto/x509: limit number of signature checks for each verification 2018-12-14 01:04:07 +00:00
example_test.go
name_constraints_test.go
pem_decrypt_test.go
pem_decrypt.go
pkcs1.go
pkcs8_test.go
pkcs8.go
root_aix.go
root_bsd.go
root_cgo_darwin.go crypto/x509: explicitly cast printf format argument 2018-12-06 21:10:35 +00:00
root_darwin_arm_gen.go
root_darwin_armx.go
root_darwin_test.go crypto/x509: ignore 5 phantom 1024-bit roots in TestSystemRoots 2019-01-05 00:35:02 +00:00
root_darwin.go crypto/x509: fix root CA extraction on macOS (no-cgo path) 2018-12-05 22:53:43 +00:00
root_js.go
root_linux.go
root_nacl.go
root_nocgo_darwin.go
root_plan9.go
root_solaris.go
root_unix_test.go
root_unix.go
root_windows.go
root.go
sec1_test.go
sec1.go
test-file.crt
verify_test.go crypto/x509: limit number of signature checks for each verification 2018-12-14 01:04:07 +00:00
verify.go crypto/x509: limit number of signature checks for each verification 2018-12-14 01:04:07 +00:00
x509_test_import.go
x509_test.go
x509.go all: use "reports whether" consistently instead of "returns whether" 2018-12-02 15:12:26 +00:00