File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -422,7 +422,7 @@ ossl_fips_mode_get(VALUE self)
422422 VALUE enabled ;
423423 enabled = EVP_default_properties_is_fips_enabled (NULL ) ? Qtrue : Qfalse ;
424424 return enabled ;
425- #elif OPENSSL_FIPS
425+ #elif defined( OPENSSL_FIPS )
426426 VALUE enabled ;
427427 enabled = FIPS_mode () ? Qtrue : Qfalse ;
428428 return enabled ;
@@ -457,7 +457,7 @@ ossl_fips_mode_set(VALUE self, VALUE enabled)
457457 }
458458 }
459459 return enabled ;
460- #elif OPENSSL_FIPS
460+ #elif defined( OPENSSL_FIPS )
461461 if (RTEST (enabled )) {
462462 int mode = FIPS_mode ();
463463 if (!mode && !FIPS_mode_set (1 )) /* turning on twice leads to an error */
@@ -1215,7 +1215,7 @@ Init_openssl(void)
12151215/* OpenSSL 3 is FIPS-capable even when it is installed without fips option */
12161216#if OSSL_OPENSSL_PREREQ (3 , 0 , 0 )
12171217 Qtrue
1218- #elif OPENSSL_FIPS
1218+ #elif defined( OPENSSL_FIPS )
12191219 Qtrue
12201220#else
12211221 Qfalse
You can’t perform that action at this time.
0 commit comments