tlsconfig_clone.go 273 B

1234567891011
  1. // +build go1.8
  2. package client
  3. import "crypto/tls"
  4. // tlsConfigClone returns a clone of tls.Config. This function is provided for
  5. // compatibility for go1.7 that doesn't include this method in stdlib.
  6. func tlsConfigClone(c *tls.Config) *tls.Config {
  7. return c.Clone()
  8. }