Skip to content

Commit

Permalink
Pass secureProtocol through on tls.Server creation
Browse files Browse the repository at this point in the history
The secureProtocol option to building the SSL context was not being properly
passed through in the credentials in the tls code. This is fixed.
  • Loading branch information
postwait authored and ry committed Apr 14, 2011
1 parent 90348a6 commit d0e84b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/tls.js
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,7 @@ function Server(/* [options], listener */) {
key: self.key,
cert: self.cert,
ca: self.ca,
secureProtocol: self.secureProtocol,
crl: self.crl
});
//creds.context.setCiphers('RC4-SHA:AES128-SHA:AES256-SHA');
Expand Down Expand Up @@ -792,6 +793,7 @@ Server.prototype.setOptions = function(options) {
if (options.key) this.key = options.key;
if (options.cert) this.cert = options.cert;
if (options.ca) this.ca = options.ca;
if (options.secureProtocol) this.secureProtocol = options.secureProtocol;
if (options.crl) this.crl = options.crl;
};

Expand Down

0 comments on commit d0e84b0

Please sign in to comment.