1
0
mirror of https://github.com/drone/drone-cli.git synced 2026-01-15 23:41:33 +01:00
drone-cli/vendor/github.com/jackspirou/syscerts/root.go
jackspirou 67e0ed9b4f use the drone.NewClientTokenTLS method and vendor by hand
updating github.com/drone/drone-go vendored dep

vendor by hand

update vendored drone-go

fixing syscerts

fixing windows 509x package errors

use TLS CA roots with windows later
2016-03-14 23:54:50 -05:00

23 lines
460 B
Go

// Copyright 2012 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.
package syscerts
import (
"crypto/x509"
"sync"
)
var (
once sync.Once
systemRoots *x509.CertPool
)
// SystemRootsPool attempts to find and return a pool of all all installed
// system certificates.
func SystemRootsPool() *x509.CertPool {
once.Do(initSystemRoots)
return systemRoots
}