--- pubkey.h.orig 2009-12-17 18:03:49.000000000 -0500
+++ pubkey.h 2009-12-17 18:04:21.000000000 -0500
@@ -240,7 +240,7 @@
{
static HashIdentifier CRYPTOPP_API Lookup()
{
- return HashIdentifier(NULL, 0);
+ return HashIdentifier(static_cast<const byte*>(NULL), 0);
}
};
};
I believe this is the appropriate fix, based on the response from
Microsoft here:
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=507723
This was written against the SVN trunk, but it also applies to an
unmodified Crypto++ 5.6.0. Building everything in cryptest.sln works,
and all the cryptest validation tests pass (Win32/x64 Debug/Release).
Index: zdeflate.cpp
===================================================================
--- zdeflate.cpp (revision 479)
+++ zdeflate.cpp (working copy)
@@ -386,7 +386,7 @@
{
assert(scan[2] == match[2]);
unsigned int len = (unsigned int)(
-#if defined(_STDEXT_BEGIN) && !(defined(_MSC_VER) && _MSC_VER < 1400)
&& !defined(_STLPORT_VERSION)
+#if defined(_STDEXT_BEGIN) && !(defined(_MSC_VER) && (_MSC_VER < 1400
|| _MSC_VER >= 1600)) && !defined(_STLPORT_VERSION)
stdext::unchecked_mismatch
#else
std::mismatch
Index: pubkey.h
===================================================================
--- pubkey.h (revision 479)
+++ pubkey.h (working copy)