(dst *tls.Config, host string, src *tls.Config)
| 247 | } |
| 248 | |
| 249 | func applyPGTLSConfigForHost(dst *tls.Config, host string, src *tls.Config) { |
| 250 | if len(src.Certificates) > 0 { |
| 251 | dst.Certificates = append([]tls.Certificate(nil), src.Certificates...) |
| 252 | } |
| 253 | if src.VerifyPeerCertificate != nil { |
| 254 | dst.RootCAs = src.RootCAs |
| 255 | dst.InsecureSkipVerify = src.InsecureSkipVerify |
| 256 | dst.VerifyPeerCertificate = CreateCertificateVerifier(src.RootCAs, host) |
| 257 | } |
| 258 | } |
no test coverage detected