diff options
| author | Jeffrey Walton <noloader@gmail.com> | 2016-04-28 01:05:47 -0400 |
|---|---|---|
| committer | Jeffrey Walton <noloader@gmail.com> | 2016-04-28 01:05:47 -0400 |
| commit | 24d10aa83e48722eea16b914728d631f1f25677d (patch) | |
| tree | a1ce204438e57af0d07592b6e559532bb6f9c2f3 /test.cpp | |
| parent | a9715898b2fbf91b7a71698249d923be57518a16 (diff) | |
| download | cryptopp-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.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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.
|
