SERVER-101291 Update FIPS mode message on startup (#33132)

GitOrigin-RevId: 304e8c01ec082c0aff9dd5948c72c44eea49d873
This commit is contained in:
adam r 2025-03-07 11:34:10 -08:00 committed by MongoDB Bot
parent a0ad9ec324
commit 9ad0ee4555
1 changed files with 9 additions and 1 deletions

View File

@ -195,7 +195,15 @@ void setupFIPS() {
// Turn on FIPS mode if requested, OPENSSL_FIPS must be defined by the OpenSSL headers
#if defined(_SUPPORT_FIPS)
initFIPS();
LOGV2(23172, "FIPS 140-2 mode activated");
#if OPENSSL_VERSION_NUMBER > 0x30000000L
#define _FIPS_ACTIVATED_MSG "FIPS 140 mode activated"
#else
#define _FIPS_ACTIVATED_MSG "FIPS 140-2 mode activated"
#endif
LOGV2(23172, _FIPS_ACTIVATED_MSG);
#else
LOGV2_FATAL_NOTRACE(23174, "this version of mongodb was not compiled with FIPS support");
#endif