]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
openssl: Be less verbose about FIPS mode when not running as daemon
authorMartin Willi <martin@revosec.ch>
Wed, 5 Mar 2014 11:18:33 +0000 (12:18 +0100)
committerMartin Willi <martin@revosec.ch>
Wed, 4 Jun 2014 13:53:09 +0000 (15:53 +0200)
While this is valuable information, printing it for pki and other tools is
annoying.

src/libstrongswan/plugins/openssl/openssl_plugin.c

index 372a480fad3982020b9f91947da07b6395df4366..1ca1690ad4e3905cfe4c8b16ee64bef65236d6f7 100644 (file)
@@ -558,8 +558,8 @@ plugin_t *openssl_plugin_create()
 #ifdef OPENSSL_FIPS
        /* we do this here as it may have been enabled via openssl.conf */
        fips_mode = FIPS_mode();
-       DBG1(DBG_LIB, "openssl FIPS mode(%d) - %sabled ", fips_mode,
-                fips_mode ? "en" : "dis");
+       dbg(DBG_LIB, strpfx(lib->ns, "charon") ? 1 : 2,
+               "openssl FIPS mode(%d) - %sabled ", fips_mode, fips_mode ? "en" : "dis");
 #endif /* OPENSSL_FIPS */
 
 #ifndef OPENSSL_NO_ENGINE