[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:
kazuyamamoto
2017-10-16 13:16:08 -07:00
committed by Andy
parent 547c7fd610
commit ea8b7af8c6
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -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" {
+3
View File
@@ -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;
}
{