Mixe for Privacy and Anonymity in the Internet
CALocalProxy.hpp
Go to the documentation of this file.
1 /*
2 Copyright (c) 2000, The JAP-Team
3 All rights reserved.
4 Redistribution and use in source and binary forms, with or without modification,
5 are permitted provided that the following conditions are met:
6 
7  - Redistributions of source code must retain the above copyright notice,
8  this list of conditions and the following disclaimer.
9 
10  - Redistributions in binary form must reproduce the above copyright notice,
11  this list of conditions and the following disclaimer in the documentation and/or
12  other materials provided with the distribution.
13 
14  - Neither the name of the University of Technology Dresden, Germany nor the names of its contributors
15  may be used to endorse or promote products derived from this software without specific
16  prior written permission.
17 
18 
19 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS
20 OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
21 AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
22 BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
24 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25 IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
27 */
28 #ifndef __CALOCALPROXY__
29 #define __CALOCALPROXY__
30 
31 #include "CAMix.hpp"
32 #include "CAMuxSocket.hpp"
33 #include "CAASymCipher.hpp"
34 #include "CASymChannelCipher.hpp"
35 
36 // How many packets do you want to replay at a time?
37 #define REPLAY_COUNT 16
38 #ifndef NEW_MIX_TYPE
40  {
41  public:
43  {
44  m_arRSA=NULL;
45  m_pSymCipher=NULL;
46  m_pmuxOut = NULL;
47  m_chainlen = 0;
48  }
49 
51 
52  // signals the main loop whether to capture or replay packets
53  static bool bCapturePackets;
54  static bool bReplayPackets;
55  static int iCapturedPackets;
56  SINT32 start();
57 
58  private:
59  SINT32 loop();
60  SINT32 init();
61  SINT32 initOnce();
62  SINT32 clean();
64  private:
79  };
80 #endif
81 #endif
SYMCHANNELCIPHER_ALGORITHM
signed int SINT32
Definition: basetypedefs.h:132
unsigned char UINT8
Definition: basetypedefs.h:135
unsigned int UINT32
Definition: basetypedefs.h:131
CAMuxSocket * m_pmuxOut
static bool bCapturePackets
CASocket m_socketSOCKSIn
UINT32 m_MixCascadeProtocolVersion
UINT32 m_SymChannelEncryptedKeySize
CASocket m_socketIn
bool m_bWithEnhancedChannelEncryption
CAASymCipher * m_arRSA
SINT32 clean()
bool m_bWithNewFlowControl
SINT32 initOnce()
bool m_bWithFirstMixSymmetric
SYMCHANNELCIPHER_ALGORITHM * m_arSymCipherAlgorithms
static int iCapturedPackets
UINT32 m_SymChannelKeySize
UINT32 m_nFlowControlDownstreamSendMe
static bool bReplayPackets
SINT32 start()
UINT32 m_chainlen
CASymChannelCipher * m_pSymCipher
SINT32 processKeyExchange(UINT8 *buff, UINT32 size)