|
|
@ -3,6 +3,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
#include <inttypes.h> |
|
|
|
#include <inttypes.h> |
|
|
|
#include <string> |
|
|
|
#include <string> |
|
|
|
|
|
|
|
#include <boost/asio.hpp> |
|
|
|
#include <cryptopp/dsa.h> |
|
|
|
#include <cryptopp/dsa.h> |
|
|
|
#include <cryptopp/osrng.h> |
|
|
|
#include <cryptopp/osrng.h> |
|
|
|
#include "Identity.h" |
|
|
|
#include "Identity.h" |
|
|
@ -26,7 +27,7 @@ namespace i2p |
|
|
|
CryptoPP::RandomNumberGenerator& GetRandomNumberGenerator () { return m_Rnd; }; |
|
|
|
CryptoPP::RandomNumberGenerator& GetRandomNumberGenerator () { return m_Rnd; }; |
|
|
|
|
|
|
|
|
|
|
|
void UpdatePort (int port); // called from Daemon
|
|
|
|
void UpdatePort (int port); // called from Daemon
|
|
|
|
void UpdateAddress (const char * host); // called from SSU or Daemon
|
|
|
|
void UpdateAddress (const boost::asio::ip::address& host); // called from SSU or Daemon
|
|
|
|
bool AddIntroducer (const i2p::data::RouterInfo& routerInfo, uint32_t tag); |
|
|
|
bool AddIntroducer (const i2p::data::RouterInfo& routerInfo, uint32_t tag); |
|
|
|
void RemoveIntroducer (const boost::asio::ip::udp::endpoint& e); |
|
|
|
void RemoveIntroducer (const boost::asio::ip::udp::endpoint& e); |
|
|
|
bool IsUnreachable () const { return m_IsUnreachable; }; |
|
|
|
bool IsUnreachable () const { return m_IsUnreachable; }; |
|
|
@ -35,7 +36,7 @@ namespace i2p |
|
|
|
void SetAcceptsTunnels (bool acceptsTunnels) { m_AcceptsTunnels = acceptsTunnels; }; |
|
|
|
void SetAcceptsTunnels (bool acceptsTunnels) { m_AcceptsTunnels = acceptsTunnels; }; |
|
|
|
bool SupportsV6 () const { return m_RouterInfo.IsV6 (); }; |
|
|
|
bool SupportsV6 () const { return m_RouterInfo.IsV6 (); }; |
|
|
|
void SetSupportsV6 (bool supportsV6); |
|
|
|
void SetSupportsV6 (bool supportsV6); |
|
|
|
void UpdateV6Address (const std::string& host); // called from NTCP session
|
|
|
|
void UpdateNTCPV6Address (const boost::asio::ip::address& host); // called from NTCP session
|
|
|
|
|
|
|
|
|
|
|
|
// implements LocalDestination
|
|
|
|
// implements LocalDestination
|
|
|
|
const i2p::data::PrivateKeys& GetPrivateKeys () const { return m_Keys; }; |
|
|
|
const i2p::data::PrivateKeys& GetPrivateKeys () const { return m_Keys; }; |
|
|
|