|
|
|
@ -223,17 +223,9 @@ namespace garlic
@@ -223,17 +223,9 @@ namespace garlic
|
|
|
|
|
switch (blk) |
|
|
|
|
{ |
|
|
|
|
case eECIESx25519BlkGalicClove: |
|
|
|
|
if (GetOwner ()) |
|
|
|
|
GetOwner ()->HandleECIESx25519GarlicClove (buf + offset, size); |
|
|
|
|
break; |
|
|
|
|
case eECIESx25519BlkDateTime: |
|
|
|
|
LogPrint (eLogDebug, "Garlic: datetime"); |
|
|
|
|
break; |
|
|
|
|
case eECIESx25519BlkOptions: |
|
|
|
|
LogPrint (eLogDebug, "Garlic: options"); |
|
|
|
|
break; |
|
|
|
|
case eECIESx25519BlkPadding: |
|
|
|
|
LogPrint (eLogDebug, "Garlic: padding"); |
|
|
|
|
break; |
|
|
|
|
case eECIESx25519BlkNextKey: |
|
|
|
|
LogPrint (eLogDebug, "Garlic: next key"); |
|
|
|
|
HandleNextKey (buf + offset, size, receiveTagset); |
|
|
|
@ -256,6 +248,21 @@ namespace garlic
@@ -256,6 +248,21 @@ namespace garlic
|
|
|
|
|
m_AckRequests.push_back ({receiveTagset->GetTagSetID (), index}); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
case eECIESx25519BlkTermination: |
|
|
|
|
LogPrint (eLogDebug, "Garlic: termination"); |
|
|
|
|
if (GetOwner ()) |
|
|
|
|
GetOwner ()->RemoveECIESx25519Session (m_RemoteStaticKey); |
|
|
|
|
if (receiveTagset) receiveTagset->Expire (); |
|
|
|
|
break; |
|
|
|
|
case eECIESx25519BlkDateTime: |
|
|
|
|
LogPrint (eLogDebug, "Garlic: datetime"); |
|
|
|
|
break; |
|
|
|
|
case eECIESx25519BlkOptions: |
|
|
|
|
LogPrint (eLogDebug, "Garlic: options"); |
|
|
|
|
break; |
|
|
|
|
case eECIESx25519BlkPadding: |
|
|
|
|
LogPrint (eLogDebug, "Garlic: padding"); |
|
|
|
|
break; |
|
|
|
|
default: |
|
|
|
|
LogPrint (eLogWarning, "Garlic: Unknown block type ", (int)blk); |
|
|
|
|
} |
|
|
|
|