/drivers/peripheral/user_auth/hdi_service/utils/inc/ |
H A D | linked_list.h | 41 typedef struct LinkedList { struct 45 uint32_t (*getSize)(struct LinkedList *list); 46 ResultCode (*insert)(struct LinkedList *list, void *data); 47 ResultCode (*remove)(struct LinkedList *list, void *condition, MatchFunc matchFunc, bool destroyNode); 48 LinkedListIterator *(*createIterator)(struct LinkedList *list); 50 } LinkedList; typedef 52 LinkedList *CreateLinkedList(DestroyDataFunc destroyDataFunc); 53 void DestroyLinkedList(LinkedList *list);
|
/drivers/peripheral/user_auth/hdi_service/utils/src/ |
H A D | linked_list.c | 29 IAM_STATIC ResultCode InsertNode(LinkedList *list, void *data) in InsertNode() 51 IAM_STATIC ResultCode RemoveNode(LinkedList *list, void *condition, MatchFunc matchFunc, bool destroyNode) in RemoveNode() 89 IAM_STATIC uint32_t GetSize(LinkedList *list) in GetSize() 118 IAM_STATIC LinkedListIterator *CreateIterator(struct LinkedList *list) in CreateIterator() 144 LinkedList *CreateLinkedList(DestroyDataFunc destroyDataFunc) in CreateLinkedList() 150 LinkedList *list = Malloc(sizeof(LinkedList)); in CreateLinkedList() 166 IAM_STATIC void DestroyLinkedListNode(const LinkedList *list, LinkedListNode *node) in DestroyLinkedListNode() 178 void DestroyLinkedList(LinkedList *list) in DestroyLinkedList()
|
/drivers/peripheral/user_auth/hdi_service/database/inc/ |
H A D | idm_file_manager.h | 26 LinkedList *LoadFileInfo(void); 27 ResultCode UpdateFileInfo(LinkedList *userInfoList);
|
H A D | idm_common.h | 52 LinkedList *credentialInfoList; 53 LinkedList *enrolledInfoList;
|
H A D | idm_database.h | 57 ResultCode DeleteUserInfo(int32_t userId, LinkedList **creds); 59 LinkedList *QueryCredentialLimit(const CredentialCondition *limit);
|
/drivers/peripheral/user_auth/hdi_service/user_auth/inc/ |
H A D | user_auth_funcs.h | 73 ResultCode GenerateSolutionFunc(AuthParamHal param, LinkedList **schedules); 83 ResultCode GetExecutorInfoLinkedList(uint32_t authType, uint32_t executorRole, LinkedList *allExecutorInfoList); 84 Buffer *GetSignExecutorInfoFunc(Uint8Array peerUdid, LinkedList *executorList);
|
H A D | context_manager.h | 36 LinkedList *scheduleList; 79 ResultCode CopySchedules(UserAuthContext *context, LinkedList **schedules);
|
H A D | identify_funcs.h | 28 ResultCode DoIdentify(const IdentifyParam param, LinkedList **schedule);
|
/drivers/peripheral/user_auth/test/unittest/database/ |
H A D | idm_file_manager_test.cpp | 26 extern ResultCode StreamWriteEnrolledInfo(Buffer *parcel, LinkedList *enrolledList); 27 extern ResultCode StreamWriteCredentialList(Buffer *parcel, LinkedList *credentialList); 30 extern ResultCode StreamReadCredentialList(Buffer *parcel, uint32_t *index, LinkedList *credentialList); 31 extern ResultCode StreamReadEnrolledList(Buffer *parcel, uint32_t *index, LinkedList *enrolledList); 111 LinkedList *enrolledList = CreateLinkedList(DestroyEnrolledNode); in HWTEST_F() 125 LinkedList *credentialList = CreateLinkedList(DestroyCredentialNode); in HWTEST_F()
|
H A D | idm_database_test.cpp | 21 typedef bool (*DuplicateCheckFunc)(LinkedList *collection, uint64_t value); 24 extern LinkedList *g_userInfoList; 30 extern bool IsSecureUidDuplicate(LinkedList *userInfoList, uint64_t secureUid); 33 extern bool IsCredentialIdDuplicate(LinkedList *userInfoList, uint64_t credentialId); 34 extern bool IsEnrolledIdDuplicate(LinkedList *enrolledList, uint64_t enrolledId); 35 extern ResultCode GenerateDeduplicateUint64(LinkedList *collection, uint64_t *destValue, DuplicateCheckFunc func); 36 extern ResultCode UpdateEnrolledId(LinkedList *enrolledList, uint32_t authType); 41 extern CredentialInfoHal *QueryCredentialById(uint64_t credentialId, LinkedList *credentialList); 42 extern CredentialInfoHal *QueryCredentialByAuthType(uint32_t authType, LinkedList *credentialList); 45 extern ResultCode TraverseCredentialList(const CredentialCondition *limit, const LinkedList *credentialLis [all...] |
/drivers/peripheral/user_auth/hdi_service/database/src/ |
H A D | idm_database.c | 39 IAM_STATIC LinkedList *g_userInfoList = NULL; 48 typedef bool (*DuplicateCheckFunc)(LinkedList *collection, uint64_t value); 53 IAM_STATIC CredentialInfoHal *QueryCredentialById(uint64_t credentialId, LinkedList *credentialList); 54 IAM_STATIC CredentialInfoHal *QueryCredentialByAuthType(uint32_t authType, LinkedList *credentialList); 56 IAM_STATIC ResultCode GenerateDeduplicateUint64(LinkedList *collection, uint64_t *destValue, DuplicateCheckFunc func); 184 ResultCode DeleteUserInfo(int32_t userId, LinkedList **creds) in DeleteUserInfo() 250 LinkedList *enrolledInfoList = userInfo->enrolledInfoList; in GetAllEnrolledInfoFromUser() 285 IAM_STATIC bool IsSecureUidDuplicate(LinkedList *userInfoList, uint64_t secureUid) in IsSecureUidDuplicate() 332 IAM_STATIC bool IsCredentialIdDuplicate(LinkedList *userInfoList, uint64_t credentialId) in IsCredentialIdDuplicate() 337 LinkedList *credLis in IsCredentialIdDuplicate() [all...] |
H A D | idm_file_manager.c | 37 IAM_STATIC ResultCode StreamWriteEnrolledInfo(Buffer *parcel, LinkedList *enrolledList) in StreamWriteEnrolledInfo() 64 IAM_STATIC ResultCode StreamWriteCredentialList(Buffer *parcel, LinkedList *credentialList) in StreamWriteCredentialList() 128 IAM_STATIC ResultCode WriteUserInfo(LinkedList *userInfoList, Buffer *parcel) in WriteUserInfo() 146 ResultCode UpdateFileInfo(LinkedList *userInfoList) in UpdateFileInfo() 196 IAM_STATIC ResultCode StreamReadCredentialList(Buffer *parcel, uint32_t *index, LinkedList *credentialList) in StreamReadCredentialList() 234 IAM_STATIC ResultCode StreamReadEnrolledList(Buffer *parcel, uint32_t *index, LinkedList *enrolledList) in StreamReadEnrolledList() 331 IAM_STATIC bool StreamReadFileInfo(Buffer *parcel, LinkedList *userInfoList) in StreamReadFileInfo() 372 LinkedList *LoadFileInfo(void) in LoadFileInfo() 390 LinkedList *userInfoList = CreateLinkedList(DestroyUserInfoNode); in LoadFileInfo()
|
/drivers/peripheral/user_auth/test/unittest/user_auth_test/ |
H A D | context_manager_test.cpp | 27 extern LinkedList *g_contextList; 28 extern LinkedList *g_poolList; 29 extern LinkedList *g_scheduleList; 30 extern LinkedList *g_userInfoList; 33 extern LinkedList *GetAuthCredentialList(const UserAuthContext *context); 34 extern ResultCode CheckCredentialSize(LinkedList *credList); 138 LinkedList *credList = CreateLinkedList(DestroyCredentialNode); in HWTEST_F() 202 LinkedList *getSchedule = nullptr; in HWTEST_F() 211 LinkedList *getSchedule = nullptr; in HWTEST_F() 221 LinkedList *getSchedul in HWTEST_F() [all...] |
H A D | auth_level_test.cpp | 23 extern LinkedList *g_poolList; 24 extern LinkedList *g_userInfoList;
|
H A D | identify_funcs_test.cpp | 21 extern LinkedList *g_contextList;
|
/drivers/peripheral/user_auth/hdi_service/coauth/src/ |
H A D | pool.c | 32 IAM_STATIC LinkedList *g_poolList = NULL; 137 IAM_STATIC LinkedList *QueryRepeatExecutor(ExecutorInfoHal *executorInfo) in QueryRepeatExecutor() 158 LinkedList *executors = QueryRepeatExecutor(executorInfo); in RegisterExecutorToPool() 256 LinkedList *QueryExecutor(const ExecutorCondition *condition) in QueryExecutor() 262 LinkedList *result = CreateLinkedList(DestroyExecutorInfo); in QueryExecutor()
|
H A D | coauth.c | 32 IAM_STATIC LinkedList *g_scheduleList = NULL; 221 IAM_STATIC ResultCode MountExecutorOnce(const LinkedList *executors, CoAuthSchedule *coAuthSchedule, in MountExecutorOnce() 259 LinkedList *executors = QueryExecutor(&condition); in MountExecutor()
|
/drivers/peripheral/user_auth/hdi_service/user_auth/src/ |
H A D | context_manager.c | 40 IAM_STATIC LinkedList *g_contextList = NULL; 279 LinkedList *scheduleList = context->scheduleList; in InsertScheduleToContext() 317 IAM_STATIC LinkedList *GetAuthCredentialList(const UserAuthContext *context) in GetAuthCredentialList() 334 IAM_STATIC ResultCode CheckCredentialSize(LinkedList *credList) in CheckCredentialSize() 351 LinkedList *credList = GetAuthCredentialList(context); in QueryAuthTempletaInfo() 470 ResultCode CopySchedules(UserAuthContext *context, LinkedList **schedules) in CopySchedules() 476 LinkedList *scheduleList = context->scheduleList; in CopySchedules() 564 LinkedList *schedules = ((UserAuthContext *)data)->scheduleList; in DestroyContextNode() 679 LinkedList *credList = QueryCredentialLimit(&condition); in FillInContext()
|
H A D | auth_level.c | 89 LinkedList *executorList = QueryExecutor(&condition); in GetExecutorAslAndAcl() 129 LinkedList *creds = QueryCredentialLimit(&condition); in GetCredMaxAcl()
|
/drivers/peripheral/user_auth/test/unittest/idm_test/ |
H A D | user_idm_funcs_test.cpp | 41 extern LinkedList *g_poolList; 42 extern LinkedList *g_userInfoList; 43 extern LinkedList *g_scheduleList; 223 LinkedList *creds = nullptr; in HWTEST_F()
|
/drivers/peripheral/user_auth/test/unittest/co_auth/ |
H A D | co_auth_funcs_test.cpp | 21 extern LinkedList *g_poolList;
|
H A D | executor_message_test.cpp | 26 extern LinkedList *g_poolList; 27 extern LinkedList *g_scheduleList; 28 extern LinkedList *g_userInfoList; 46 int32_t userId, const ExecutorInfoHal *executorNode, uint32_t authPropertyMode, LinkedList *executorMsg); 48 int32_t userId, uint32_t executorRole, uint32_t authPropertyMode, LinkedList *executorMsg); 468 LinkedList *executorMsg = CreateLinkedList(DestoryExecutorMsg); in HWTEST_F() 490 LinkedList *executorMsg = new LinkedList(); in HWTEST_F() 501 LinkedList *executorMsg = nullptr; in HWTEST_F()
|
H A D | co_auth_test.cpp | 24 extern LinkedList *g_poolList; 25 extern LinkedList *g_scheduleList; 29 extern ResultCode MountExecutorOnce(const LinkedList *executors, CoAuthSchedule *coAuthSchedule, 164 LinkedList *executor = CreateLinkedList(DestroyExecutorInfo); in HWTEST_F() 177 LinkedList *executor = CreateLinkedList(DestroyExecutorInfo); in HWTEST_F()
|
/drivers/peripheral/user_auth/hdi_service/idm/inc/ |
H A D | user_idm_funcs.h | 54 ResultCode QueryCredentialFunc(int32_t userId, uint32_t authType, LinkedList **creds);
|
/drivers/peripheral/user_auth/hdi_service/coauth/inc/ |
H A D | executor_message.h | 52 ResultCode GetExecutorMsgList(int32_t userId, uint32_t authPropertyMode, LinkedList **executorMsg);
|