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

Function NewTLSSessionID

tlsutil/session.go:18–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16type TLSSessionID = [16]byte
17
18func NewTLSSessionID() (res TLSSessionID) {
19 crand.Read(res[:])
20 return
21}
22
23func TLSSessionIDFromState(ss *tls.SessionState) (TLSSessionID, bool) {
24 for _, tag := range ss.Extra {

Callers 1

EnableTLSCookiesFunction · 0.85

Calls 1

ReadMethod · 0.45

Tested by

no test coverage detected