PR c++/86342 - -Wdeprecated-copy and system headers.
[official-gcc.git] / libgo / go / crypto / x509 / root.go
blob787d955be47db2e80be9416c20ea2c6613499f81
1 // Copyright 2012 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 package x509
7 import "sync"
9 var (
10 once sync.Once
11 systemRoots *CertPool
12 systemRootsErr error
15 func systemRootsPool() *CertPool {
16 once.Do(initSystemRoots)
17 return systemRoots
20 func initSystemRoots() {
21 systemRoots, systemRootsErr = loadSystemRoots()