aboutsummaryrefslogtreecommitdiff
path: root/src/common/crypto.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-04-28 20:13:21 +0000
committerNick Mathewson <nickm@torproject.org>2004-04-28 20:13:21 +0000
commit7055f837abeca974d3b73ed26b6d26898daa9e89 (patch)
treec087acf0452d4da39409c5e68f67c06e7da17d1d /src/common/crypto.c
parentca8d50abeb260898a6657a06423667479a621a22 (diff)
downloadtor-7055f837abeca974d3b73ed26b6d26898daa9e89.tar
tor-7055f837abeca974d3b73ed26b6d26898daa9e89.tar.gz
Make Tor build on win32 with VC6 without warnings.
svn:r1739
Diffstat (limited to 'src/common/crypto.c')
-rw-r--r--src/common/crypto.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c
index 8d8c78a1e..4599e0cbb 100644
--- a/src/common/crypto.c
+++ b/src/common/crypto.c
@@ -4,6 +4,14 @@
#include "orconfig.h"
+#ifdef MS_WINDOWS
+#define WIN32_WINNT 0x400
+#define _WIN32_WINNT 0x400
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+#include <wincrypt.h>
+#endif
+
#include <string.h>
#include <openssl/err.h>
@@ -40,13 +48,6 @@
#include "aes.h"
#include "util.h"
-#ifdef MS_WINDOWS
-#define WIN32_WINNT 0x400
-#define _WIN32_WINNT 0x400
-#define WIN32_LEAN_AND_MEAN
-#include <wincrypt.h>
-#endif
-
#if OPENSSL_VERSION_NUMBER < 0x00905000l
#error "We require openssl >= 0.9.5"
#elif OPENSSL_VERSION_NUMBER < 0x00906000l