Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
jawj committed Sep 14, 2023
1 parent 711a552 commit db07483
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1788,6 +1788,7 @@ async function readEncryptedHandshake(host, readHandshakeRecord, serverSecret, h
hs.comment("supported groups ([RFC 8446 \xA74.2](https://www.rfc-editor.org/rfc/rfc8446#section-4.2), [\xA74.2.7](https://datatracker.ietf.org/doc/html/rfc8446#section-4.2.7))");
const [endGroupsData] = hs.expectLengthUint16("groups data");
const [endGroups, groupsRemaining] = hs.expectLengthUint16("groups");
hs.comment("(most preferred first)");
while (groupsRemaining() > 0) {
const group = hs.readUint16();
const groupName = {
Expand Down
4 changes: 3 additions & 1 deletion src/tls/readEncryptedHandshake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@ export async function readEncryptedHandshake(
regardless of whether they are currently supported by the client.
- https://www.rfc-editor.org/rfc/rfc8446#section-4.2
*/
chatty && hs.comment('supported groups, most preferred first ([RFC 8446 §4.2](https://www.rfc-editor.org/rfc/rfc8446#section-4.2), [§4.2.7](https://datatracker.ietf.org/doc/html/rfc8446#section-4.2.7))');
chatty && hs.comment('supported groups ([RFC 8446 §4.2](https://www.rfc-editor.org/rfc/rfc8446#section-4.2), [§4.2.7](https://datatracker.ietf.org/doc/html/rfc8446#section-4.2.7))');
const [endGroupsData] = hs.expectLengthUint16('groups data');
const [endGroups, groupsRemaining] = hs.expectLengthUint16('groups');
hs.comment('(most preferred first)');

while (groupsRemaining() > 0) {
const group = hs.readUint16();
const groupName = {
Expand Down

0 comments on commit db07483

Please sign in to comment.