- Timestamp:
- Jun 22, 2021, 9:00:19 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
azure_iot_hub_f767zi/trunk/azure_iot_sdk/c-utility/src/httpapiexsas.c
r457 r464 107 107 { 108 108 /*Codes_SRS_HTTPAPIEXSAS_06_005: [If the parameter handle is NULL then HTTAPIEX_SAS_Destroy shall do nothing and return.]*/ 109 if (handle) 109 HTTPAPIEX_SAS_STATE* state = (HTTPAPIEX_SAS_STATE*)handle; 110 if (state) 110 111 { 111 HTTPAPIEX_SAS_STATE* state = (HTTPAPIEX_SAS_STATE*)handle;112 112 /*Codes_SRS_HTTPAPIEXSAS_06_006: [HTTAPIEX_SAS_Destroy shall deallocate any structures denoted by the parameter handle.]*/ 113 113 if (state->key) … … 159 159 /*Codes_SRS_HTTPAPIEXSAS_06_011: [SASToken_Create shall be invoked.]*/ 160 160 /*Codes_SRS_HTTPAPIEXSAS_06_012: [If the return result of SASToken_Create is NULL then fallthrough.]*/ 161 size_t expiry = (size_t)(difftime(currentTime, 0) + 3600);161 uint64_t expiry = (uint64_t)(difftime(currentTime, 0) + 3600); 162 162 newSASToken = SASToken_CreateString(state->key, state->uriResource, state->keyName, expiry); 163 163 }
Note:
See TracChangeset
for help on using the changeset viewer.