|
|
@ -507,7 +507,7 @@ namespace stream |
|
|
|
{ |
|
|
|
{ |
|
|
|
m_Keys = i2p::data::CreateRandomKeys (); |
|
|
|
m_Keys = i2p::data::CreateRandomKeys (); |
|
|
|
|
|
|
|
|
|
|
|
m_IdentHash = m_Keys.pub.Hash (); |
|
|
|
m_Identity = m_Keys.pub; |
|
|
|
m_SigningPrivateKey.Initialize (i2p::crypto::dsap, i2p::crypto::dsaq, i2p::crypto::dsag, |
|
|
|
m_SigningPrivateKey.Initialize (i2p::crypto::dsap, i2p::crypto::dsaq, i2p::crypto::dsag, |
|
|
|
CryptoPP::Integer (m_Keys.signingPrivateKey, 20)); |
|
|
|
CryptoPP::Integer (m_Keys.signingPrivateKey, 20)); |
|
|
|
CryptoPP::DH dh (i2p::crypto::elgp, i2p::crypto::elgg); |
|
|
|
CryptoPP::DH dh (i2p::crypto::elgp, i2p::crypto::elgg); |
|
|
@ -524,7 +524,7 @@ namespace stream |
|
|
|
else |
|
|
|
else |
|
|
|
LogPrint ("Can't open file ", fullPath); |
|
|
|
LogPrint ("Can't open file ", fullPath); |
|
|
|
|
|
|
|
|
|
|
|
m_IdentHash = m_Keys.pub.Hash (); |
|
|
|
m_Identity = m_Keys.pub; |
|
|
|
m_SigningPrivateKey.Initialize (i2p::crypto::dsap, i2p::crypto::dsaq, i2p::crypto::dsag, |
|
|
|
m_SigningPrivateKey.Initialize (i2p::crypto::dsap, i2p::crypto::dsaq, i2p::crypto::dsag, |
|
|
|
CryptoPP::Integer (m_Keys.signingPrivateKey, 20)); |
|
|
|
CryptoPP::Integer (m_Keys.signingPrivateKey, 20)); |
|
|
|
CryptoPP::DH dh (i2p::crypto::elgp, i2p::crypto::elgg); |
|
|
|
CryptoPP::DH dh (i2p::crypto::elgp, i2p::crypto::elgg); |
|
|
@ -627,7 +627,7 @@ namespace stream |
|
|
|
if (!m_SharedLocalDestination) |
|
|
|
if (!m_SharedLocalDestination) |
|
|
|
{ |
|
|
|
{ |
|
|
|
m_SharedLocalDestination = new StreamingDestination (m_Service); |
|
|
|
m_SharedLocalDestination = new StreamingDestination (m_Service); |
|
|
|
m_Destinations[m_SharedLocalDestination->GetIdentHash ()] = m_SharedLocalDestination; |
|
|
|
m_Destinations[m_SharedLocalDestination->GetIdentity ().GetIdentHash ()] = m_SharedLocalDestination; |
|
|
|
} |
|
|
|
} |
|
|
|
LoadLocalDestinations (); |
|
|
|
LoadLocalDestinations (); |
|
|
|
|
|
|
|
|
|
|
@ -673,7 +673,7 @@ namespace stream |
|
|
|
it->path(); |
|
|
|
it->path(); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
auto localDestination = new StreamingDestination (m_Service, fullPath); |
|
|
|
auto localDestination = new StreamingDestination (m_Service, fullPath); |
|
|
|
m_Destinations[localDestination->GetIdentHash ()] = localDestination; |
|
|
|
m_Destinations[localDestination->GetIdentity ().GetIdentHash ()] = localDestination; |
|
|
|
numDestinations++; |
|
|
|
numDestinations++; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|