ClientSessionCache is a cache of ClientSessionState objects that can be used by a client to resume a TLS session with a given server. ClientSessionCache implementations should expect to be called concurrently from different goroutines. Only ticket-based resumption is supported, not SessionID-based r
| 224 | // goroutines. Only ticket-based resumption is supported, not SessionID-based |
| 225 | // resumption. |
| 226 | type ClientSessionCache interface { |
| 227 | // Get searches for a ClientSessionState associated with the given key. |
| 228 | // On return, ok is true if one was found. |
| 229 | Get(sessionKey string) (session *ClientSessionState, ok bool) |
| 230 | |
| 231 | // Put adds the ClientSessionState to the cache with the given key. |
| 232 | Put(sessionKey string, cs *ClientSessionState) |
| 233 | } |
| 234 | |
| 235 | // SignatureScheme identifies a signature algorithm supported by TLS. See |
| 236 | // https://tools.ietf.org/html/draft-ietf-tls-tls13-18#section-4.2.3. |
no outgoing calls
no test coverage detected
searching dependent graphs…