mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-31 02:09:22 +00:00
update to new get current time API in bctoolbox
This commit is contained in:
parent
23c34bc18f
commit
1841b4222e
1 changed files with 2 additions and 2 deletions
|
|
@ -177,7 +177,7 @@ int lime_getCachedSndKeysByURI(xmlDocPtr cacheBuffer, limeURIKeys_t *associatedK
|
|||
}
|
||||
|
||||
/* check if we have all the requested information and the PVS flag is set to 1 and key is still valid*/
|
||||
_bctbx_get_cur_time(¤tTimeSpec, TRUE);
|
||||
bctbx_get_utc_cur_time(¤tTimeSpec);
|
||||
if (itemFound == 6 && pvs == 1) {
|
||||
keysFound++;
|
||||
if (validityTimeSpec.tv_sec == 0 || bctbx_timespec_compare(¤tTimeSpec, &validityTimeSpec)<0) {
|
||||
|
|
@ -315,7 +315,7 @@ int lime_setCachedKey(xmlDocPtr cacheBuffer, limeKey_t *associatedKey, uint8_t r
|
|||
sessionIdHex[64] = '\0';
|
||||
bctbx_uint32ToStr(sessionIndexHex, associatedKey->sessionIndex);
|
||||
if (validityTimeSpan > 0 && role == LIME_RECEIVER) {
|
||||
_bctbx_get_cur_time(¤tTimeSpec, TRUE);
|
||||
bctbx_get_utc_cur_time(¤tTimeSpec);
|
||||
bctbx_timespec_add(¤tTimeSpec, validityTimeSpan);
|
||||
bctbx_uint64ToStr(validHex, currentTimeSpec.tv_sec);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue