]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: include roots with empty or multiple policies on macOS
authorFilippo Valsorda <filippo@golang.org>
Wed, 22 May 2019 15:10:06 +0000 (11:10 -0400)
committerFilippo Valsorda <filippo@golang.org>
Wed, 22 May 2019 16:23:17 +0000 (16:23 +0000)
commit42bb47689310ebe2fedd165db98402a7874dc6be
tree2dae049c885e2fe23c7150c9383f44ebcf63df11
parent2326a668781a664707f5775d896879668ab378e8
crypto/x509: include roots with empty or multiple policies on macOS

To a fifth reading of the relevant docs, it looks like

1) a constraint dictionary with no policy applies to all of them;
2) multiple applying constraint dictionaries should have their results OR'd;
3) untrusted certificates in the keychain should be used for chain building.

This fixes 1), approximates 2) and punts on 3).

Fixes #30672
Fixes #30471

Change-Id: Ibbaabf0b77d267377c0b5de07abca3445c2c2302
Reviewed-on: https://go-review.googlesource.com/c/go/+/178539
Reviewed-by: Adam Langley <agl@golang.org>
src/crypto/x509/root_cgo_darwin.go