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

Struct sessionStateTLS13

ticket.go:80–87  ·  view source on GitHub ↗

sessionStateTLS13 is the content of a TLS 1.3 session ticket. Its first version (revision = 0) doesn't carry any of the information needed for 0-RTT validation and the nonce is always empty.

Source from the content-addressed store, hash-verified

78// version (revision = 0) doesn't carry any of the information needed for 0-RTT
79// validation and the nonce is always empty.
80type sessionStateTLS13 struct {
81 // uint8 version = 0x0304;
82 // uint8 revision = 0;
83 cipherSuite uint16
84 createdAt uint64
85 resumptionSecret []byte // opaque resumption_master_secret<1..2^8-1>;
86 certificate Certificate // CertificateEntry certificate_list<0..2^24-1>;
87}
88
89func (m *sessionStateTLS13) marshal() []byte {
90 var b cryptobyte.Builder

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected