Browse Source

add ECIESX25519AEADRatchet session to delivery status

pull/1499/head
orignal 5 years ago
parent
commit
45145fa50a
  1. 1
      libi2pd/ECIESX25519AEADRatchetSession.cpp
  2. 2
      libi2pd/Garlic.cpp
  3. 2
      libi2pd/Garlic.h

1
libi2pd/ECIESX25519AEADRatchetSession.cpp

@ -477,6 +477,7 @@ namespace garlic @@ -477,6 +477,7 @@ namespace garlic
SetLeaseSetUpdateStatus (eLeaseSetSubmitted);
SetLeaseSetUpdateMsgID (leaseSet->GetMsgID ());
SetLeaseSetSubmissionTime (ts);
GetOwner ()->DeliveryStatusSent (shared_from_this (), leaseSet->GetMsgID ());
}
uint8_t paddingSize;
RAND_bytes (&paddingSize, 1);

2
libi2pd/Garlic.cpp

@ -783,7 +783,7 @@ namespace garlic @@ -783,7 +783,7 @@ namespace garlic
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);
m_DeliveryStatusSessions[msgID] = session;

2
libi2pd/Garlic.h

@ -226,7 +226,7 @@ namespace garlic @@ -226,7 +226,7 @@ namespace garlic
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
void DeliveryStatusSent (ElGamalAESSessionPtr session, uint32_t msgID);
void DeliveryStatusSent (GarlicRoutingSessionPtr session, uint32_t msgID);
void AddECIESx25519SessionTag (int index, uint64_t tag, ECIESX25519AEADRatchetSessionPtr session);
void AddECIESx25519Session (const uint8_t * staticKey, ECIESX25519AEADRatchetSessionPtr session);
void HandleECIESx25519GarlicClove (const uint8_t * buf, size_t len);

Loading…
Cancel
Save