certpool_other.go 374 B

12345678910111213141516
  1. // +build !go1.7
  2. package tlsconfig
  3. import (
  4. "crypto/x509"
  5. "github.com/Sirupsen/logrus"
  6. )
  7. // SystemCertPool returns an new empty cert pool,
  8. // accessing system cert pool is supported in go 1.7
  9. func SystemCertPool() (*x509.CertPool, error) {
  10. logrus.Warn("Unable to use system certificate pool: requires building with go 1.7 or later")
  11. return x509.NewCertPool(), nil
  12. }