mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 03:07:49 +02:00
show ECIESx25519 session and tag on the web console
This commit is contained in:
parent
7133a07f38
commit
27d69894d4
3 changed files with 22 additions and 0 deletions
|
@ -156,6 +156,15 @@ namespace garlic
|
|||
std::list<std::pair<uint16_t, int> > m_AckRequests; // (tagsetid, index)
|
||||
bool m_SendReverseKey = false, m_SendForwardKey = false;
|
||||
std::unique_ptr<DHRatchet> m_NextReceiveRatchet, m_NextSendRatchet;
|
||||
|
||||
public:
|
||||
|
||||
// for HTTP only
|
||||
int GetState () const { return (int)m_State; }
|
||||
i2p::data::IdentHash GetDestination () const
|
||||
{
|
||||
return m_Destination ? *m_Destination : i2p::data::IdentHash ();
|
||||
}
|
||||
};
|
||||
|
||||
std::shared_ptr<I2NPMessage> WrapECIESX25519AEADRatchetMessage (std::shared_ptr<const I2NPMessage> msg, const uint8_t * key, uint64_t tag);
|
||||
|
|
|
@ -276,7 +276,9 @@ namespace garlic
|
|||
|
||||
// for HTTP only
|
||||
size_t GetNumIncomingTags () const { return m_Tags.size (); }
|
||||
size_t GetNumIncomingECIESx25519Tags () const { return m_ECIESx25519Tags.size (); }
|
||||
const decltype(m_Sessions)& GetSessions () const { return m_Sessions; };
|
||||
const decltype(m_ECIESx25519Sessions)& GetECIESx25519Sessions () const { return m_ECIESx25519Sessions; }
|
||||
};
|
||||
|
||||
void CleanUpTagsFiles ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue