Skip to content

Commit 9afb881

Browse files
committed
dtls.c: explain calculation for cipher suites (max).
Signed-off-by: Achim Kraus <achim.kraus@cloudcoap.net>
1 parent b3d8468 commit 9afb881

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

dtls.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,12 @@ memarray_t dtlscontext_storage;
129129
* cookie_length := 1 byte
130130
* cookie := n bytes
131131
* cipher_length := 2 bytes
132-
* cipher suites (max) := 2 bytes + max * 2
132+
* cipher suites (max) := 2 bytes + max * 2 bytes
133+
* empty_renegotiation := 2 bytes
134+
* cipher suites := max * 2 bytes
133135
* compression_length := 1 byte
134136
* compression := 1 byte
135-
* extensions_length := 2 bytes => 10 + max * 2
137+
* extensions_length := 2 bytes => 10 bytes + max * 2 bytes
136138
*
137139
* client_cert_type := 6 bytes
138140
* server_cert_type := 6 bytes

0 commit comments

Comments
 (0)