diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-03-30 21:27:11 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-03-30 21:27:11 +0000 |
commit | 29f40c0d4065a0f30bbd1d4c4c45e742d42cffb0 (patch) | |
tree | 9a0dfa827abe382ac0f44768e5365b87f00ac0a9 /libgo/go/crypto/tls/root_unix.go | |
parent | 9731acf5058127b5cd40d79134497c798f9188a1 (diff) | |
download | ppe42-gcc-29f40c0d4065a0f30bbd1d4c4c45e742d42cffb0.tar.gz ppe42-gcc-29f40c0d4065a0f30bbd1d4c4c45e742d42cffb0.zip |
libgo: Update to weekly.2012-03-13.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186023 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/go/crypto/tls/root_unix.go')
-rw-r--r-- | libgo/go/crypto/tls/root_unix.go | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/libgo/go/crypto/tls/root_unix.go b/libgo/go/crypto/tls/root_unix.go deleted file mode 100644 index acaf3dd9d67..00000000000 --- a/libgo/go/crypto/tls/root_unix.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright 2011 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build freebsd linux openbsd netbsd - -package tls - -import ( - "crypto/x509" - "io/ioutil" -) - -// Possible certificate files; stop after finding one. -var certFiles = []string{ - "/etc/ssl/certs/ca-certificates.crt", // Linux etc - "/etc/pki/tls/certs/ca-bundle.crt", // Fedora/RHEL - "/etc/ssl/ca-bundle.pem", // OpenSUSE - "/etc/ssl/cert.pem", // OpenBSD - "/usr/local/share/certs/ca-root-nss.crt", // FreeBSD -} - -func initDefaultRoots() { - roots := x509.NewCertPool() - for _, file := range certFiles { - data, err := ioutil.ReadFile(file) - if err == nil { - roots.AppendCertsFromPEM(data) - break - } - } - varDefaultRoots = roots -} |