diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-01-14 18:06:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-14 17:06:26 +0000 |
commit | f3bb0a1a0e5ee3335d3c45db2be285791c7516cf (patch) | |
tree | 446a7ba533c7e55a22ce4370be97f99d7cdcb7ba /ext/net/lib.deno_net.d.ts | |
parent | c2127a86cb337149c7fb0589553534dc7fd6b807 (diff) |
feat: stabilize Deno.connectTls options and Deno.TlsConn.handshake (#21889)
Diffstat (limited to 'ext/net/lib.deno_net.d.ts')
-rw-r--r-- | ext/net/lib.deno_net.d.ts | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/ext/net/lib.deno_net.d.ts b/ext/net/lib.deno_net.d.ts index 180d8897d..64744b19e 100644 --- a/ext/net/lib.deno_net.d.ts +++ b/ext/net/lib.deno_net.d.ts @@ -84,8 +84,13 @@ declare namespace Deno { } /** @category Network */ - // deno-lint-ignore no-empty-interface - export interface TlsHandshakeInfo {} + export interface TlsHandshakeInfo { + /** + * Contains the ALPN protocol selected during negotiation with the server. + * If no ALPN protocol selected, returns `null`. + */ + alpnProtocol: string | null; + } /** @category Network */ export interface TlsConn extends Conn { @@ -247,6 +252,10 @@ declare namespace Deno { * TLS handshake. */ alpnProtocols?: string[]; + /** PEM formatted client certificate chain. */ + certChain?: string; + /** PEM formatted (RSA or PKCS8) private key of client certificate. */ + privateKey?: string; } /** Establishes a secure connection over TLS (transport layer security) using |