MCPcopy Create free account
hub / github.com/XTLS/Go / Put

Method Put

common.go:362–362  ·  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

360 // more than one session ticket. If called with a nil *ClientSessionState,
361 // it should remove the cache entry.
362 Put(sessionKey string, cs *ClientSessionState)
363}
364
365//go:generate stringer -type=SignatureScheme,CurveID,ClientAuthType -output=common_string.go

Callers 4

writeRecordLockedMethod · 0.65
clientHandshakeMethod · 0.65
loadSessionMethod · 0.65

Implementers 1

Calls

no outgoing calls

Tested by

no test coverage detected