Holger Hildebrandt | fa07499 | 2020-03-27 15:42:06 +0000 | [diff] [blame^] | 1 | // +build !darwin |
2 | |||||
3 | package rootcerts | ||||
4 | |||||
5 | import "crypto/x509" | ||||
6 | |||||
7 | // LoadSystemCAs does nothing on non-Darwin systems. We return nil so that | ||||
8 | // default behavior of standard TLS config libraries is triggered, which is to | ||||
9 | // load system certs. | ||||
10 | func LoadSystemCAs() (*x509.CertPool, error) { | ||||
11 | return nil, nil | ||||
12 | } |