Home
last modified time | relevance | path

Searched refs:credList (Results 1 – 8 of 8) sorted by relevance

/drivers/peripheral/user_auth/hdi_service/idm/src/
Denroll_specification_check.c94 LinkedList *credList = QueryCredentialLimit(&condition); in CheckSpecification() local
95 if (credList == NULL) { in CheckSpecification()
100 if (credList->getSize(credList) >= maxNumber) { in CheckSpecification()
102 DestroyLinkedList(credList); in CheckSpecification()
105 DestroyLinkedList(credList); in CheckSpecification()
Duser_idm_funcs.c49 LinkedList *credList = NULL; in GenerateIdmSchedule() local
50 if (QueryCredentialFunc(param->userId, param->authType, &credList) != RESULT_SUCCESS) { in GenerateIdmSchedule()
56 LinkedListNode *temp = credList->head; in GenerateIdmSchedule()
60 DestroyLinkedList(credList); in GenerateIdmSchedule()
66 DestroyLinkedList(credList); in GenerateIdmSchedule()
77 DestroyLinkedList(credList); in GenerateIdmSchedule()
305 LinkedList *credList = QueryCredentialLimit(&condition); in GetDeletedCredential() local
306 if (credList == NULL || credList->head == NULL || credList->head->data == NULL) { in GetDeletedCredential()
308 DestroyLinkedList(credList); in GetDeletedCredential()
311 if (credList->getSize(credList) != MAX_NUMBER_OF_PIN_PER_USER) { in GetDeletedCredential()
[all …]
/drivers/peripheral/user_auth/hdi_service/user_auth/src/
Dauth_level.c124 LinkedList *credList = QueryCredentialLimit(&condition); in GetAcl() local
125 if (credList == NULL || credList->getSize(credList) == 0) { in GetAcl()
127 DestroyLinkedList(credList); in GetAcl()
131 LinkedListNode *temp = credList->head; in GetAcl()
135 DestroyLinkedList(credList); in GetAcl()
142 DestroyLinkedList(credList); in GetAcl()
Dcontext_manager.c273 IAM_STATIC ResultCode CheckCredentialSize(LinkedList *credList) in CheckCredentialSize() argument
275 uint32_t credNum = credList->getSize(credList); in CheckCredentialSize()
290 LinkedList *credList = GetAuthCredentialList(context); in QueryAuthTempletaInfo() local
291 if (credList == NULL) { in QueryAuthTempletaInfo()
295 ResultCode checkResult = CheckCredentialSize(credList); in QueryAuthTempletaInfo()
298 DestroyLinkedList(credList); in QueryAuthTempletaInfo()
301 templateIds->data = (uint64_t *)Malloc(sizeof(uint64_t) * credList->getSize(credList)); in QueryAuthTempletaInfo()
304 DestroyLinkedList(credList); in QueryAuthTempletaInfo()
308 LinkedListNode *temp = credList->head; in QueryAuthTempletaInfo()
329 DestroyLinkedList(credList); in QueryAuthTempletaInfo()
[all …]
/drivers/peripheral/user_auth/hdi_service/database/src/
Didm_database.c314 LinkedList *credList = QueryCredentialLimit(&condition); in IsCredentialIdDuplicate() local
315 if (credList == NULL) { in IsCredentialIdDuplicate()
319 if (credList->getSize(credList) != 0) { in IsCredentialIdDuplicate()
321 DestroyLinkedList(credList); in IsCredentialIdDuplicate()
324 DestroyLinkedList(credList); in IsCredentialIdDuplicate()
512 LinkedList *credList = QueryCredentialLimit(&condition); in AddCredentialInfo() local
513 if (credList == NULL) { in AddCredentialInfo()
517 if (credList->getSize(credList) != 0) { in AddCredentialInfo()
519 DestroyLinkedList(credList); in AddCredentialInfo()
522 DestroyLinkedList(credList); in AddCredentialInfo()
[all …]
/drivers/peripheral/user_auth/hdi_service/service/
Duser_auth_interface_service.cpp146 LinkedList *credList = nullptr; in GetCapabilityLevel() local
147 int32_t ret = QueryCredentialFunc(userId, info.authType, &credList); in GetCapabilityLevel()
152 LinkedListNode *temp = credList->head; in GetCapabilityLevel()
156 DestroyLinkedList(credList); in GetCapabilityLevel()
166 DestroyLinkedList(credList); in GetCapabilityLevel()
692 LinkedList *credList = nullptr; in GetCredential() local
693 int32_t ret = QueryCredentialFunc(userId, authType, &credList); in GetCredential()
698 infos.reserve(credList->getSize(credList)); in GetCredential()
699 LinkedListNode *temp = credList->head; in GetCredential()
703 DestroyLinkedList(credList); in GetCredential()
[all …]
/drivers/peripheral/user_auth/hdi_service/coauth/src/
Dexecutor_message.c487 LinkedList *credList = QueryCredentialLimit(&condition); in GetExecutorTemplateList() local
488 if (credList == NULL) { in GetExecutorTemplateList()
490 DestroyLinkedList(credList); in GetExecutorTemplateList()
493 uint32_t credListNum = credList->getSize(credList); in GetExecutorTemplateList()
496 DestroyLinkedList(credList); in GetExecutorTemplateList()
502 DestroyLinkedList(credList); in GetExecutorTemplateList()
508 DestroyLinkedList(credList); in GetExecutorTemplateList()
512 LinkedListNode *temp = credList->head; in GetExecutorTemplateList()
516 DestroyLinkedList(credList); in GetExecutorTemplateList()
526 DestroyLinkedList(credList); in GetExecutorTemplateList()
/drivers/peripheral/user_auth/test/unittest/user_auth_test/
Dcontext_manager_test.cpp34 extern ResultCode CheckCredentialSize(LinkedList *credList);
134 LinkedList *credList = CreateLinkedList(DestroyCredentialNode); variable
135 EXPECT_NE(credList, nullptr);
139 credList->insert(credList, static_cast<void *>(&info));
141 EXPECT_EQ(CheckCredentialSize(credList), RESULT_EXCEED_LIMIT);