From 1841b4222e066ef7be6070f20bb120ec9079e3dd Mon Sep 17 00:00:00 2001 From: Johan Pascal Date: Mon, 6 Feb 2017 09:40:39 +0700 Subject: [PATCH] update to new get current time API in bctoolbox --- coreapi/lime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coreapi/lime.c b/coreapi/lime.c index 19d0fe1fd..3d0084567 100644 --- a/coreapi/lime.c +++ b/coreapi/lime.c @@ -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); }