openssl: Only warn about unavailable FIPS mode if the user requested it
authorTobias Brunner <tobias@strongswan.org>
Wed, 8 May 2013 13:23:14 +0000 (15:23 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 8 May 2013 13:23:14 +0000 (15:23 +0200)
src/libstrongswan/plugins/openssl/openssl_plugin.c

index 5d20741..fb34a68 100644 (file)
@@ -528,9 +528,9 @@ plugin_t *openssl_plugin_create()
        DBG1(DBG_LIB, "openssl FIPS mode(%d) - %sabled ",fips_mode,
                                   fips_mode ? "en" : "dis");
 #else
-       DBG1(DBG_LIB, "openssl FIPS mode(%d) unavailable", fips_mode);
        if (fips_mode)
        {
+               DBG1(DBG_LIB, "openssl FIPS mode(%d) unavailable", fips_mode);
                return NULL;
        }
 #endif