summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,
});