|
|
|
@ -507,7 +507,7 @@ namespace stream
@@ -507,7 +507,7 @@ namespace stream
|
|
|
|
|
{ |
|
|
|
|
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, |
|
|
|
|
CryptoPP::Integer (m_Keys.signingPrivateKey, 20)); |
|
|
|
|
CryptoPP::DH dh (i2p::crypto::elgp, i2p::crypto::elgg); |
|
|
|
@ -524,7 +524,7 @@ namespace stream
@@ -524,7 +524,7 @@ namespace stream
|
|
|
|
|
else |
|
|
|
|
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, |
|
|
|
|
CryptoPP::Integer (m_Keys.signingPrivateKey, 20)); |
|
|
|
|
CryptoPP::DH dh (i2p::crypto::elgp, i2p::crypto::elgg); |
|
|
|
@ -627,7 +627,7 @@ namespace stream
@@ -627,7 +627,7 @@ namespace stream
|
|
|
|
|
if (!m_SharedLocalDestination) |
|
|
|
|
{ |
|
|
|
|
m_SharedLocalDestination = new StreamingDestination (m_Service); |
|
|
|
|
m_Destinations[m_SharedLocalDestination->GetIdentHash ()] = m_SharedLocalDestination; |
|
|
|
|
m_Destinations[m_SharedLocalDestination->GetIdentity ().GetIdentHash ()] = m_SharedLocalDestination; |
|
|
|
|
} |
|
|
|
|
LoadLocalDestinations (); |
|
|
|
|
|
|
|
|
@ -673,7 +673,7 @@ namespace stream
@@ -673,7 +673,7 @@ namespace stream
|
|
|
|
|
it->path(); |
|
|
|
|
#endif |
|
|
|
|
auto localDestination = new StreamingDestination (m_Service, fullPath); |
|
|
|
|
m_Destinations[localDestination->GetIdentHash ()] = localDestination; |
|
|
|
|
m_Destinations[localDestination->GetIdentity ().GetIdentHash ()] = localDestination; |
|
|
|
|
numDestinations++; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|