Home
last modified time | relevance | path

Searched refs:CM_SYSTEM_TRUSTED_STORE (Results 1 – 17 of 17) sorted by relevance

/base/security/certificate_manager/test/unittest/src/
Dcm_set_status_test.cpp80 int32_t ret = CmSetCertStatus(&uriBlob, CM_SYSTEM_TRUSTED_STORE, g_expectList[0].inparamStatus);
83 ret = CmSetCertStatus(&uriBlob, CM_SYSTEM_TRUSTED_STORE, true);
99 … int32_t ret = CmSetCertStatus(&uriBlob, CM_SYSTEM_TRUSTED_STORE, g_expectList[i].inparamStatus);
107 ret = CmGetCertInfo(&uriBlob, CM_SYSTEM_TRUSTED_STORE, &certDetailInfo);
114 ret = CmSetCertStatus(&uriBlob, CM_SYSTEM_TRUSTED_STORE, true);
131 int32_t ret = CmGetCertList(CM_SYSTEM_TRUSTED_STORE, certlist);
139 ret = CmSetCertStatus(&uriBlob, CM_SYSTEM_TRUSTED_STORE, false);
147 ret = CmSetCertStatus(&uriBlob2, CM_SYSTEM_TRUSTED_STORE, true);
162 EXPECT_EQ(CmSetCertStatus(NULL, CM_SYSTEM_TRUSTED_STORE, true),
169 EXPECT_EQ(CmSetCertStatus(&invalidUriBlob, CM_SYSTEM_TRUSTED_STORE, true),
Dcm_get_certlist_test.cpp100 int32_t ret = CmGetCertList(CM_SYSTEM_TRUSTED_STORE, lstCert);
115 int32_t ret = CmGetCertList(CM_SYSTEM_TRUSTED_STORE, listCert);
129 int32_t ret = CmGetCertList(CM_SYSTEM_TRUSTED_STORE, lstCert);
149 int32_t ret = CmGetCertList(CM_SYSTEM_TRUSTED_STORE, lstCert);
154 ret = CmGetCertList(CM_SYSTEM_TRUSTED_STORE, secondListCert);
171 EXPECT_EQ(CmGetCertList(CM_SYSTEM_TRUSTED_STORE, NULL), CMR_ERROR_NULL_POINTER);
Dcm_get_certinfo_test.cpp150 ret = CmGetCertInfo(&uriBlob, CM_SYSTEM_TRUSTED_STORE, &certInfo);
182 ret = CmGetCertInfo(&uriBlob, CM_SYSTEM_TRUSTED_STORE, &firstCertInfo);
185 ret = CmGetCertInfo(&uriBlob, CM_SYSTEM_TRUSTED_STORE, &secondCertInfo);
203 int32_t ret = CmGetCertList(CM_SYSTEM_TRUSTED_STORE, lstCert);
217 ret = CmGetCertInfo(&uriBlob, CM_SYSTEM_TRUSTED_STORE, &certInfo);
239 EXPECT_EQ(CmGetCertInfo(NULL, CM_SYSTEM_TRUSTED_STORE, &certInfo), CMR_ERROR_NULL_POINTER);
243 EXPECT_EQ(CmGetCertInfo(&uriBlob, CM_SYSTEM_TRUSTED_STORE, NULL), CMR_ERROR_NULL_POINTER);
247 EXPECT_EQ(CmGetCertInfo(&invalidUriBlob, CM_SYSTEM_TRUSTED_STORE, &certInfo),
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
Dcert_manager_check.c46 if (store != CM_SYSTEM_TRUSTED_STORE) { in CmServiceGetSystemCertListCheck()
61 if (store != CM_SYSTEM_TRUSTED_STORE) { in CmServiceGetSystemCertCheck()
81 if (store != CM_SYSTEM_TRUSTED_STORE) { in CmServiceSetCertStatusCheck()
Dcert_manager_status.c104 case CM_SYSTEM_TRUSTED_STORE: in GetStoreIndex()
464 DestroyTree(CM_SYSTEM_TRUSTED_STORE); in DestroyStatusTree()
485 TRY_FUNC(LoadStatus(CM_SYSTEM_TRUSTED_STORE), rc); in CertManagerStatusInit()
522 if (store == CM_SYSTEM_TRUSTED_STORE) { in GetRbTreeKey()
732 if (store == CM_SYSTEM_TRUSTED_STORE) { in CertManagerStatus()
751 if (store == CM_SYSTEM_TRUSTED_STORE) { in CertManagerCheckStorePermission()
Dcert_manager_storage.c35 case CM_SYSTEM_TRUSTED_STORE: in GetRootPath()
Dcert_manager.c94 case CM_SYSTEM_TRUSTED_STORE: in GetFilePath()
Dcert_manager_query.c419 } else if (store == CM_SYSTEM_TRUSTED_STORE) { in CmGetCertAlias()
Dcert_manager_service.c389 } else if (store == CM_SYSTEM_TRUSTED_STORE) { in CmServiceGetCertList()
/base/security/certificate_manager/interfaces/innerkits/cert_manager_standard/main/src/
Dcert_manager_api.c31 if ((certificateList->certAbstract == NULL) || (store != CM_SYSTEM_TRUSTED_STORE)) { in CmGetCertList()
51 (store != CM_SYSTEM_TRUSTED_STORE)) { in CmGetCertInfo()
70 if (store != CM_SYSTEM_TRUSTED_STORE) { in CmSetCertStatus()
/base/web/webview/ohos_adapter/cert_mgr_adapter/src/
Dcert_mgr_adapter_impl.cpp110 ret = CmGetCertList(CM_SYSTEM_TRUSTED_STORE, certList); in GetSytemRootCertSum()
135 ret = CmGetCertList(CM_SYSTEM_TRUSTED_STORE, certList); in GetSytemRootCertData()
161 ret = CmGetCertInfo(&uriBlob, CM_SYSTEM_TRUSTED_STORE, &certInfo); in GetSytemRootCertData()
/base/security/certificate_manager/test/unittest/inner_permission_test/
Dcm_inner_permission_test.cpp85 ret = CmGetCertList(CM_SYSTEM_TRUSTED_STORE, certList);
106 ret = CmGetCertInfo(&uri, CM_SYSTEM_TRUSTED_STORE, &info);
122 int32_t ret = CmSetCertStatus(&uri, CM_SYSTEM_TRUSTED_STORE, false);
/base/security/certificate_manager/test/unittest/common_permission_test/
Dcm_common_permission_test.cpp64 ret = CmGetCertList(CM_SYSTEM_TRUSTED_STORE, certList);
85 ret = CmGetCertInfo(&uri, CM_SYSTEM_TRUSTED_STORE, &info);
101 int32_t ret = CmSetCertStatus(&uri, CM_SYSTEM_TRUSTED_STORE, false);
/base/security/certificate_manager/interfaces/kits/napi/src/
Dcm_napi_get_system_cert_info.cpp143 if (context->store == CM_SYSTEM_TRUSTED_STORE) { in GetCertInfoExecute()
206 napi_value result = GetCertInfoParseParams(env, info, context, CM_SYSTEM_TRUSTED_STORE); in CMNapiGetSystemCertInfo()
Dcm_napi_get_system_cert_list.cpp135 if (context->store == CM_SYSTEM_TRUSTED_STORE) { in GetCertListExecute()
196 napi_value result = GetCertListParseParams(env, info, context, CM_SYSTEM_TRUSTED_STORE); in CMNapiGetSystemCertList()
Dcm_napi_set_cert_status.cpp118 if (context->store == CM_SYSTEM_TRUSTED_STORE) { in SetCertStatusExecute()
/base/security/certificate_manager/interfaces/innerkits/cert_manager_standard/main/include/
Dcm_type.h72 #define CM_SYSTEM_TRUSTED_STORE 1 macro