From 147bef129f34285a08807396f2ab216c4e9098e9 Mon Sep 17 00:00:00 2001 From: Jarom Loveridge Date: Wed, 18 Apr 2018 10:47:35 -0600 Subject: [PATCH] Update SSLOptions to match documentation. (#25080) --- types/mongodb/index.d.ts | 6 +++++- types/mongodb/mongodb-tests.ts | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/types/mongodb/index.d.ts b/types/mongodb/index.d.ts index 561cb153bb..f72af738a3 100644 --- a/types/mongodb/index.d.ts +++ b/types/mongodb/index.d.ts @@ -104,6 +104,10 @@ export interface MongoClientOptions extends } export interface SSLOptions { + // Passed directly through to tls.createSecureContext. See https://nodejs.org/dist/latest-v9.x/docs/api/tls.html#tls_tls_createsecurecontext_options for more info. + ciphers?: string; + // Passed directly through to tls.createSecureContext. See https://nodejs.org/dist/latest-v9.x/docs/api/tls.html#tls_tls_createsecurecontext_options for more info. + ecdhCurve?: string; // Default:5; Number of connections for each server instance poolSize?: number; // Use ssl connection (needs to have a mongod server with ssl support) @@ -115,7 +119,7 @@ export interface SSLOptions { // Array of valid certificates either as Buffers or Strings sslCA?: Array; // SSL Certificate revocation list binary buffer - sslCRL?: Buffer; + sslCRL?: Array; // SSL Certificate binary buffer sslCert?: Buffer | string; // SSL Key file binary buffer diff --git a/types/mongodb/mongodb-tests.ts b/types/mongodb/mongodb-tests.ts index 270379989a..bdbddb1250 100644 --- a/types/mongodb/mongodb-tests.ts +++ b/types/mongodb/mongodb-tests.ts @@ -23,6 +23,7 @@ let options: mongodb.MongoClientOptions = { sslValidate: false, checkServerIdentity: function () { }, sslCA: ['str'], + sslCRL: ['str'], sslCert: new Buffer(999), sslKey: new Buffer(999), sslPass: new Buffer(999),