@@ -168,11 +168,14 @@ static const char* icu_data_dir = nullptr;
168168// used by C++ modules as well
169169bool no_deprecation = false ;
170170
171- #if HAVE_OPENSSL && NODE_FIPS_MODE
171+ #if HAVE_OPENSSL
172+ # if NODE_FIPS_MODE
172173// used by crypto module
173174bool enable_fips_crypto = false ;
174175bool force_fips_crypto = false ;
175- #endif
176+ # endif // NODE_FIPS_MODE
177+ const char * openssl_config = nullptr ;
178+ #endif // HAVE_OPENSSL
176179
177180// true if process warnings should be suppressed
178181bool no_process_warnings = false ;
@@ -3558,6 +3561,8 @@ static void PrintHelp() {
35583561 " --enable-fips enable FIPS crypto at startup\n "
35593562 " --force-fips force FIPS crypto (cannot be disabled)\n "
35603563#endif /* NODE_FIPS_MODE */
3564+ " --openssl-config=path load OpenSSL configuration file from the\n "
3565+ " specified path\n "
35613566#endif /* HAVE_OPENSSL */
35623567#if defined(NODE_HAVE_I18N_SUPPORT)
35633568 " --icu-data-dir=dir set ICU data load path to dir\n "
@@ -3718,6 +3723,8 @@ static void ParseArgs(int* argc,
37183723 } else if (strcmp (arg, " --force-fips" ) == 0 ) {
37193724 force_fips_crypto = true ;
37203725#endif /* NODE_FIPS_MODE */
3726+ } else if (strncmp (arg, " --openssl-config=" , 17 ) == 0 ) {
3727+ openssl_config = arg + 17 ;
37213728#endif /* HAVE_OPENSSL */
37223729#if defined(NODE_HAVE_I18N_SUPPORT)
37233730 } else if (strncmp (arg, " --icu-data-dir=" , 15 ) == 0 ) {
0 commit comments