/base/security/certificate_manager/test/unittest/src/ |
D | cm_get_auth_list_test.cpp | 77 struct CmAppUidList appUidList = { DEFAULT_APP_UID_COUNT, appUid }; in TearDown() local 78 ret = CmGetAuthorizedAppList(&g_keyUri, &appUidList); in TearDown() 82 EXPECT_EQ(appUidList.appUidCount, expectCount); in TearDown() 116 struct CmAppUidList appUidList = { DEFAULT_APP_UID_COUNT, appUid }; in CheckGetAuthedList() local 117 int32_t ret = CmGetAuthorizedAppList(&g_keyUri, &appUidList); in CheckGetAuthedList() 120 EXPECT_EQ(appUidList.appUidCount, count); in CheckGetAuthedList() 124 for (uint32_t j = 0; j < appUidList.appUidCount; ++j) { in CheckGetAuthedList() 125 if ((baseAppId + i) == appUidList.appUid[j]) { in CheckGetAuthedList() 161 struct CmAppUidList appUidList = { 0, nullptr }; variable 162 int32_t ret = CmGetAuthorizedAppList(keyUri, &appUidList); [all …]
|
/base/security/certificate_manager/test/unittest/multi_thread_test/src/ |
D | cm_get_auth_list_multi_thread_test.cpp | 82 struct CmAppUidList appUidList = { DEFAULT_APP_UID_COUNT, appUid }; in TearDown() local 83 ret = CmGetAuthorizedAppList(&g_keyUri, &appUidList); in TearDown() 87 EXPECT_EQ(appUidList.appUidCount, expectCount); in TearDown() 121 struct CmAppUidList appUidList = { DEFAULT_APP_UID_COUNT, appUid }; in TestGetAuthedList() local 122 int32_t ret = CmGetAuthorizedAppList(&g_keyUri, &appUidList); in TestGetAuthedList() 124 EXPECT_EQ(appUidList.appUidCount, g_checkListItemCount); in TestGetAuthedList() 128 for (uint32_t j = 0; j < appUidList.appUidCount; ++j) { in TestGetAuthedList() 129 if ((g_checkBaseAppId + i) == appUidList.appUid[j]) { in TestGetAuthedList() 146 struct CmAppUidList appUidList = { 0, nullptr }; variable 147 int32_t ret = CmGetAuthorizedAppList(keyUri, &appUidList); [all …]
|
/base/security/certificate_manager/test/fuzz_test/cmgetauthorizedapplist_fuzzer/ |
D | cmgetauthorizedapplist_fuzzer.cpp | 41 struct CmAppUidList appUidList = { 0, nullptr }; in DoSomethingInterestingWithMyAPI() local 42 if (!GetUintFromBuffer(myData, &remainSize, &offset, &(appUidList.appUidCount))) { in DoSomethingInterestingWithMyAPI() 46 if (appUidList.appUidCount > remainSize / sizeof(uint32_t)) { in DoSomethingInterestingWithMyAPI() 50 appUidList.appUid = reinterpret_cast<uint32_t *>(myData + offset); in DoSomethingInterestingWithMyAPI() 53 (void)CmGetAuthorizedAppList(&authorUri, &appUidList); in DoSomethingInterestingWithMyAPI()
|
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/ |
D | cert_manager_auth_mgr.c | 377 struct CmAppUidList *appUidList) in CmAuthGetAuthorizedAppList() argument 404 if (appUidList->appUidCount < tempAppUidList.appUidCount) { in CmAuthGetAuthorizedAppList() 406 appUidList->appUidCount, tempAppUidList.appUidCount); in CmAuthGetAuthorizedAppList() 410 if (memcpy_s(appUidList->appUid, appUidList->appUidCount * sizeof(uint32_t), in CmAuthGetAuthorizedAppList() 416 appUidList->appUidCount = tempAppUidList.appUidCount; in CmAuthGetAuthorizedAppList() 547 …_t DeleteAuthInfo(uint32_t userId, const struct CmBlob *uri, const struct CmAppUidList *appUidList) in DeleteAuthInfo() argument 558 for (uint32_t i = 0; i < appUidList->appUidCount; ++i) { in DeleteAuthInfo() 559 ret = DeleteMacKey(&uriObj, appUidList->appUid[i]); in DeleteAuthInfo() 575 struct CmAppUidList appUidList = { 0, NULL }; in CmAuthDeleteAuthInfo() local 578 ret = CmGetAuthList(context, uri, &appUidList); in CmAuthDeleteAuthInfo() [all …]
|
D | cert_manager_auth_list_mgr.c | 295 static int32_t FormatAppUidList(const struct CmBlob *list, struct CmAppUidList *appUidList) in FormatAppUidList() argument 304 appUidList->appUidCount = 0; in FormatAppUidList() 323 appUidList->appUidCount = count; in FormatAppUidList() 324 appUidList->appUid = (uint32_t *)data; in FormatAppUidList() 363 …uthList(const struct CmContext *context, const struct CmBlob *uri, struct CmAppUidList *appUidList) in CmGetAuthList() argument 375 appUidList->appUidCount = 0; in CmGetAuthList() 385 ret = FormatAppUidList(&list, appUidList); in CmGetAuthList() 458 …t CmGetAuthListByUserId(uint32_t userId, const struct CmBlob *uri, struct CmAppUidList *appUidList) in CmGetAuthListByUserId() argument 467 return CmGetAuthList(&context, uri, appUidList); in CmGetAuthListByUserId()
|
D | cert_manager_service.c | 162 struct CmAppUidList *appUidList) in CmServiceGetAuthorizedAppList() argument 174 return CmAuthGetAuthorizedAppList(context, keyUri, appUidList); in CmServiceGetAuthorizedAppList()
|
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/include/ |
D | cert_manager_auth_list_mgr.h | 29 …thList(const struct CmContext *context, const struct CmBlob *uri, struct CmAppUidList *appUidList); 38 … CmGetAuthListByUserId(uint32_t userId, const struct CmBlob *uri, struct CmAppUidList *appUidList);
|
D | cert_manager_auth_mgr.h | 29 struct CmAppUidList *appUidList);
|
D | cert_manager_service.h | 35 struct CmAppUidList *appUidList);
|
/base/security/certificate_manager/frameworks/cert_manager_standard/main/os_dependency/cm_ipc/src/ |
D | cm_ipc_client.c | 611 static int32_t FormatAppUidList(const struct CmBlob *replyBlob, struct CmAppUidList *appUidList) in FormatAppUidList() argument 629 if (appUidList->appUidCount < count) { in FormatAppUidList() 630 CM_LOG_E("input app list count[%u] too small", appUidList->appUidCount); in FormatAppUidList() 635 if (appUidList->appUid == NULL) { in FormatAppUidList() 640 (void)memcpy_s(appUidList->appUid, uidListSize, replyBlob->data + offset, uidListSize); in FormatAppUidList() 642 appUidList->appUidCount = count; in FormatAppUidList() 665 int32_t CmClientGetAuthorizedAppList(const struct CmBlob *keyUri, struct CmAppUidList *appUidList) in CmClientGetAuthorizedAppList() argument 672 if (appUidList->appUidCount > MAX_OUT_BLOB_SIZE) { /* ensure not out of bounds */ in CmClientGetAuthorizedAppList() 673 CM_LOG_E("invalid app uid list count[%u]", appUidList->appUidCount); in CmClientGetAuthorizedAppList() 677 uint32_t outLen = sizeof(uint32_t) + appUidList->appUidCount * sizeof(uint32_t); in CmClientGetAuthorizedAppList() [all …]
|
/base/security/certificate_manager/interfaces/innerkits/cert_manager_standard/main/src/ |
D | cert_manager_api.c | 160 …EXPORT int32_t CmGetAuthorizedAppList(const struct CmBlob *keyUri, struct CmAppUidList *appUidList) in CmGetAuthorizedAppList() argument 163 if ((keyUri == NULL) || (appUidList == NULL)) { in CmGetAuthorizedAppList() 168 int32_t ret = CmClientGetAuthorizedAppList(keyUri, appUidList); in CmGetAuthorizedAppList()
|
/base/security/certificate_manager/frameworks/cert_manager_standard/main/os_dependency/cm_ipc/include/ |
D | cm_ipc_client.h | 48 int32_t CmClientGetAuthorizedAppList(const struct CmBlob *keyUri, struct CmAppUidList *appUidList);
|
/base/security/certificate_manager/interfaces/innerkits/cert_manager_standard/main/include/ |
D | cert_manager_api.h | 46 …XPORT int32_t CmGetAuthorizedAppList(const struct CmBlob *keyUri, struct CmAppUidList *appUidList);
|
/base/security/certificate_manager/test/unittest/inner_permission_test/ |
D | cm_inner_permission_test.cpp | 345 struct CmAppUidList appUidList = { 0, nullptr }; variable 346 int32_t ret = CmGetAuthorizedAppList(&uri, &appUidList);
|
/base/security/certificate_manager/test/unittest/common_permission_test/ |
D | cm_common_permission_test.cpp | 375 struct CmAppUidList appUidList = { 0, nullptr }; variable 376 int32_t ret = CmGetAuthorizedAppList(&uri, &appUidList);
|
/base/security/certificate_manager/interfaces/kits/napi/src/ |
D | cm_napi_grant.cpp | 291 static napi_value ConvertResultAuthList(napi_env env, const CmAppUidList *appUidList) in ConvertResultAuthList() argument 299 for (uint32_t i = 0; i < appUidList->appUidCount; ++i) { in ConvertResultAuthList() 301 … if (snprintf_s(uidStr, sizeof(uidStr), sizeof(uidStr) - 1, "%u", appUidList->appUid[i]) < 0) { in ConvertResultAuthList()
|
/base/security/certificate_manager/interfaces/kits/js/ |
D | @ohos.security.certManager.d.ts | 366 appUidList?: Array<string>; property
|
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_service/main/os_dependency/idl/cm_ipc/ |
D | cm_ipc_service.c | 644 struct CmAppUidList appUidList = { count, NULL }; in GetAuthedList() local 646 appUidList.appUid = (uint32_t *)(outData->data + sizeof(uint32_t)); in GetAuthedList() 649 int32_t ret = CmServiceGetAuthorizedAppList(context, keyUri, &appUidList); in GetAuthedList() 656 (void)memcpy_s(outData->data, sizeof(uint32_t), &appUidList.appUidCount, sizeof(uint32_t)); in GetAuthedList() 657 outData->size = sizeof(uint32_t) + sizeof(uint32_t) * appUidList.appUidCount; in GetAuthedList()
|