summaryrefslogtreecommitdiff
path: root/fipstest.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2015-08-03 19:21:57 -0400
committerJeffrey Walton <noloader@gmail.com>2015-08-03 19:21:57 -0400
commitaff51055698873166c93d83ce09578d2ec613e64 (patch)
tree7f6d6fa824ea850e9fde7cf509902e0983f17f84 /fipstest.cpp
parent973e48744bd5be35c907714305f420297d7b7cd9 (diff)
downloadcryptopp-git-aff51055698873166c93d83ce09578d2ec613e64.tar.gz
Removed "include <assert.h>" from files. Its now handled by "trap.h"
Diffstat (limited to 'fipstest.cpp')
-rw-r--r--fipstest.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/fipstest.cpp b/fipstest.cpp
index 0daaf6d6..38f55714 100644
--- a/fipstest.cpp
+++ b/fipstest.cpp
@@ -1,6 +1,7 @@
// fipstest.cpp - written and placed in the public domain by Wei Dai
#include "pch.h"
+
#include "misc.h"
#ifndef CRYPTOPP_IMPORTS
@@ -9,6 +10,7 @@
#include "dll.h"
#ifdef CRYPTOPP_WIN32_AVAILABLE
+#define WIN32_LEAN_AND_MEAN
#define _WIN32_WINNT 0x0400
#include <windows.h>
@@ -22,6 +24,8 @@ extern "C" {_CRTIMP void __cdecl _CRT_DEBUGGER_HOOK(int);}
#endif // _MSC_VER
#endif // CRYPTOPP_WIN32_AVAILABLE
+#include "stdcpp.h"
+#include "smartptr.h"
#include "trap.h"
#include <iostream>
@@ -29,9 +33,8 @@ extern "C" {_CRTIMP void __cdecl _CRT_DEBUGGER_HOOK(int);}
#if GCC_DIAGNOSTIC_AWARE
# pragma GCC diagnostic ignored "-Wunused-value"
# pragma GCC diagnostic ignored "-Wunused-variable"
-# if defined(__clang__)
-# pragma GCC diagnostic ignored "-Wunneeded-internal-declaration"
-# endif // Clang
+# pragma GCC diagnostic ignored "-Wunknown-pragmas"
+# pragma GCC diagnostic ignored "-Wunneeded-internal-declaration"
#endif // GCC Diagnostics
NAMESPACE_BEGIN(CryptoPP)
@@ -256,7 +259,7 @@ MessageAuthenticationCode * NewIntegrityCheckingMAC()
bool IntegrityCheckModule(const char *moduleFilename, const byte *expectedModuleMac, SecByteBlock *pActualMac, unsigned long *pMacFileLocation)
{
- std::auto_ptr<MessageAuthenticationCode> mac(NewIntegrityCheckingMAC());
+ auto_ptr<MessageAuthenticationCode> mac(NewIntegrityCheckingMAC());
unsigned int macSize = mac->DigestSize();
SecByteBlock tempMac;