From 409d58d0b63a113b29d8ce7c75a70e6dbbb39e69 Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Fri, 28 Nov 2008 17:39:14 +0000 Subject: added compile time options NOCRYPT,NODAEMON,NOEXEC for easyier windows porting moved crypto init functions to cryptinit.hpp and exec to sysexec.hpp (as this will be platform dependant) --- src/cipher.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/cipher.cpp') diff --git a/src/cipher.cpp b/src/cipher.cpp index ab8b013..edfc760 100644 --- a/src/cipher.cpp +++ b/src/cipher.cpp @@ -34,10 +34,12 @@ #include #include #include +#ifndef NOCRYPT #include +#include "mpi.h" +#endif #include "cipher.h" -#include "mpi.h" #include "log.h" @@ -73,7 +75,7 @@ u_int32_t NullCipher::decipher(u_int8_t* in, u_int32_t ilen, u_int8_t* out, u_in return (ilen < olen) ? ilen : olen; } - +#ifndef NOCRYPT //****** AesIcmCipher ****** AesIcmCipher::AesIcmCipher() : cipher_(NULL) @@ -178,4 +180,5 @@ void AesIcmCipher::calc(u_int8_t* in, u_int32_t ilen, u_int8_t* out, u_int32_t o return; } } +#endif -- cgit v1.2.3