Mixe for Privacy and Anonymity in the Internet
|
#include <CALocalProxy.hpp>
Public Member Functions | |
CALocalProxy () | |
~CALocalProxy () | |
SINT32 | start () |
Static Public Attributes | |
static bool | bCapturePackets |
static bool | bReplayPackets |
static int | iCapturedPackets |
Private Member Functions | |
SINT32 | loop () |
SINT32 | init () |
SINT32 | initOnce () |
SINT32 | clean () |
SINT32 | processKeyExchange (UINT8 *buff, UINT32 size) |
Definition at line 39 of file CALocalProxy.hpp.
|
inline |
Definition at line 42 of file CALocalProxy.hpp.
References m_arRSA, m_chainlen, m_pmuxOut, and m_pSymCipher.
|
inline |
Definition at line 50 of file CALocalProxy.hpp.
References clean().
|
private |
Definition at line 588 of file CALocalProxy.cpp.
References CAMuxSocket::close(), CASocket::close(), E_SUCCESS, m_arRSA, m_pmuxOut, m_pSymCipher, m_socketIn, and m_socketSOCKSIn.
Referenced by start(), and ~CALocalProxy().
|
private |
Definition at line 119 of file CALocalProxy.cpp.
References CAMuxSocket::connect(), CASocket::create(), E_SUCCESS, E_UNKNOWN, FLOW_CONTROL_SENDME_SOFT_LIMIT, CAListenerInterface::getAddr(), CAMuxSocket::getCASocket(), CACmdLnOptions::getListenerInterface(), CACmdLnOptions::getMixHost(), CALibProxytest::getOptions(), CASocketAddrINet::getPort(), CASocketAddrINet::isAnyIP(), CASocket::listen(), m_bWithEnhancedChannelEncryption, m_bWithFirstMixSymmetric, m_bWithNewFlowControl, m_nFlowControlDownstreamSendMe, m_pmuxOut, m_socketIn, m_socketSOCKSIn, MIXPACKET_SIZE, OFB, CAMsg::printMsg(), processKeyExchange(), CAClientSocket::receiveFully(), CASocketAddrINet::setAddr(), CASocket::setRecvBuff(), CASocket::setReuseAddr(), and CASocket::setSendBuff().
Referenced by start().
|
private |
Definition at line 95 of file CALocalProxy.cpp.
References bCapturePackets, bReplayPackets, E_SUCCESS, E_UNKNOWN, CALibProxytest::getOptions(), CAMsg::printMsg(), SIGUSR1_handler(), and SIGUSR2_handler().
Referenced by start().
|
private |
Definition at line 212 of file CALocalProxy.cpp.
References CASocket::accept(), CASocketGroupEpoll::add(), CASocketList::add(), CASocketList::addSendMeCounter(), bCapturePackets, bReplayPackets, t_MixPacket::channel, CHANNEL_CLOSE, CHANNEL_DATA, CHANNEL_OPEN, CASocket::close(), CASymChannelCipherFactory::createCipher(), CASymChannelCipher::crypt1(), CASymChannelCipher::crypt2(), connlist::currentSendMeCounter, t_MixPacket::data, t_MixPacketPayload::data, DATA_SIZE, E_SUCCESS, E_UNKNOWN, CAASymCipher::encrypt(), CAASymCipher::encryptOAEP(), t_MixPacket::flags, CASocketList::get(), CASocketList::getFirst(), CASocket::getLocalPort(), CASocketList::getNext(), CALibProxytest::getOptions(), getRandom(), CACmdLnOptions::getSOCKSServerPort(), iCapturedPackets, CASymChannelCipher::isKeyValid(), CASocketGroupEpoll::isSignaled(), len, t_MixPacketPayload::len, m_arRSA, m_arSymCipherAlgorithms, m_bWithEnhancedChannelEncryption, m_bWithFirstMixSymmetric, m_bWithNewFlowControl, m_chainlen, m_nFlowControlDownstreamSendMe, m_pmuxOut, m_pSymCipher, m_socketIn, m_socketSOCKSIn, m_SymChannelEncryptedKeySize, m_SymChannelKeySize, MIX_PAYLOAD_HTTP, MIX_PAYLOAD_SOCKS, MIXPACKET_SIZE, NEW_FLOW_CONTROL_FLAG, connlist::next, connlist::outChannel, t_MixPacket::payload, PAYLOAD_LEN_MASK, PAYLOAD_SIZE, connlist::pCiphers, CAMsg::printMsg(), connlist::pSocket, CAMuxSocket::receive(), CASocket::receive(), CASocketGroupEpoll::remove(), CASocketList::remove(), REPLAY_COUNT, RSA_SIZE, CASocketGroupEpoll::select(), CASocket::send(), CAMuxSocket::send(), CASymChannelCipher::setIV2(), CASymChannelCipher::setKeys(), SOCKET_ERROR, sSleep(), t_MixPacketPayload::type, and connlist::upstreamBytes.
Referenced by start().
Definition at line 604 of file CALocalProxy.cpp.
References t_MixPacket::channel, CASymChannelCipherFactory::createCipher(), t_MixPacket::data, E_SUCCESS, E_UNKNOWN, CABase64::encode(), CAASymCipher::encrypt(), encryptXMLElement(), equals(), t_MixPacket::flags, CASymChannelCipherFactory::getAlgIDFromString(), CAMuxSocket::getCASocket(), CACmdLnOptions::getCredential(), getDOMChildByName(), getDOMElementAttribute(), getDOMElementValue(), CALibProxytest::getOptions(), getRandom(), len, m_arRSA, m_arSymCipherAlgorithms, m_bWithEnhancedChannelEncryption, m_bWithFirstMixSymmetric, m_bWithNewFlowControl, m_chainlen, m_MixCascadeProtocolVersion, m_nFlowControlDownstreamSendMe, m_pmuxOut, m_pSymCipher, m_SymChannelEncryptedKeySize, m_SymChannelKeySize, MIX_CASCADE_PROTOCOL_VERSION_0_1_0, MIX_CASCADE_PROTOCOL_VERSION_0_2, MIX_CASCADE_PROTOCOL_VERSION_0_3, MIX_CASCADE_PROTOCOL_VERSION_0_4, MIXPACKET_SIZE, OFB, parseDOMDocument(), CAMsg::printMsg(), CAClientSocket::receiveFully(), CAMuxSocket::send(), CASocket::sendFully(), CAMuxSocket::setCipher(), CAMuxSocket::setCrypt(), CASymChannelCipher::setIVs(), CASymChannelCipher::setKey(), CAMuxSocket::setReceiveKey(), CAMuxSocket::setSendKey(), and UNDEFINED_CIPHER.
Referenced by init().
SINT32 CALocalProxy::start | ( | ) |
Definition at line 68 of file CALocalProxy.cpp.
References clean(), E_SUCCESS, E_UNKNOWN, init(), initOnce(), loop(), CAMsg::printMsg(), and sSleep().
Referenced by main().
|
static |
Definition at line 53 of file CALocalProxy.hpp.
Referenced by initOnce(), loop(), and SIGUSR1_handler().
|
static |
Definition at line 54 of file CALocalProxy.hpp.
Referenced by initOnce(), loop(), and SIGUSR2_handler().
|
static |
Definition at line 55 of file CALocalProxy.hpp.
Referenced by loop(), and SIGUSR1_handler().
|
private |
Definition at line 70 of file CALocalProxy.hpp.
Referenced by CALocalProxy(), clean(), loop(), and processKeyExchange().
|
private |
Definition at line 71 of file CALocalProxy.hpp.
Referenced by loop(), and processKeyExchange().
|
private |
Definition at line 75 of file CALocalProxy.hpp.
Referenced by init(), loop(), and processKeyExchange().
|
private |
Definition at line 78 of file CALocalProxy.hpp.
Referenced by init(), loop(), and processKeyExchange().
|
private |
Definition at line 74 of file CALocalProxy.hpp.
Referenced by init(), loop(), and processKeyExchange().
|
private |
Definition at line 68 of file CALocalProxy.hpp.
Referenced by CALocalProxy(), loop(), and processKeyExchange().
|
private |
Definition at line 69 of file CALocalProxy.hpp.
Referenced by processKeyExchange().
|
private |
Definition at line 73 of file CALocalProxy.hpp.
Referenced by init(), loop(), and processKeyExchange().
|
private |
Definition at line 67 of file CALocalProxy.hpp.
Referenced by CALocalProxy(), clean(), init(), loop(), and processKeyExchange().
|
private |
Definition at line 72 of file CALocalProxy.hpp.
Referenced by CALocalProxy(), clean(), loop(), and processKeyExchange().
|
private |
Definition at line 65 of file CALocalProxy.hpp.
|
private |
Definition at line 66 of file CALocalProxy.hpp.
|
private |
Definition at line 76 of file CALocalProxy.hpp.
Referenced by loop(), and processKeyExchange().
|
private |
Definition at line 77 of file CALocalProxy.hpp.
Referenced by loop(), and processKeyExchange().