@ -168,11 +168,14 @@ static const char* icu_data_dir = nullptr;
// used by C++ modules as well
// used by C++ modules as well
bool no_deprecation = false ;
bool no_deprecation = false ;
# if HAVE_OPENSSL && NODE_FIPS_MODE
# if HAVE_OPENSSL
# if NODE_FIPS_MODE
// used by crypto module
// used by crypto module
bool enable_fips_crypto = false ;
bool enable_fips_crypto = false ;
bool force_fips_crypto = false ;
bool force_fips_crypto = false ;
# endif
# endif // NODE_FIPS_MODE
const char * openssl_config = nullptr ;
# endif // HAVE_OPENSSL
// true if process warnings should be suppressed
// true if process warnings should be suppressed
bool no_process_warnings = false ;
bool no_process_warnings = false ;
@ -3558,6 +3561,8 @@ static void PrintHelp() {
" --enable-fips enable FIPS crypto at startup \n "
" --enable-fips enable FIPS crypto at startup \n "
" --force-fips force FIPS crypto (cannot be disabled) \n "
" --force-fips force FIPS crypto (cannot be disabled) \n "
# endif /* NODE_FIPS_MODE */
# endif /* NODE_FIPS_MODE */
" --openssl-config=path load OpenSSL configuration file from the \n "
" specified path \n "
# endif /* HAVE_OPENSSL */
# endif /* HAVE_OPENSSL */
# if defined(NODE_HAVE_I18N_SUPPORT)
# if defined(NODE_HAVE_I18N_SUPPORT)
" --icu-data-dir=dir set ICU data load path to dir \n "
" --icu-data-dir=dir set ICU data load path to dir \n "
@ -3718,6 +3723,8 @@ static void ParseArgs(int* argc,
} else if ( strcmp ( arg , " --force-fips " ) = = 0 ) {
} else if ( strcmp ( arg , " --force-fips " ) = = 0 ) {
force_fips_crypto = true ;
force_fips_crypto = true ;
# endif /* NODE_FIPS_MODE */
# endif /* NODE_FIPS_MODE */
} else if ( strncmp ( arg , " --openssl-config= " , 17 ) = = 0 ) {
openssl_config = arg + 17 ;
# endif /* HAVE_OPENSSL */
# endif /* HAVE_OPENSSL */
# if defined(NODE_HAVE_I18N_SUPPORT)
# if defined(NODE_HAVE_I18N_SUPPORT)
} else if ( strncmp ( arg , " --icu-data-dir= " , 15 ) = = 0 ) {
} else if ( strncmp ( arg , " --icu-data-dir= " , 15 ) = = 0 ) {