Home
last modified time | relevance | path

Searched refs:appUid (Results 1 – 15 of 15) sorted by relevance

/base/notification/common_event_service/services/src/
Dpublish_manager.cpp31 bool PublishManager::CheckIsFloodAttack(pid_t appUid) in CheckIsFloodAttack() argument
37 …EVENT_LOGI("dispatch common event by app (uid = %{publish}d) at now = %{public}" PRId64, appUid, n… in CheckIsFloodAttack()
38 auto iter = floodAttackAppStatistics_.find(appUid); in CheckIsFloodAttack()
40 floodAttackAppStatistics_[appUid].emplace_back(now); in CheckIsFloodAttack()
53 EVENT_LOGW("CES was maliciously attacked by app (uid = %{publish}d)", appUid); in CheckIsFloodAttack()
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
Dcert_manager_auth_mgr.c323 uint32_t appUid, struct CmBlob *authUri) in CmAuthGrantAppCertificate() argument
347 ret = GenerateAuthUri(&uriObj, appUid, authUri); in CmAuthGrantAppCertificate()
354 ret = CmAddAuthUid(context, keyUri, appUid); in CmAuthGrantAppCertificate()
362 (void)CmAuthRemoveGrantedApp(context, keyUri, appUid); /* clear auth info */ in CmAuthGrantAppCertificate()
400 if (memcpy_s(appUidList->appUid, appUidList->appUidCount * sizeof(uint32_t), in CmAuthGetAuthorizedAppList()
401 tempAppUidList.appUid, tempAppUidList.appUidCount * sizeof(uint32_t)) != EOK) { in CmAuthGetAuthorizedAppList()
410 CM_FREE_PTR(tempAppUidList.appUid); in CmAuthGetAuthorizedAppList()
493 …AuthRemoveGrantedApp(const struct CmContext *context, const struct CmBlob *keyUri, uint32_t appUid) in CmAuthRemoveGrantedApp() argument
511 ret = DeleteMacKey(&uriObj, appUid); in CmAuthRemoveGrantedApp()
518 ret = CmRemoveAuthUid(context, keyUri, appUid); in CmAuthRemoveGrantedApp()
[all …]
Dcert_manager_service.c146 uint32_t appUid, struct CmBlob *authUri) in CmServiceGrantAppCertificate() argument
158 return CmAuthGrantAppCertificate(context, keyUri, appUid, authUri); in CmServiceGrantAppCertificate()
192 …viceRemoveGrantedApp(const struct CmContext *context, const struct CmBlob *keyUri, uint32_t appUid) in CmServiceRemoveGrantedApp() argument
204 return CmAuthRemoveGrantedApp(context, keyUri, appUid); in CmServiceRemoveGrantedApp()
Dcert_manager_auth_list_mgr.c324 appUidList->appUid = (uint32_t *)data; in FormatAppUidList()
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/include/
Dcert_manager_auth_mgr.h26 uint32_t appUid, struct CmBlob *authUri);
33 …uthRemoveGrantedApp(const struct CmContext *context, const struct CmBlob *keyUri, uint32_t appUid);
Dcert_manager_service.h32 uint32_t appUid, struct CmBlob *authUri);
39 …iceRemoveGrantedApp(const struct CmContext *context, const struct CmBlob *keyUri, uint32_t appUid);
/base/security/certificate_manager/test/unittest/src/
Dcm_get_auth_list_test.cpp76 uint32_t appUid[DEFAULT_APP_UID_COUNT] = {0}; in TearDown() local
77 struct CmAppUidList appUidList = { DEFAULT_APP_UID_COUNT, appUid }; in TearDown()
115 uint32_t appUid[DEFAULT_APP_UID_COUNT] = {0}; in CheckGetAuthedList() local
116 struct CmAppUidList appUidList = { DEFAULT_APP_UID_COUNT, appUid }; in CheckGetAuthedList()
125 if ((baseAppId + i) == appUidList.appUid[j]) { in CheckGetAuthedList()
362 EXPECT_EQ(*(appUidList.appUid), DEFAULT_BASE_APP_ID);
403 EXPECT_EQ(*(appUidList.appUid), DEFAULT_BASE_APP_ID);
/base/security/certificate_manager/frameworks/cert_manager_standard/main/os_dependency/cm_ipc/include/
Dcm_ipc_client.h46 int32_t CmClientGrantAppCertificate(const struct CmBlob *keyUri, uint32_t appUid, struct CmBlob *au…
52 int32_t CmClientRemoveGrantedApp(const struct CmBlob *keyUri, uint32_t appUid);
/base/security/certificate_manager/interfaces/innerkits/cert_manager_standard/main/include/
Dcert_manager_api.h44 CM_API_EXPORT int32_t CmGrantAppCertificate(const struct CmBlob *keyUri, uint32_t appUid, struct Cm…
50 CM_API_EXPORT int32_t CmRemoveGrantedApp(const struct CmBlob *keyUri, uint32_t appUid);
/base/notification/common_event_service/services/include/
Dpublish_manager.h39 bool CheckIsFloodAttack(pid_t appUid);
/base/security/certificate_manager/interfaces/kits/napi/src/
Dcm_napi_grant.cpp43 uint32_t appUid = 0; member
69 CM_FREE_PTR(context->uidList->appUid); in FreeGrantAsyncContext()
115 result = ParseString2Uint32(env, argv[index], context->appUid); in ParseGrantUidParams()
199 context->errCode = CmGrantAppCertificate(context->keyUri, context->appUid, context->authUri); in GrantUidExecute()
238 context->errCode = CmRemoveGrantedApp(context->keyUri, context->appUid); in RemoveUidExecute()
279 context->uidList->appUid = static_cast<uint32_t *>(CmMalloc(uidListSize)); in GetUidListExecute()
280 if (context->uidList->appUid == nullptr) { in GetUidListExecute()
285 (void)memset_s(context->uidList->appUid, uidListSize, 0, uidListSize); in GetUidListExecute()
301 … if (snprintf_s(uidStr, sizeof(uidStr), sizeof(uidStr) - 1, "%u", appUidList->appUid[i]) < 0) { in ConvertResultAuthList()
/base/security/certificate_manager/interfaces/innerkits/cert_manager_standard/main/src/
Dcert_manager_api.c147 CM_API_EXPORT int32_t CmGrantAppCertificate(const struct CmBlob *keyUri, uint32_t appUid, struct Cm… in CmGrantAppCertificate() argument
155 int32_t ret = CmClientGrantAppCertificate(keyUri, appUid, authUri); in CmGrantAppCertificate()
186 CM_API_EXPORT int32_t CmRemoveGrantedApp(const struct CmBlob *keyUri, uint32_t appUid) in CmRemoveGrantedApp() argument
194 int32_t ret = CmClientRemoveGrantedApp(keyUri, appUid); in CmRemoveGrantedApp()
/base/security/certificate_manager/frameworks/cert_manager_standard/main/os_dependency/cm_ipc/src/
Dcm_ipc_client.c634 if (appUidList->appUid == NULL) { in FormatAppUidList()
639 (void)memcpy_s(appUidList->appUid, uidListSize, replyBlob->data + offset, uidListSize); in FormatAppUidList()
645 int32_t CmClientGrantAppCertificate(const struct CmBlob *keyUri, uint32_t appUid, struct CmBlob *au… in CmClientGrantAppCertificate() argument
654 { .tag = CM_TAG_PARAM1_UINT32, .uint32Param = appUid }, in CmClientGrantAppCertificate()
720 int32_t CmClientRemoveGrantedApp(const struct CmBlob *keyUri, uint32_t appUid) in CmClientRemoveGrantedApp() argument
729 { .tag = CM_TAG_PARAM1_UINT32, .uint32Param = appUid }, in CmClientRemoveGrantedApp()
/base/security/certificate_manager/frameworks/cert_manager_standard/main/common/include/
Dcm_type.h328 uint32_t *appUid; member
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_service/main/os_dependency/idl/cm_ipc/
Dcm_ipc_service.c629 appUidList.appUid = (uint32_t *)(outData->data + sizeof(uint32_t)); in GetAuthedList()
751 uint32_t appUid = 0; in CmIpcServiceRemoveGrantedApp() local
754 { .tag = CM_TAG_PARAM1_UINT32, .uint32Param = &appUid }, in CmIpcServiceRemoveGrantedApp()
762 ret = CmServiceRemoveGrantedApp(&cmContext, &keyUri, appUid); in CmIpcServiceRemoveGrantedApp()