aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/openssl/openssl_plugin.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2014-03-05 12:18:33 +0100
committerMartin Willi <martin@revosec.ch>2014-06-04 15:53:09 +0200
commit93168c5f1df52ad52ba28bfe4fb17c0931ed1a85 (patch)
treec36de9a799035327d26eb811763a567bdef08992 /src/libstrongswan/plugins/openssl/openssl_plugin.c
parent74e14ea5472694ed645475f7946e731c1b27482c (diff)
downloadstrongswan-93168c5f1df52ad52ba28bfe4fb17c0931ed1a85.tar.bz2
strongswan-93168c5f1df52ad52ba28bfe4fb17c0931ed1a85.tar.xz
openssl: Be less verbose about FIPS mode when not running as daemon
While this is valuable information, printing it for pki and other tools is annoying.
Diffstat (limited to 'src/libstrongswan/plugins/openssl/openssl_plugin.c')
-rw-r--r--src/libstrongswan/plugins/openssl/openssl_plugin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstrongswan/plugins/openssl/openssl_plugin.c b/src/libstrongswan/plugins/openssl/openssl_plugin.c
index 372a480fa..1ca1690ad 100644
--- a/src/libstrongswan/plugins/openssl/openssl_plugin.c
+++ b/src/libstrongswan/plugins/openssl/openssl_plugin.c
@@ -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