You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
249 B
Go
14 lines
249 B
Go
6 years ago
|
// +build !go1.7
|
||
|
|
||
|
package tlsconfig
|
||
|
|
||
|
import (
|
||
|
"crypto/x509"
|
||
|
)
|
||
|
|
||
|
// SystemCertPool returns an new empty cert pool,
|
||
|
// accessing system cert pool is supported in go 1.7
|
||
|
func SystemCertPool() (*x509.CertPool, error) {
|
||
|
return x509.NewCertPool(), nil
|
||
|
}
|