Home
last modified time | relevance | path

Searched refs:cmContext (Results 1 – 12 of 12) sorted by relevance

/base/security/certificate_manager/services/cert_manager_standard/cert_manager_service/main/hisysevent_wrapper/src/
Dcm_report_wrapper.c21 static int32_t ReportFaultEvent(const char *funcName, const struct CmContext *cmContext, in ReportFaultEvent() argument
29 struct EventValues eventValues = { cmContext->userId, cmContext->uid, name, errorCode }; in ReportFaultEvent()
37 void CmReport(const char *funcName, const struct CmContext *cmContext, in CmReport() argument
42 (void)ReportFaultEvent(funcName, cmContext, "NULL", errorCode); in CmReport()
45 (void)ReportFaultEvent(funcName, cmContext, (char *)certName->data, errorCode); in CmReport()
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_service/main/os_dependency/idl/cm_ipc/
Dcm_ipc_service.c40 struct CmContext *cmContext, struct CmParamOut *params, uint32_t paramsCount) in GetInputParams() argument
42 int32_t ret = CmGetProcessInfoForIPC(cmContext); in GetInputParams()
69 struct CmContext cmContext = {0}; in CmIpcServiceGetCertificateList() local
77 ret = GetInputParams(paramSetBlob, &paramSet, &cmContext, params, CM_ARRAY_SIZE(params)); in CmIpcServiceGetCertificateList()
89 ret = CmServiceGetCertList(&cmContext, store, &certFileList); in CmIpcServiceGetCertificateList()
95 ret = CmServiceGetCertListPack(&cmContext, store, &certFileList, outData); in CmIpcServiceGetCertificateList()
120 struct CmContext cmContext = {0}; in CmIpcServiceGetCertificateInfo() local
130 ret = GetInputParams(paramSetBlob, &paramSet, &cmContext, params, CM_ARRAY_SIZE(params)); in CmIpcServiceGetCertificateInfo()
142 ret = CmServiceGetCertInfo(&cmContext, &certUri, store, &certificateData, &status); in CmIpcServiceGetCertificateInfo()
170 struct CmContext cmContext = {0}; in CmIpcServiceSetCertStatus() local
[all …]
Dcm_response.cpp49 int32_t CmGetProcessInfoForIPC(struct CmContext *cmContext) in CmGetProcessInfoForIPC() argument
51 if (cmContext == nullptr) { in CmGetProcessInfoForIPC()
62 cmContext->uid = (uint32_t)callingUid; in CmGetProcessInfoForIPC()
63 cmContext->userId = static_cast<uint32_t>(userId); in CmGetProcessInfoForIPC()
Dcm_response.h27 int32_t CmGetProcessInfoForIPC(struct CmContext *cmContext);
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
Dcert_manager_check.c126 static bool CmCheckMaxInstalledCertCount(const uint32_t store, const struct CmContext *cmContext) in CmCheckMaxInstalledCertCount() argument
134 if (CmServiceGetAppCertList(cmContext, store, fileNames, in CmCheckMaxInstalledCertCount()
152 const struct CmBlob *certAlias, const uint32_t store, const struct CmContext *cmContext) in CmServiceInstallAppCertCheck() argument
177 if (CmCheckMaxInstalledCertCount(store, cmContext) == false) { in CmServiceInstallAppCertCheck()
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_service/main/hisysevent_wrapper/include/
Dcm_report_wrapper.h26 void CmReport(const char *funcName, const struct CmContext *cmContext,
/base/security/certificate_manager/interfaces/kits/napi/src/
Dcm_napi_set_cert_status.cpp38 struct CmContext *cmContext = nullptr; member
68 if (context->cmContext != nullptr) { in DeleteSetCertStatusAsyncContext()
69 FreeCmContext(context->cmContext); in DeleteSetCertStatusAsyncContext()
90 napi_value result = ParseCmContext(env, argv[index], context->cmContext); in SetCertStatusParseParams()
Dcm_napi_get_system_cert_list.cpp40 struct CmContext *cmContext = nullptr; member
65 if (context->cmContext != nullptr) { in DeleteGetCertListAsyncContext()
66 FreeCmContext(context->cmContext); in DeleteGetCertListAsyncContext()
91 napi_value result = ParseCmContext(env, argv[index], context->cmContext); in GetCertListParseParams()
Dcm_napi_get_system_cert_info.cpp40 struct CmContext *cmContext = nullptr; member
66 if (context->cmContext != nullptr) { in DeleteGetCertInfoAsyncContext()
67 FreeCmContext(context->cmContext); in DeleteGetCertInfoAsyncContext()
96 napi_value result = ParseCmContext(env, argv[index], context->cmContext); in GetSystemCertInfoParseParams()
Dcm_napi_common.cpp74 napi_value ParseCmContext(napi_env env, napi_value object, CmContext *&cmContext) in ParseCmContext() argument
94 cmContext = static_cast<CmContext *>(CmMalloc(sizeof(CmContext))); in ParseCmContext()
95 if (cmContext == nullptr) { in ParseCmContext()
101 cmContext->userId = static_cast<uint32_t>(atoi(userIdData)); in ParseCmContext()
102 cmContext->uid = static_cast<uint32_t>(atoi(uidData)); in ParseCmContext()
103 … if (strcpy_s(cmContext->packageName, sizeof(cmContext->packageName), packageNameData) != EOK) { in ParseCmContext()
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/include/
Dcert_manager_check.h34 const struct CmBlob *certAlias, const uint32_t store, const struct CmContext *cmContext);
/base/security/certificate_manager/interfaces/kits/napi/include/
Dcm_napi_common.h67 napi_value ParseCmContext(napi_env env, napi_value object, CmContext *&cmContext);