mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
FUTURE(ext/net): remove Deno.ConnectTlsOptions.(certFile|certChain|privateKey)
(#23270)
Towards #23089 --------- Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
This commit is contained in:
parent
14ae4f897f
commit
2f5a6a8514
2 changed files with 24 additions and 1 deletions
|
@ -74,7 +74,6 @@ const tlsConn = await Deno.connectTls({ port: tlsPort });
|
|||
console.log("Deno.TlsConn.prototype.rid is", tlsConn.rid);
|
||||
|
||||
tlsConn.close();
|
||||
tlsListener.close();
|
||||
|
||||
const watcher = Deno.watchFs(".");
|
||||
console.log("Deno.FsWatcher.prototype.rid is", watcher.rid);
|
||||
|
@ -92,6 +91,28 @@ try {
|
|||
}
|
||||
}
|
||||
|
||||
// Note: this could throw with a `Deno.errors.NotFound` error if `keyFile` and
|
||||
// `certFile` were used.
|
||||
const conn1 = await Deno.connectTls({
|
||||
port: tlsPort,
|
||||
certFile: "foo",
|
||||
keyFile: "foo",
|
||||
});
|
||||
conn1.close();
|
||||
console.log("Deno.ConnectTlsOptions.(certFile|keyFile) do nothing");
|
||||
|
||||
// Note: this could throw with a `Deno.errors.InvalidData` error if `certChain`
|
||||
// and `privateKey` were used.
|
||||
const conn2 = await Deno.connectTls({
|
||||
port: tlsPort,
|
||||
certChain: "foo",
|
||||
privateKey: "foo",
|
||||
});
|
||||
conn2.close();
|
||||
console.log("Deno.ConnectTlsOptions.(certChain|privateKey) do nothing");
|
||||
|
||||
tlsListener.close();
|
||||
|
||||
// Note: this could throw with a `Deno.errors.NotFound` error if `keyFile` and
|
||||
// `certFile` were used.
|
||||
try {
|
||||
|
|
|
@ -34,5 +34,7 @@ Deno.TlsListener.prototype.rid is undefined
|
|||
Deno.TlsConn.prototype.rid is undefined
|
||||
Deno.FsWatcher.prototype.rid is undefined
|
||||
Deno.FsFile constructor is illegal
|
||||
Deno.ConnectTlsOptions.(certFile|keyFile) do nothing
|
||||
Deno.ConnectTlsOptions.(certChain|privateKey) do nothing
|
||||
Deno.ListenTlsOptions.(keyFile|certFile) do nothing
|
||||
Deno.customInspect is undefined
|
||||
|
|
Loading…
Reference in a new issue