From c658d303e580849fa77f669c4ece78bfc0ddd74b Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 16 Jan 2009 22:59:45 +0000 Subject: got rid of NOPACKED (struct alignment works now under Windows) crypto works now under windows using openssl crypto --- src/anytun.suo | Bin 39936 -> 42496 bytes src/anytun.vcproj | 23 +++++++++-------------- src/cipher.cpp | 6 +++--- src/cipher.h | 8 +++++++- src/datatypes.h | 2 +- src/encryptedPacket.h | 6 ++++++ src/keyDerivation.cpp | 2 +- src/keyDerivation.h | 10 ++++++++-- src/seqWindow.cpp | 6 +++++- 9 files changed, 40 insertions(+), 23 deletions(-) diff --git a/src/anytun.suo b/src/anytun.suo index 90b43cf..847888f 100644 Binary files a/src/anytun.suo and b/src/anytun.suo differ diff --git a/src/anytun.vcproj b/src/anytun.vcproj index bc74de4..29e7b81 100644 --- a/src/anytun.vcproj +++ b/src/anytun.vcproj @@ -42,13 +42,13 @@ Name="VCCLCompilerTool" AdditionalOptions="/I "C:\Program Files\boost\boost_1_35_0\"" Optimization="0" - PreprocessorDefinitions="LOGSTDOUT;NOCRYPT;NODAEMON;NOEXEC;NOPACKED;NOSYSLOG;NOSIGNALCONTROLLER;WIN32_LEAN_AND_MEAN" + PreprocessorDefinitions="LOGSTDOUT;USE_SSL_CRYPTO;NODAEMON;NOEXEC;NOSYSLOG;NOSIGNALCONTROLLER;WIN32_LEAN_AND_MEAN" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="3" UsePrecompiledHeader="0" WarningLevel="3" - Detect64BitPortabilityProblems="true" + Detect64BitPortabilityProblems="false" DebugInformationFormat="4" ForcedIncludeFiles="" /> @@ -63,8 +63,10 @@ /> - - - second.window_[pos]; s->second.window_[pos] = 1; - return ret; + + if(ret) + return true; + + return false; } void SeqWindow::clear(sender_id_t sender) -- cgit v1.2.3