summaryrefslogtreecommitdiff
path: root/fipstest.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-10-02 22:25:16 -0400
committerJeffrey Walton <noloader@gmail.com>2016-10-02 22:25:16 -0400
commit3feb08f0ba9b7effb10f0e3aecb8d092c9bc8221 (patch)
treeec17decb0dff5981287c188b0636f79e8638bb0f /fipstest.cpp
parent07d996628d5d5b14ba716f2cb06b2a8045e15d67 (diff)
downloadcryptopp-git-3feb08f0ba9b7effb10f0e3aecb8d092c9bc8221.tar.gz
Fix fipstest.cpp compile under Unix (Issue 314)
Diffstat (limited to 'fipstest.cpp')
-rw-r--r--fipstest.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/fipstest.cpp b/fipstest.cpp
index 1c770bf4..5b154dc3 100644
--- a/fipstest.cpp
+++ b/fipstest.cpp
@@ -331,23 +331,21 @@ bool IntegrityCheckModule(const char *moduleFilename, const byte *expectedModule
#endif
}
+#ifdef CRYPTOPP_WIN32_AVAILABLE
if (h == g_BaseAddressOfMAC)
{
std::ostringstream oss;
oss << "Crypto++ DLL loaded at base address 0x" << std::hex << h << ".\n";
-#ifdef CRYPTOPP_WIN32_AVAILABLE
OutputDebugString(oss.str().c_str());
-#endif
}
else
{
std::ostringstream oss;
oss << "Crypto++ DLL integrity check may fail. Expected module base address is 0x";
oss << std::hex << g_BaseAddressOfMAC << ", but module loaded at 0x" << h << ".\n";
-#ifdef CRYPTOPP_WIN32_AVAILABLE
OutputDebugString(oss.str().c_str());
-#endif
}
+#endif
if (!moduleStream)
{