Make HTTPProxy use SIGNING_KEY_TYPE_DSA_SHA1

This commit is contained in:
Francisco Blas (klondike) Izquierdo Riera 2015-01-07 21:15:04 +01:00
parent 29039fd039
commit bcbe207515
4 changed files with 11 additions and 5 deletions

View file

@ -16,11 +16,16 @@ namespace client
{
}
void ClientDestination::CreateStream (StreamRequestComplete streamRequestComplete, const std::string& dest, int port) {
I2PService::I2PService (i2p::data::SigningKeyType kt):
m_LocalDestination (i2p::client::context.CreateNewLocalDestination (false, kt))
{
}
void I2PService::CreateStream (StreamRequestComplete streamRequestComplete, const std::string& dest, int port) {
assert(streamRequestComplete);
i2p::data::IdentHash identHash;
if (i2p::client::context.GetAddressBook ().GetIdentHash (dest, identHash))
localDestination->CreateStream (streamRequestComplete, identHash, port);
m_LocalDestination->CreateStream (streamRequestComplete, identHash, port);
else
{
LogPrint (eLogWarning, "Remote destination ", dest, " not found");