summaryrefslogtreecommitdiff
path: root/ext/net/02_tls.js
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2024-02-14 07:34:36 +1100
committerGitHub <noreply@github.com>2024-02-13 20:34:36 +0000
commit365d7886480281056c930174d756ae660619b044 (patch)
treeac251ffe464962a7dcfa9444e62a3e91326fba7a /ext/net/02_tls.js
parentb651990684059a0b917665cf24d2b1f75eb45dea (diff)
chore: cleanup `ext/net/02_tls.js` (#22032)
`certFile` was being passed to `op_tls_start()` when it's unused and undocumented. Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com> Co-authored-by: Matt Mastracci <matthew@mastracci.com>
Diffstat (limited to 'ext/net/02_tls.js')
-rw-r--r--ext/net/02_tls.js14
1 files changed, 2 insertions, 12 deletions
diff --git a/ext/net/02_tls.js b/ext/net/02_tls.js
index 658e616ab..25fbb521c 100644
--- a/ext/net/02_tls.js
+++ b/ext/net/02_tls.js
@@ -17,14 +17,6 @@ const {
import { Conn, Listener } from "ext:deno_net/01_net.js";
-function opStartTls(args) {
- return op_tls_start(args);
-}
-
-function opTlsHandshake(rid) {
- return op_tls_handshake(rid);
-}
-
class TlsConn extends Conn {
#rid = 0;
@@ -47,7 +39,7 @@ class TlsConn extends Conn {
}
handshake() {
- return opTlsHandshake(this.#rid);
+ return op_tls_handshake(this.#rid);
}
}
@@ -150,15 +142,13 @@ async function startTls(
conn,
{
hostname = "127.0.0.1",
- certFile = undefined,
caCerts = [],
alpnProtocols = undefined,
} = {},
) {
- const { 0: rid, 1: localAddr, 2: remoteAddr } = await opStartTls({
+ const { 0: rid, 1: localAddr, 2: remoteAddr } = await op_tls_start({
rid: conn[internalRidSymbol],
hostname,
- certFile,
caCerts,
alpnProtocols,
});