From 034ba7322f48a8594dc4ef340ba7616effadc130 Mon Sep 17 00:00:00 2001 From: Ian McKellar Date: Thu, 23 Aug 2018 09:19:03 -0700 Subject: [PATCH] src: fix --without-ssl build ProcessArgv referenced fields on PerProcessOptions that aren't there when the build is configured --without-ssl. PR-URL: https://github.com/nodejs/node/pull/22484 Reviewed-By: Refael Ackermann Reviewed-By: Anna Henningsen Reviewed-By: Richard Lau Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- src/node.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/node.cc b/src/node.cc index baea8293c35528..949e7909d3bedb 100644 --- a/src/node.cc +++ b/src/node.cc @@ -2729,12 +2729,14 @@ void ProcessArgv(std::vector* args, exit(9); } +#if HAVE_OPENSSL if (per_process_opts->use_openssl_ca && per_process_opts->use_bundled_ca) { fprintf(stderr, "%s: either --use-openssl-ca or --use-bundled-ca can be " "used, not both\n", args->at(0).c_str()); exit(9); } +#endif if (std::find(v8_args.begin(), v8_args.end(), "--abort-on-uncaught-exception") != v8_args.end() ||