mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
[node] Add tls.getCiphers() and tls.DEFAULT_ECDH_CURVE (#20482)
https://nodejs.org/api/tls.html#tls_tls_getciphers https://nodejs.org/api/tls.html#tls_tls_default_ecdh_curve
This commit is contained in:
Vendored
+3
@@ -4882,6 +4882,9 @@ declare module "tls" {
|
||||
export function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
|
||||
export function createSecurePair(credentials?: crypto.Credentials, isServer?: boolean, requestCert?: boolean, rejectUnauthorized?: boolean): SecurePair;
|
||||
export function createSecureContext(details: SecureContextOptions): SecureContext;
|
||||
export function getCiphers(): string[];
|
||||
|
||||
export var DEFAULT_ECDH_CURVE: string;
|
||||
}
|
||||
|
||||
declare module "crypto" {
|
||||
|
||||
@@ -979,6 +979,9 @@ namespace tls_tests {
|
||||
port: 55
|
||||
};
|
||||
var tlsSocket = tls.connect(connOpts);
|
||||
|
||||
const ciphers: string[] = tls.getCiphers();
|
||||
const curve: string = tls.DEFAULT_ECDH_CURVE;
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user