From d0e84b0088a865ed59afd4854b40a3eaf864928b Mon Sep 17 00:00:00 2001 From: Theo Schlossnagle Date: Sat, 2 Apr 2011 00:53:07 -0400 Subject: [PATCH] Pass secureProtocol through on tls.Server creation The secureProtocol option to building the SSL context was not being properly passed through in the credentials in the tls code. This is fixed. --- lib/tls.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/tls.js b/lib/tls.js index 96af640b5d4..547e9395c68 100644 --- a/lib/tls.js +++ b/lib/tls.js @@ -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'); @@ -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; };