File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff 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
8887using 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 );
You can’t perform that action at this time.
0 commit comments