Skip to content

Commit 27fd131

Browse files
committedAug 9, 2023
Add local and remote CID to state
Adds local and remote CID to state, but does not serialize them. CIDs should be renogotiated on session resumption. Signed-off-by: Daniel Mangum <[email protected]>
1 parent 9a37bfd commit 27fd131

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
 

‎state.go

+14
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,20 @@ type State struct {
2727
IdentityHint []byte
2828
SessionID []byte
2929

30+
// Connection Identifiers must be negotiated afresh on session resumption.
31+
// https://datatracker.ietf.org/doc/html/rfc9146#name-the-connection_id-extension
32+
33+
// localConnectionID is the locally generated connection ID that is expected
34+
// to be received from the remote endpoint.
35+
// For a server, this is the connection ID sent in ServerHello.
36+
// For a client, this is the connection ID sent in the ClientHello.
37+
localConnectionID []byte
38+
// remoteConnectionID is the connection ID that the remote endpoint
39+
// specifies should be sent.
40+
// For a server, this is the connection ID received in the ClientHello.
41+
// For a client, this is the connection ID received in the ServerHello.
42+
remoteConnectionID []byte
43+
3044
isClient bool
3145

3246
preMasterSecret []byte

0 commit comments

Comments
 (0)
Please sign in to comment.