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

Method unregister

modules/caddytls/sessiontickets.go:178–185  ·  view source on GitHub ↗

unregister stops session key management on cfg and removes the internal stored reference to cfg. If session tickets are disabled or if ticket key rotation is disabled, this function is a no-op.

(cfg *tls.Config)

Source from the content-addressed store, hash-verified

176// session tickets are disabled or if ticket key rotation
177// is disabled, this function is a no-op.
178func (s *SessionTicketService) unregister(cfg *tls.Config) {
179 if s.Disabled || s.DisableRotation {
180 return
181 }
182 s.mu.Lock()
183 delete(s.configs, cfg)
184 s.mu.Unlock()
185}
186
187// RotateSTEKs rotates the keys in keys by producing a new key and eliding
188// the oldest one. The new slice of keys is returned.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected