HandshakeContext returns a context to pass into CertMagic's GetCertificate function used to serve, load, and manage certs during TLS handshakes. Generally you'll start with the context from the ClientHelloInfo, but you may use other information from it as well. Return an error to abort the handshake
(*tls.ClientHelloInfo)
| 264 | // from the ClientHelloInfo, but you may use other information |
| 265 | // from it as well. Return an error to abort the handshake. |
| 266 | HandshakeContext(*tls.ClientHelloInfo) (context.Context, error) |
| 267 | } |
| 268 | |
| 269 | func (p *ConnectionPolicy) buildStandardTLSConfig(ctx caddy.Context) error { |
no outgoing calls
no test coverage detected