Skip to content

Commit 9ad0ee4

Browse files
adamtronMongoDB Bot
authored andcommitted
SERVER-101291 Update FIPS mode message on startup (#33132)
GitOrigin-RevId: 304e8c01ec082c0aff9dd5948c72c44eea49d873
1 parent a0ad9ec commit 9ad0ee4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/mongo/util/net/openssl_init.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,15 @@ void setupFIPS() {
195195
// Turn on FIPS mode if requested, OPENSSL_FIPS must be defined by the OpenSSL headers
196196
#if defined(_SUPPORT_FIPS)
197197
initFIPS();
198-
LOGV2(23172, "FIPS 140-2 mode activated");
198+
199+
#if OPENSSL_VERSION_NUMBER > 0x30000000L
200+
#define _FIPS_ACTIVATED_MSG "FIPS 140 mode activated"
201+
#else
202+
#define _FIPS_ACTIVATED_MSG "FIPS 140-2 mode activated"
203+
#endif
204+
205+
LOGV2(23172, _FIPS_ACTIVATED_MSG);
206+
199207
#else
200208
LOGV2_FATAL_NOTRACE(23174, "this version of mongodb was not compiled with FIPS support");
201209
#endif

0 commit comments

Comments
 (0)