diff --git a/docs/index.js b/docs/index.js index 199fc6e..b811521 100644 --- a/docs/index.js +++ b/docs/index.js @@ -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 = { diff --git a/src/tls/readEncryptedHandshake.ts b/src/tls/readEncryptedHandshake.ts index 9b61614..60a9715 100644 --- a/src/tls/readEncryptedHandshake.ts +++ b/src/tls/readEncryptedHandshake.ts @@ -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 = {