Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Commit

Permalink
feat(ssl): adding ssl options ciphers and ecdhCurve
Browse files Browse the repository at this point in the history
  • Loading branch information
daprahamian authored and mbroadst committed Dec 5, 2017
1 parent 9b28a1a commit c839d5c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/connection/connection.js
Expand Up @@ -135,6 +135,8 @@ var Connection = function(messageHandler, options) {
this.cert = options.cert || null;
this.key = options.key || null;
this.passphrase = options.passphrase || null;
this.ciphers = options.ciphers || null;
this.ecdhCurve = options.ecdhCurve || null;
this.ssl = typeof options.ssl === 'boolean' ? options.ssl : false;
this.rejectUnauthorized =
typeof options.rejectUnauthorized === 'boolean' ? options.rejectUnauthorized : true;
Expand Down Expand Up @@ -510,6 +512,7 @@ var legalSslSocketOptions = [
'NPNProtocols',
'ALPNProtocols',
'servername',
'ecdhCurve',
'secureProtocol',
'secureContext',
'session',
Expand Down

0 comments on commit c839d5c

Please sign in to comment.