MCPcopy Create free account
hub / github.com/SenseUnit/dumbproxy / getTLSSessionID

Function getTLSSessionID

tlsutil/session.go:40–47  ·  view source on GitHub ↗
(conn ConnTagger)

Source from the content-addressed store, hash-verified

38type connKey struct{}
39
40func getTLSSessionID(conn ConnTagger) (TLSSessionID, bool) {
41 saved, ok := conn.GetTag(tlsSessionIDKey{})
42 if !ok {
43 return TLSSessionID{}, false
44 }
45 val, ok := saved.(TLSSessionID)
46 return val, ok
47}
48
49func setTLSSessionID(conn ConnTagger, sessionID TLSSessionID) {
50 conn.SetTag(tlsSessionIDKey{}, sessionID)

Callers 2

GetTLSSessionIDFunction · 0.85
EnableTLSCookiesFunction · 0.85

Calls 1

GetTagMethod · 0.65

Tested by

no test coverage detected