Home
last modified time | relevance | path

Searched refs:CM_CREDENTIAL_STORE (Results 1 – 25 of 25) sorted by relevance

/base/security/certificate_manager/test/unittest/src/
Dcm_app_cert_test.cpp138 …int32_t ret = CmInstallAppCert(&g_appCert, &g_appCertPwd, &certAlias, CM_CREDENTIAL_STORE, &keyUri…
165 … int32_t ret = CmInstallAppCert(&g_appCert, &appCertPwd, &certAlias, CM_CREDENTIAL_STORE, &keyUri);
188 … int32_t ret = CmInstallAppCert(&appCert, &g_appCertPwd, &certAlias, CM_CREDENTIAL_STORE, &keyUri);
230 …int32_t ret = CmInstallAppCert(&g_eccAppCert, &g_appCertPwd, &certAlias, CM_CREDENTIAL_STORE, &key…
254 …int32_t ret = CmInstallAppCert(&g_eccAppCert, &g_appCertPwd, &certAlias, CM_CREDENTIAL_STORE, &key…
275 int32_t ret = CmInstallAppCert(&g_eccAppCert, &pwd, &certAlias, CM_CREDENTIAL_STORE, &keyUri);
293 …int32_t ret = CmInstallAppCert(&g_appCert, &g_appCertPwd, &certAlias, CM_CREDENTIAL_STORE, &retUri…
302 ret = CmGetAppCert(&retUri, CM_CREDENTIAL_STORE, &certificate);
323 …int32_t ret = CmInstallAppCert(&g_appCert, &g_appCertPwd, &certAlias, CM_CREDENTIAL_STORE, &retUri…
333 ret = CmGetAppCert(&retUri, CM_CREDENTIAL_STORE, &certificate);
[all …]
Dcm_grant_test.cpp63 int32_t ret = TestGenerateAppCert(&alias, CERT_KEY_ALG_RSA, CM_CREDENTIAL_STORE); in TestNormalGrant()
81 ret = CmUninstallAppCert(&keyUri, CM_CREDENTIAL_STORE); in TestNormalGrant()
345 int32_t ret = TestGenerateAppCert(&alias, CERT_KEY_ALG_RSA, CM_CREDENTIAL_STORE);
357 ret = CmUninstallAppCert(&keyUri, CM_CREDENTIAL_STORE);
371 int32_t ret = TestGenerateAppCert(&alias, CERT_KEY_ALG_RSA, CM_CREDENTIAL_STORE);
388 ret = CmUninstallAppCert(&keyUri, CM_CREDENTIAL_STORE);
Dcm_abort_test.cpp117 int32_t ret = TestGenerateAppCert(&alias, CERT_KEY_ALG_ECC, CM_CREDENTIAL_STORE);
132 ret = CmUninstallAppCert(&keyUri, CM_CREDENTIAL_STORE);
Dcm_init_test.cpp62 int32_t ret = TestGenerateAppCert(&aliasRsa, CERT_KEY_ALG_RSA, CM_CREDENTIAL_STORE); in SetUp()
64 ret = TestGenerateAppCert(&aliasEcc, CERT_KEY_ALG_ECC, CM_CREDENTIAL_STORE); in SetUp()
70 int32_t ret = CmUninstallAppCert(&g_rsaKeyUri, CM_CREDENTIAL_STORE); in TearDown()
72 ret = CmUninstallAppCert(&g_eccKeyUri, CM_CREDENTIAL_STORE); in TearDown()
Dcm_remove_grant_test.cpp63 int32_t ret = TestGenerateAppCert(&alias, CERT_KEY_ALG_RSA, CM_CREDENTIAL_STORE); in TestRemoveGrant()
80 ret = CmUninstallAppCert(&keyUri, CM_CREDENTIAL_STORE); in TestRemoveGrant()
Dcm_is_authed_test.cpp52 int32_t ret = TestGenerateAppCert(&alias, CERT_KEY_ALG_RSA, CM_CREDENTIAL_STORE); in SetUp()
61 int32_t ret = CmUninstallAppCert(&keyUri, CM_CREDENTIAL_STORE); in TearDown()
Dcm_get_auth_list_test.cpp60 int32_t ret = TestGenerateAppCert(&alias, CERT_KEY_ALG_RSA, CM_CREDENTIAL_STORE); in SetUp()
73 int32_t ret = CmUninstallAppCert(&g_keyUri, CM_CREDENTIAL_STORE); in TearDown()
Dcm_finish_test.cpp69 int32_t ret = TestGenerateAppCert(&alias, alg, CM_CREDENTIAL_STORE); in TestInstallAppCert()
75 int32_t ret = CmUninstallAppCert(&g_keyUri, CM_CREDENTIAL_STORE); in TestUninstallAppCert()
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
Dcert_manager_permission_check.cpp61 if (store == CM_CREDENTIAL_STORE) { /* only care about public credential */ in CmIsSystemAppByStoreType()
70 case CM_CREDENTIAL_STORE: in CmPermissionCheck()
Dcert_manager_check.c155 if (store != CM_CREDENTIAL_STORE && store != CM_PRI_CREDENTIAL_STORE) { in CmServiceInstallAppCertCheck()
198 if ((store != CM_CREDENTIAL_STORE) && (store != CM_PRI_CREDENTIAL_STORE)) { in CmServiceUninstallAppCertCheck()
223 if ((store != CM_CREDENTIAL_STORE) && (store != CM_PRI_CREDENTIAL_STORE)) { in CmServiceGetAppCertListCheck()
243 if ((store != CM_CREDENTIAL_STORE) && (store != CM_PRI_CREDENTIAL_STORE)) { in CmServiceGetAppCertCheck()
Dcm_event_process.c92 case CM_CREDENTIAL_STORE : in CmTraversalDirAction()
160 if (!isSameUid || (store != CM_CREDENTIAL_STORE)) { in RemoveAuthListDir()
178 if (store == CM_CREDENTIAL_STORE) { /* remove deleted uid from authlist */ in TraversalUidLayerDir()
239 } else if (store == CM_CREDENTIAL_STORE) { in TraversalUserIdLayerDir()
358 ret = CmTraversalDir(context, CREDNTIAL_STORE, CM_CREDENTIAL_STORE); in CmDeleteProcessInfo()
Dcert_manager.c77 case CM_CREDENTIAL_STORE: in GetFilePath()
80 if (store == CM_CREDENTIAL_STORE) { in GetFilePath()
201 if (store == CM_CREDENTIAL_STORE) { in CmRemoveAppCert()
232 if (store != CM_CREDENTIAL_STORE) { in ClearAuthInfo()
247 case CM_CREDENTIAL_STORE : in CmAppCertGetFilePath()
369 int32_t ret = CmRemoveSpecifiedAppCert(context, CM_CREDENTIAL_STORE); in CmRemoveAllAppCert()
397 if (store == CM_CREDENTIAL_STORE) { in CmServiceGetAppCertList()
Dcert_manager_auth_list_mgr.c336 ret = ConstructAuthListPath(context, CM_CREDENTIAL_STORE, authListPath, MAX_PATH_LEN); in CmAddAuthUid()
351 int32_t ret = ConstructAuthListPath(context, CM_CREDENTIAL_STORE, authListPath, MAX_PATH_LEN); in CmRemoveAuthUid()
366 int32_t ret = ConstructAuthListPath(context, CM_CREDENTIAL_STORE, authListPath, MAX_PATH_LEN); in CmGetAuthList()
393 int32_t ret = ConstructAuthListPath(context, CM_CREDENTIAL_STORE, authListPath, MAX_PATH_LEN); in CmDeleteAuthListFile()
416 int32_t ret = ConstructAuthListPath(context, CM_CREDENTIAL_STORE, authListPath, MAX_PATH_LEN); in CmCheckIsAuthUidExist()
498 int32_t ret = ConstructUidPath(context, CM_CREDENTIAL_STORE, uidPath, MAX_PATH_LEN); in CmCheckCredentialExist()
Dcert_manager_storage.c32 case CM_CREDENTIAL_STORE: in GetRootPath()
Dcert_manager_service.c137 if (store == CM_CREDENTIAL_STORE) { in CmServiceGetAppCert()
Dcert_manager_status.c759 } else if (store == CM_CREDENTIAL_STORE) { in CertManagerCheckStorePermission()
/base/security/certificate_manager/test/unittest/multi_thread_test/src/
Dcm_app_cert_multi_thread_test.cpp70 int32_t ret = CmUninstallAppCert(nullptr, CM_CREDENTIAL_STORE);
121 …int32_t ret = CmInstallAppCert(&g_appCert, &g_appCertPwd, &certAlias, CM_CREDENTIAL_STORE, &keyUri…
Dcm_grant_multi_thread_test.cpp68 int32_t ret = TestGenerateAppCert(&alias, CERT_KEY_ALG_RSA, CM_CREDENTIAL_STORE); in TestGrantAppCertificatePreAction()
95 int32_t ret = CmUninstallAppCert(&keyUri, CM_CREDENTIAL_STORE); in TestGrantAppCertificateAfterAction()
386 int32_t ret = TestGenerateAppCert(&alias, CERT_KEY_ALG_RSA, CM_CREDENTIAL_STORE);
395 ret = CmUninstallAppCert(&keyUri, CM_CREDENTIAL_STORE);
Dcm_remove_grant_multi_thread_test.cpp68 int32_t ret = TestGenerateAppCert(&alias, CERT_KEY_ALG_RSA, CM_CREDENTIAL_STORE); in TestRemoveGrantPreAction()
98 int32_t ret = CmUninstallAppCert(&keyUri, CM_CREDENTIAL_STORE); in TestRemoveGrantAfterAction()
Dcm_get_auth_list_multi_thread_test.cpp65 int32_t ret = TestGenerateAppCert(&alias, CERT_KEY_ALG_RSA, CM_CREDENTIAL_STORE); in SetUp()
78 int32_t ret = CmUninstallAppCert(&g_keyUri, CM_CREDENTIAL_STORE); in TearDown()
/base/security/certificate_manager/interfaces/innerkits/cert_manager_standard/main/src/
Dcert_manager_api.c87 keyUri == NULL || keyUri->data == NULL || (store != CM_CREDENTIAL_STORE && in CmInstallAppCert()
100 if (keyUri == NULL || (store != CM_CREDENTIAL_STORE && in CmUninstallAppCert()
123 if (certificateList == NULL || (store != CM_CREDENTIAL_STORE && in CmGetAppCertList()
137 if (keyUri == NULL || certificate == NULL || (store != CM_CREDENTIAL_STORE && in CmGetAppCert()
/base/security/certificate_manager/test/unittest/inner_permission_test/
Dcm_inner_permission_test.cpp136 int32_t ret = TestGenerateAppCert(&alias, CERT_KEY_ALG_RSA, CM_CREDENTIAL_STORE);
150 int32_t ret = CmUninstallAppCert(&uri, CM_CREDENTIAL_STORE);
177 int32_t ret = CmGetAppCertList(CM_CREDENTIAL_STORE, &certList);
213 int32_t ret = CmGetAppCert(&uri, CM_CREDENTIAL_STORE, &cred);
/base/security/certificate_manager/test/unittest/common_permission_test/
Dcm_common_permission_test.cpp115 int32_t ret = TestGenerateAppCert(&alias, CERT_KEY_ALG_RSA, CM_CREDENTIAL_STORE);
143 int32_t ret = CmUninstallAppCert(&uri, CM_CREDENTIAL_STORE);
184 int32_t ret = CmGetAppCertList(CM_CREDENTIAL_STORE, &certList);
220 int32_t ret = CmGetAppCert(&uri, CM_CREDENTIAL_STORE, &cred);
/base/security/certificate_manager/interfaces/innerkits/cert_manager_standard/main/include/
Dcm_type.h71 #define CM_CREDENTIAL_STORE 0 macro
/base/web/webview/ohos_adapter/cert_mgr_adapter/src/
Dcert_mgr_adapter_impl.cpp275 int32_t ret = CmGetAppCert(&uri, CM_CREDENTIAL_STORE, &cred); in GetAppCert()