fixed warning in Poco/Crypto/OpenSSLInitializer.h

- fixed a warning in Poco/Crypto/OpenSSLInitializer.h (fix ported from
1.4.6)
This commit is contained in:
aleks-f
2013-02-26 22:43:36 -06:00
parent 03530311b8
commit 5654749e2b
2 changed files with 7 additions and 4 deletions

View File

@@ -118,14 +118,16 @@ inline bool OpenSSLInitializer::isFIPSEnabled()
#endif
}
#ifdef OPENSSL_FIPS
inline void OpenSSLInitializer::enableFIPSMode(bool enabled)
{
#ifdef OPENSSL_FIPS
FIPS_mode_set(enabled);
#endif
}
#else
inline void OpenSSLInitializer::enableFIPSMode(bool /*enabled*/)
{
}
#endif
} } // namespace Poco::Crypto