mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
add ECIESX25519AEADRatchet session to delivery status
This commit is contained in:
parent
dd8200e8b0
commit
45145fa50a
@ -477,6 +477,7 @@ namespace garlic
|
|||||||
SetLeaseSetUpdateStatus (eLeaseSetSubmitted);
|
SetLeaseSetUpdateStatus (eLeaseSetSubmitted);
|
||||||
SetLeaseSetUpdateMsgID (leaseSet->GetMsgID ());
|
SetLeaseSetUpdateMsgID (leaseSet->GetMsgID ());
|
||||||
SetLeaseSetSubmissionTime (ts);
|
SetLeaseSetSubmissionTime (ts);
|
||||||
|
GetOwner ()->DeliveryStatusSent (shared_from_this (), leaseSet->GetMsgID ());
|
||||||
}
|
}
|
||||||
uint8_t paddingSize;
|
uint8_t paddingSize;
|
||||||
RAND_bytes (&paddingSize, 1);
|
RAND_bytes (&paddingSize, 1);
|
||||||
|
@ -783,7 +783,7 @@ namespace garlic
|
|||||||
m_DeliveryStatusSessions.erase (msgID);
|
m_DeliveryStatusSessions.erase (msgID);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GarlicDestination::DeliveryStatusSent (ElGamalAESSessionPtr session, uint32_t msgID)
|
void GarlicDestination::DeliveryStatusSent (GarlicRoutingSessionPtr session, uint32_t msgID)
|
||||||
{
|
{
|
||||||
std::unique_lock<std::mutex> l(m_DeliveryStatusSessionsMutex);
|
std::unique_lock<std::mutex> l(m_DeliveryStatusSessionsMutex);
|
||||||
m_DeliveryStatusSessions[msgID] = session;
|
m_DeliveryStatusSessions[msgID] = session;
|
||||||
|
@ -226,7 +226,7 @@ namespace garlic
|
|||||||
|
|
||||||
void AddSessionKey (const uint8_t * key, const uint8_t * tag); // one tag
|
void AddSessionKey (const uint8_t * key, const uint8_t * tag); // one tag
|
||||||
virtual bool SubmitSessionKey (const uint8_t * key, const uint8_t * tag); // from different thread
|
virtual bool SubmitSessionKey (const uint8_t * key, const uint8_t * tag); // from different thread
|
||||||
void DeliveryStatusSent (ElGamalAESSessionPtr session, uint32_t msgID);
|
void DeliveryStatusSent (GarlicRoutingSessionPtr session, uint32_t msgID);
|
||||||
void AddECIESx25519SessionTag (int index, uint64_t tag, ECIESX25519AEADRatchetSessionPtr session);
|
void AddECIESx25519SessionTag (int index, uint64_t tag, ECIESX25519AEADRatchetSessionPtr session);
|
||||||
void AddECIESx25519Session (const uint8_t * staticKey, ECIESX25519AEADRatchetSessionPtr session);
|
void AddECIESx25519Session (const uint8_t * staticKey, ECIESX25519AEADRatchetSessionPtr session);
|
||||||
void HandleECIESx25519GarlicClove (const uint8_t * buf, size_t len);
|
void HandleECIESx25519GarlicClove (const uint8_t * buf, size_t len);
|
||||||
|
Loading…
Reference in New Issue
Block a user