You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ If parsing fails, this method will throw an error, but will still ensure all dat
42
42
43
43
The returned promise resolves to a `TlsClientHelloMessage` object containing:
44
44
45
-
*`version` - The legacy version field (e.g. `0x0303` for TLS 1.2/1.3)
45
+
*`version` - The ClientHello version field (`0x0303` for TLS 1.2 and 1.3 — for TLS 1.3+, check the `supported_versions` extension for the real negotiated version)
46
46
*`random` - 32-byte client random as a Buffer
47
47
*`sessionId` - Session ID as a Buffer (0–32 bytes, empty Buffer if absent)
48
48
*`cipherSuites` - All cipher suite IDs as a number array, **including** GREASE values
@@ -73,10 +73,10 @@ To calculate TLS fingerprints, there are a few options exported from this module
73
73
74
74
Use `getExtensionData(extensions, id)` to look up a specific extension's parsed data by numeric ID, name, or alias. Returns the data object, or `null` if the extension is not present.
75
75
76
-
Names should be the officially registered name from https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml. Convenient aliases are provided for common cases, including `sni`, `alpn`, `alps` and `ech`. The API is typed so with TypeScript only valid names are allowed (although any raw numeric id can be used). PRs to add more aliases are welcome.
76
+
Names should be the officially registered name from https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml. Convenient aliases are provided for common cases, including `sni`, `alpn`, `alps` and `ech`. The API is typed so that with TypeScript only valid names are allowed (although any raw numeric ID can be used). PRs to add more aliases are welcome.
0 commit comments