David K. Bainbridge | 215e024 | 2017-09-05 23:18:24 -0700 | [diff] [blame] | 1 | // +build !go1.7 |
2 | |||||
3 | package tlsconfig | ||||
4 | |||||
5 | import ( | ||||
6 | "crypto/x509" | ||||
7 | |||||
8 | ) | ||||
9 | |||||
10 | // SystemCertPool returns an new empty cert pool, | ||||
11 | // accessing system cert pool is supported in go 1.7 | ||||
12 | func SystemCertPool() (*x509.CertPool, error) { | ||||
13 | return x509.NewCertPool(), nil | ||||
14 | } |