summaryrefslogtreecommitdiff
path: root/test.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-04-28 01:05:47 -0400
committerJeffrey Walton <noloader@gmail.com>2016-04-28 01:05:47 -0400
commit24d10aa83e48722eea16b914728d631f1f25677d (patch)
treea1ce204438e57af0d07592b6e559532bb6f9c2f3 /test.cpp
parenta9715898b2fbf91b7a71698249d923be57518a16 (diff)
downloadcryptopp-git-24d10aa83e48722eea16b914728d631f1f25677d.tar.gz
Add WIN32_LEAN_AND_MEAN to source files which inlude Windows headers
Diffstat (limited to 'test.cpp')
-rw-r--r--test.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/test.cpp b/test.cpp
index fafef842..a6f08d8d 100644
--- a/test.cpp
+++ b/test.cpp
@@ -21,6 +21,7 @@
#include "whrlpool.h"
#include "tiger.h"
#include "smartptr.h"
+#include "ocb.h"
#include "validate.h"
#include "bench.h"
@@ -33,6 +34,7 @@
#include <time.h>
#ifdef CRYPTOPP_WIN32_AVAILABLE
+#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif
@@ -141,7 +143,13 @@ int CRYPTOPP_API main(int argc, char *argv[])
#endif
try
- {
+ {
+ OCB<AES>::Encryption enc1;
+ OCB<AES>::Decryption dec1;
+
+ OCB3<AES>::Encryption enc2;
+ OCB3<AES>::Decryption dec2;
+
RegisterFactories();
// Some editors have problems with the '\0' character when redirecting output.