From 3d30ec69c3b3887da9c35e26f112e411ddf7236f Mon Sep 17 00:00:00 2001 From: handoko Date: Sat, 4 Jan 2025 21:10:29 +0700 Subject: [PATCH] revise ClientHello --- deno.json | 4 ++-- deno.lock | 14 ++++++++++++-- src/clienthello.js | 2 +- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/deno.json b/deno.json index 3ba8c05..a55cf2e 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "name": "@tls/keyexchange", - "version": "0.1.0", + "version": "0.1.1", "exports": "./src/mod.ts", "publish": { "exclude": ["dist/"] @@ -14,7 +14,7 @@ }, "imports": { "@std/assert": "jsr:@std/assert@^1.0.2", - "@tls/enum": "jsr:@tls/enum@^0.4.7", + "@tls/enum": "jsr:@tls/enum@^0.4.9", "@tls/extension": "jsr:@tls/extension@^0.2.6", "@tls/struct": "jsr:@tls/struct@^0.3.6" } diff --git a/deno.lock b/deno.lock index 27d31be..ce5a174 100644 --- a/deno.lock +++ b/deno.lock @@ -8,7 +8,8 @@ "jsr:@tls/enum@~0.2.2": "0.2.4", "jsr:@tls/enum@~0.2.3": "0.2.3", "jsr:@tls/enum@~0.2.4": "0.2.4", - "jsr:@tls/enum@~0.4.7": "0.4.7", + "jsr:@tls/enum@~0.4.7": "0.4.9", + "jsr:@tls/enum@~0.4.9": "0.4.9", "jsr:@tls/extension@0.1": "0.1.2", "jsr:@tls/extension@~0.1.1": "0.1.1", "jsr:@tls/extension@~0.1.2": "0.1.9", @@ -84,6 +85,15 @@ "npm:@peculiar/x509" ] }, + "@tls/enum@0.4.9": { + "integrity": "66c699ec3ec336c920bd3f54fc7925bc36bd48bc97a8eda86be807c001faaa81", + "dependencies": [ + "jsr:@tls/struct@~0.3.6", + "npm:@noble/curves@^1.7.0", + "npm:@noble/hashes", + "npm:@peculiar/x509" + ] + }, "@tls/extension@0.1.0": { "integrity": "8eeff1e434a40dca64fb663ae0d1977432e1aa28a6baee9f2f75785ccf2c3cdd", "dependencies": [ @@ -353,7 +363,7 @@ "workspace": { "dependencies": [ "jsr:@std/assert@^1.0.2", - "jsr:@tls/enum@~0.4.7", + "jsr:@tls/enum@~0.4.9", "jsr:@tls/extension@~0.2.6", "jsr:@tls/struct@~0.3.6" ] diff --git a/src/clienthello.js b/src/clienthello.js index 7d2126f..8d3341e 100644 --- a/src/clienthello.js +++ b/src/clienthello.js @@ -89,7 +89,7 @@ export class ClientHello extends Struct { ) } toRecord() { - return ContentType.HANDSHAKE.tlsPlainText( + return ContentType.HANDSHAKE.tlsPlaintext( HandshakeType.CLIENT_HELLO.handshake(this) ) }