mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
fixed crash if can't connect to a reseed
This commit is contained in:
parent
cb9f78540a
commit
43f8ec46cc
2 changed files with 21 additions and 14 deletions
2
Reseed.h
2
Reseed.h
|
@ -69,6 +69,7 @@ namespace data
|
|||
~TlsSession ();
|
||||
void Send (const uint8_t * buf, size_t len);
|
||||
bool Receive (std::ostream& rs);
|
||||
bool IsEstablished () const { return m_IsEstablished; };
|
||||
|
||||
private:
|
||||
|
||||
|
@ -82,6 +83,7 @@ namespace data
|
|||
|
||||
private:
|
||||
|
||||
bool m_IsEstablished;
|
||||
boost::asio::ip::tcp::iostream m_Site;
|
||||
CryptoPP::SHA256 m_FinishedHash;
|
||||
uint8_t m_MasterSecret[64]; // actual size is 48, but must be multiple of 32
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue