/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/services/cert_manager_standard/cert_manager_engine/main/core/src/ |
D | cert_manager_auth_mgr.c | 369 struct CmAppUidList *appUidList) in CmAuthGetAuthorizedAppList() argument 394 if (appUidList->appUidCount < tempAppUidList.appUidCount) { in CmAuthGetAuthorizedAppList() 396 appUidList->appUidCount, tempAppUidList.appUidCount); in CmAuthGetAuthorizedAppList() 400 if (memcpy_s(appUidList->appUid, appUidList->appUidCount * sizeof(uint32_t), in CmAuthGetAuthorizedAppList() 406 appUidList->appUidCount = tempAppUidList.appUidCount; in CmAuthGetAuthorizedAppList() 533 …_t DeleteAuthInfo(uint32_t userId, const struct CmBlob *uri, const struct CmAppUidList *appUidList) in DeleteAuthInfo() argument 544 for (uint32_t i = 0; i < appUidList->appUidCount; ++i) { in DeleteAuthInfo() 545 ret = DeleteMacKey(&uriObj, appUidList->appUid[i]); in DeleteAuthInfo() 560 struct CmAppUidList appUidList = { 0, NULL }; in CmAuthDeleteAuthInfo() local 563 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 | 610 static int32_t FormatAppUidList(const struct CmBlob *replyBlob, struct CmAppUidList *appUidList) in FormatAppUidList() argument 628 if (appUidList->appUidCount < count) { in FormatAppUidList() 629 CM_LOG_E("input app list count[%u] too small", appUidList->appUidCount); in FormatAppUidList() 634 if (appUidList->appUid == NULL) { in FormatAppUidList() 639 (void)memcpy_s(appUidList->appUid, uidListSize, replyBlob->data + offset, uidListSize); in FormatAppUidList() 641 appUidList->appUidCount = count; in FormatAppUidList() 664 int32_t CmClientGetAuthorizedAppList(const struct CmBlob *keyUri, struct CmAppUidList *appUidList) in CmClientGetAuthorizedAppList() argument 671 if (appUidList->appUidCount > MAX_OUT_BLOB_SIZE) { /* ensure not out of bounds */ in CmClientGetAuthorizedAppList() 672 CM_LOG_E("invalid app uid list count[%u]", appUidList->appUidCount); in CmClientGetAuthorizedAppList() 676 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/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/services/cert_manager_standard/cert_manager_service/main/os_dependency/idl/cm_ipc/ |
D | cm_ipc_service.c | 627 struct CmAppUidList appUidList = { count, NULL }; in GetAuthedList() local 629 appUidList.appUid = (uint32_t *)(outData->data + sizeof(uint32_t)); in GetAuthedList() 632 int32_t ret = CmServiceGetAuthorizedAppList(context, keyUri, &appUidList); in GetAuthedList() 639 (void)memcpy_s(outData->data, sizeof(uint32_t), &appUidList.appUidCount, sizeof(uint32_t)); in GetAuthedList() 640 outData->size = sizeof(uint32_t) + sizeof(uint32_t) * appUidList.appUidCount; in GetAuthedList()
|
/base/security/certificate_manager/interfaces/kits/js/ |
D | @ohos.security.certManager.d.ts | 372 appUidList?: Array<string>; property
|