sessionState contains the information that is serialized into a session ticket in order to later resume a connection.
| 20 | // sessionState contains the information that is serialized into a session |
| 21 | // ticket in order to later resume a connection. |
| 22 | type sessionState struct { |
| 23 | vers uint16 |
| 24 | cipherSuite uint16 |
| 25 | createdAt uint64 |
| 26 | masterSecret []byte // opaque master_secret<1..2^16-1>; |
| 27 | // struct { opaque certificate<1..2^24-1> } Certificate; |
| 28 | certificates [][]byte // Certificate certificate_list<0..2^24-1>; |
| 29 | |
| 30 | // usedOldKey is true if the ticket from which this session came from |
| 31 | // was encrypted with an older key and thus should be refreshed. |
| 32 | usedOldKey bool |
| 33 | } |
| 34 | |
| 35 | func (m *sessionState) marshal() []byte { |
| 36 | var b cryptobyte.Builder |
nothing calls this directly
no outgoing calls
no test coverage detected