MCPcopy
hub / github.com/XTLS/REALITY / Put

Method Put

common.go:382–382  ·  view source on GitHub ↗

Put adds the ClientSessionState to the cache with the given key. It might get called multiple times in a connection if a TLS 1.3 server provides more than one session ticket. If called with a nil *ClientSessionState, it should remove the cache entry.

(sessionKey string, cs *ClientSessionState)

Source from the content-addressed store, hash-verified

380 // more than one session ticket. If called with a nil *ClientSessionState,
381 // it should remove the cache entry.
382 Put(sessionKey string, cs *ClientSessionState)
383}
384
385//go:generate stringer -linecomment -type=SignatureScheme,CurveID,ClientAuthType -output=common_string.go

Callers 6

writeRecordLockedMethod · 0.65
clientHandshakeMethod · 0.65
loadSessionMethod · 0.65
saveSessionTicketMethod · 0.65
StoreSessionMethod · 0.65

Implementers 1

Calls

no outgoing calls

Tested by

no test coverage detected