MCPcopy
hub / github.com/tjfoc/gmsm / ClientSessionCache

Interface ClientSessionCache

gmtls/common.go:226–233  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

224// goroutines. Only ticket-based resumption is supported, not SessionID-based
225// resumption.
226type 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.

Callers 2

clientHandshakeMethod · 0.65
clientHandshakeMethod · 0.65

Implementers 1

lruSessionCachegmtls/common.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…