]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: load all trusted certs on darwin (nocgo)
authorNathaniel Caza <mastercactapus@gmail.com>
Tue, 14 Feb 2017 03:00:06 +0000 (21:00 -0600)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 14 Jul 2017 18:47:10 +0000 (18:47 +0000)
commit4dbcacda961abb0ca3490dc06923fa7ab344d702
treee7d58fcf4a4485f2c00c2b068900106cf21dabd5
parenta005a8d1b4ab37c1f5fd200fc57d2a67ce87c8ac
crypto/x509: load all trusted certs on darwin (nocgo)

The current implementation ignores certificates that exist
in the login and System keychains.

This change adds the missing System and login keychain
files to the `/usr/bin/security` command in
`execSecurityRoots`. If the current user cannot be
obtained, the login keychain is ignored.

Refs #16532

Change-Id: I8594a6b8940c58df8a8015b274fa45c39e18862c
Reviewed-on: https://go-review.googlesource.com/36941
Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/crypto/x509/root_darwin.go
src/go/build/deps_test.go