diff --git a/ext/net/02_tls.js b/ext/net/02_tls.js index 658e616abb..25fbb521ca 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, });