MCPcopy
hub / github.com/caddyserver/caddy / HandshakeContext

Method HandshakeContext

modules/caddytls/connpolicy.go:266–266  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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
269func (p *ConnectionPolicy) buildStandardTLSConfig(ctx caddy.Context) error {

Callers 2

NewTransportMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected