Commit 7720b060 authored by jehan's avatar jehan
Browse files

add a trace in case lime key is derivated because of message loses

parent 397424e5
......@@ -685,6 +685,12 @@ int lime_decryptMultipartMessage(void *cachedb, uint8_t *message, const char *se
return LIME_UNABLE_TO_DECRYPT_MESSAGE;
}
if (associatedKey.sessionIndex != usedSessionIndex) {
ms_warning("Line: unexpected session index [%i] received from [%s], [%i] message will discarded"
, usedSessionIndex
, peerURI
, associatedKey.sessionIndex - usedSessionIndex);
}
while (usedSessionIndex>associatedKey.sessionIndex) {
lime_deriveKey(&associatedKey);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment