go18.go 173 B

12345678910111213
  1. // Go 1.8 and later tls.Config deep copy.
  2. // +build go1.8
  3. package hpkp
  4. import (
  5. "crypto/tls"
  6. )
  7. func cloneTLSConfig(cfg *tls.Config) *tls.Config {
  8. return cfg.Clone()
  9. }