mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-23 14:18:07 +00:00
add a trace in case lime key is derivated because of message loses
This commit is contained in:
parent
397424e584
commit
7720b06041
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue