Home
last modified time | relevance | path

Searched refs:pdid (Results 1 - 2 of 2) sorted by relevance

/base/security/device_auth/services/session_manager/src/session/v2/
H A Ddev_session_util.c72 char *pdid = NULL; in GetPdidByContext() local
73 int32_t res = manager->getPseudonymId(osAccountId, userId, &pdid); in GetPdidByContext()
76 LOGE("Failed to get pdid!"); in GetPdidByContext()
79 if (DeepCopyString(pdid, returnPdid) != HC_SUCCESS) { in GetPdidByContext()
80 LOGE("Failed to copy pdid!"); in GetPdidByContext()
81 HcFree(pdid); in GetPdidByContext()
84 HcFree(pdid); in GetPdidByContext()
131 const char *pdid = GetStringFromJson(pkInfoJson, FIELD_PSEUDONYM_ID); in GetRealPkInfoJson() local
132 if (pdid == NULL) { in GetRealPkInfoJson()
133 LOGE("Failed to get pdid!"); in GetRealPkInfoJson()
411 const char *pdid = GetStringFromJson(pkInfoJson, FIELD_PSEUDONYM_ID); CheckPeerPkInfoForPdid() local
482 char *pdid = NULL; AddPkInfoWithPdid() local
[all...]
/base/security/device_auth/services/mk_agree/src/
H A Dkey_manager.c347 char *pdid = (char *)HcMalloc(pdidLen, 0); in GenerateAndSavePseudonymId() local
348 if (pdid == NULL) { in GenerateAndSavePseudonymId()
349 LOGE("Failed to alloc memory for pdid!"); in GenerateAndSavePseudonymId()
353 res = ByteToHexString(pseudonymIdBuff.val, pseudonymIdBuff.length, pdid, pdidLen); in GenerateAndSavePseudonymId()
355 LOGE("Failed to convert pdid from byte to hex string!"); in GenerateAndSavePseudonymId()
357 HcFree(pdid); in GenerateAndSavePseudonymId()
360 res = GetPseudonymInstance()->savePseudonymId(osAccountId, pdid, info->peerInfo, peerDeviceId, info->pdidIndex); in GenerateAndSavePseudonymId()
361 HcFree(pdid); in GenerateAndSavePseudonymId()
363 LOGE("Failed to save pdid!"); in GenerateAndSavePseudonymId()
367 LOGI("Generate and save pdid successfull in GenerateAndSavePseudonymId()
[all...]

Completed in 2 milliseconds