Skip to content

Commit 16ca077

Browse files
Jörg Krausejasnell
Jörg Krause
authored andcommitted
src/node.cc: fix build error without OpenSSL support
Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> PR-URL: nodejs/node-v0.x-archive#25862 Reviewed-By: jasnell - James M Snell <jasnell@gmail.com>
1 parent 62c8948 commit 16ca077

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/node.cc

+4-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ typedef int mode_t;
8282
#include "node_script.h"
8383
#include "v8_typed_array.h"
8484

85-
#include "node_crypto.h"
8685
#include "util.h"
8786

8887
using namespace v8;
@@ -2564,8 +2563,10 @@ static void PrintHelp() {
25642563
" --trace-deprecation show stack traces on deprecations\n"
25652564
" --v8-options print v8 command line options\n"
25662565
" --max-stack-size=val set max v8 stack size (bytes)\n"
2566+
#if HAVE_OPENSSL
25672567
" --enable-ssl2 enable ssl2\n"
25682568
" --enable-ssl3 enable ssl3\n"
2569+
#endif
25692570
"\n"
25702571
"Environment variables:\n"
25712572
#ifdef _WIN32
@@ -2599,12 +2600,14 @@ static void ParseArgs(int argc, char **argv) {
25992600
p = 1 + strchr(arg, '=');
26002601
max_stack_size = atoi(p);
26012602
argv[i] = const_cast<char*>("");
2603+
#if HAVE_OPENSSL
26022604
} else if (strcmp(arg, "--enable-ssl2") == 0) {
26032605
SSL2_ENABLE = true;
26042606
argv[i] = const_cast<char*>("");
26052607
} else if (strcmp(arg, "--enable-ssl3") == 0) {
26062608
SSL3_ENABLE = true;
26072609
argv[i] = const_cast<char*>("");
2610+
#endif
26082611
} else if (strcmp(arg, "--help") == 0 || strcmp(arg, "-h") == 0) {
26092612
PrintHelp();
26102613
exit(0);

0 commit comments

Comments
 (0)