summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Campailla <alexis@janeasystems.com>2014-10-16 18:45:47 +0200
committerAlexis Campailla <alexis@janeasystems.com>2014-10-16 18:45:47 +0200
commit3139fa20d78260399a1e5b577690007a8a451c73 (patch)
tree8d724a537ac60160916d2aa4d09b6e404763b782
parent3859fbdb7dfa4132a77dbdc446f73f6ab8a10404 (diff)
downloadnode-3139fa20d78260399a1e5b577690007a8a451c73.tar.gz
crypto: extra caution in setting ssl options
Always set ssl2/ssl3 disabled based on whether they are enabled in Node. In some corner-case scenario, node with OPENSSL_NO_SSL3 defined could be linked to openssl that has SSL3 enabled.
-rw-r--r--src/node_crypto.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/node_crypto.cc b/src/node_crypto.cc
index e56544d1c..fbcdf8651 100644
--- a/src/node_crypto.cc
+++ b/src/node_crypto.cc
@@ -337,15 +337,11 @@ Handle<Value> SecureContext::Init(const Arguments& args) {
int options = 0;
-#ifndef OPENSSL_NO_SSL2
if (!SSL2_ENABLE)
options |= SSL_OP_NO_SSLv2;
-#endif
-#ifndef OPENSSL_NO_SSL3
if (!SSL3_ENABLE)
options |= SSL_OP_NO_SSLv3;
-#endif
SSL_CTX_set_options(sc->ctx_, options);