summaryrefslogtreecommitdiff
path: root/ext/net/02_tls.js
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2024-04-21 11:58:59 +1000
committerGitHub <noreply@github.com>2024-04-21 01:58:59 +0000
commit98e2f6d50b6b0e077a1fae99ee77ed5ce7f33aef (patch)
tree705aaeb776265b947f42da636ceebf382f6b3943 /ext/net/02_tls.js
parenta2bd1a724bf6539ef2f7c3682b36107aae95fa25 (diff)
FUTURE(ext/net): remove `Deno.ListenTlsOptions.(keyFile|certFile)` (#23271)
Towards #23089 --------- Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
Diffstat (limited to 'ext/net/02_tls.js')
-rw-r--r--ext/net/02_tls.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/net/02_tls.js b/ext/net/02_tls.js
index 4216cbe22..b77b92e26 100644
--- a/ext/net/02_tls.js
+++ b/ext/net/02_tls.js
@@ -153,6 +153,13 @@ function loadTlsKeyPair(api, {
keyFile,
privateKey,
}) {
+ if (internals.future) {
+ certFile = undefined;
+ certChain = undefined;
+ keyFile = undefined;
+ privateKey = undefined;
+ }
+
// Check for "pem" format
if (keyFormat !== undefined && keyFormat !== "pem") {
throw new TypeError('If `keyFormat` is specified, it must be "pem"');