Skip to content

Commit 5654749

Browse files
committed
fixed warning in Poco/Crypto/OpenSSLInitializer.h
- fixed a warning in Poco/Crypto/OpenSSLInitializer.h (fix ported from 1.4.6)
1 parent 0353031 commit 5654749

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

‎CHANGELOG‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Release 1.5.2 (2013-03-??)
1414
- automatic library initialization macros
1515
- fixed GH #110: WebSocket accept() fails when Connection header contains multiple tokens
1616
- fixed GH# 71: WebSocket and broken Timeouts (POCO_BROKEN_TIMEOUTS)
17+
- fixed a warning in Poco/Crypto/OpenSSLInitializer.h
1718

1819
Release 1.5.1 (2013-01-11)
1920
==========================

‎Crypto/include/Poco/Crypto/OpenSSLInitializer.h‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,16 @@ inline bool OpenSSLInitializer::isFIPSEnabled()
118118
#endif
119119
}
120120

121-
121+
#ifdef OPENSSL_FIPS
122122
inline void OpenSSLInitializer::enableFIPSMode(bool enabled)
123123
{
124-
#ifdef OPENSSL_FIPS
125124
FIPS_mode_set(enabled);
126-
#endif
127125
}
128-
126+
#else
127+
inline void OpenSSLInitializer::enableFIPSMode(bool /*enabled*/)
128+
{
129+
}
130+
#endif
129131

130132
} } // namespace Poco::Crypto
131133

0 commit comments

Comments
 (0)