diff options
author | Jörg Krause <jkrause@posteo.de> | 2014-11-17 12:34:05 +0100 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2015-08-29 01:26:17 -0400 |
commit | 16ca0779f595a10a74e55dfb9e3b18d4a07bdcba (patch) | |
tree | fb00f292d80fddcb79ec71bb087d740721feed87 | |
parent | 62c8948109e7c8536f683b34d414ae500c48e91f (diff) | |
download | node-16ca0779f595a10a74e55dfb9e3b18d4a07bdcba.tar.gz |
src/node.cc: fix build error without OpenSSL support
Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
PR-URL: https://github.com/joyent/node/pull/25862
Reviewed-By: jasnell - James M Snell <jasnell@gmail.com>
-rw-r--r-- | src/node.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/node.cc b/src/node.cc index e8ccb7276..a8e1384e6 100644 --- a/src/node.cc +++ b/src/node.cc @@ -82,7 +82,6 @@ typedef int mode_t; #include "node_script.h" #include "v8_typed_array.h" -#include "node_crypto.h" #include "util.h" using namespace v8; @@ -2564,8 +2563,10 @@ static void PrintHelp() { " --trace-deprecation show stack traces on deprecations\n" " --v8-options print v8 command line options\n" " --max-stack-size=val set max v8 stack size (bytes)\n" +#if HAVE_OPENSSL " --enable-ssl2 enable ssl2\n" " --enable-ssl3 enable ssl3\n" +#endif "\n" "Environment variables:\n" #ifdef _WIN32 @@ -2599,12 +2600,14 @@ static void ParseArgs(int argc, char **argv) { p = 1 + strchr(arg, '='); max_stack_size = atoi(p); argv[i] = const_cast<char*>(""); +#if HAVE_OPENSSL } else if (strcmp(arg, "--enable-ssl2") == 0) { SSL2_ENABLE = true; argv[i] = const_cast<char*>(""); } else if (strcmp(arg, "--enable-ssl3") == 0) { SSL3_ENABLE = true; argv[i] = const_cast<char*>(""); +#endif } else if (strcmp(arg, "--help") == 0 || strcmp(arg, "-h") == 0) { PrintHelp(); exit(0); |