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)
| 176 | // session tickets are disabled or if ticket key rotation |
| 177 | // is disabled, this function is a no-op. |
| 178 | func (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. |
no outgoing calls
no test coverage detected