Home
last modified time | relevance | path

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

12

/base/security/certificate_manager/test/unittest/src/
Dcm_app_cert_test.cpp136 struct CmBlob certAlias = { sizeof(certAliasBuf), certAliasBuf }; variable
138 …int32_t ret = CmInstallAppCert(&g_appCert, &g_appCertPwd, &certAlias, CM_CREDENTIAL_STORE, &keyUri…
141 ret = CmInstallAppCert(&g_appCert, &g_appCertPwd, &certAlias, CM_PRI_CREDENTIAL_STORE, &keyUri);
163 struct CmBlob certAlias = { sizeof(certAliasBuf), certAliasBuf }; variable
165 … int32_t ret = CmInstallAppCert(&g_appCert, &appCertPwd, &certAlias, CM_CREDENTIAL_STORE, &keyUri);
168 ret = CmInstallAppCert(&g_appCert, &appCertPwd, &certAlias, CM_PRI_CREDENTIAL_STORE, &keyUri);
181 struct CmBlob certAlias = { sizeof(certAliasBuf), certAliasBuf }; variable
188 … int32_t ret = CmInstallAppCert(&appCert, &g_appCertPwd, &certAlias, CM_CREDENTIAL_STORE, &keyUri);
191 ret = CmInstallAppCert(&appCert, &g_appCertPwd, &certAlias, CM_PRI_CREDENTIAL_STORE, &keyUri);
204 struct CmBlob certAlias = { sizeof(certAliasBuf), certAliasBuf }; variable
[all …]
Dcm_user_cert_test.cpp466 struct CmBlob certAlias[] = { variable
513 ret = CmInstallUserTrustedCert(&userCert[0], &certAlias[0], &certUri);
532 ret = CmInstallUserTrustedCert(&userCert[1], &certAlias[1], &certUri);
551 ret = CmInstallUserTrustedCert(&userCert[2], &certAlias[2], &certUri);
687 ret = CmInstallUserTrustedCert(&userCert[2], &certAlias[2], &certUri);
857 uint32_t size = sizeof(certAlias) / sizeof(certAlias[0]);
861 ret = CmInstallUserTrustedCert(&userCert[i], &certAlias[i], &certUri);
880 uint32_t size = sizeof(certAlias) / sizeof(certAlias[0]);
884 ret = CmInstallUserTrustedCert(&userCert[i], &certAlias[i], &certUriTemp);
903 uint32_t size = sizeof(certAlias) / sizeof(certAlias[0]);
[all …]
Dcm_test_common.cpp146 (strcmp(firstCert->certAlias, secondCert->certAlias) == 0) && in CompareCert()
171 str += certAbstract->certAlias; in DumpCertAbstractInfo()
201 (strcmp(firstCert->certAlias, secondCert->certAlias) == 0) && in CompareCertInfo()
229 str += certInfo->certAlias; in DumpCertInfo()
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_service/main/os_dependency/idl/cm_ipc/
Dcm_ipc_service_serialization.c155 ret = CopyBlobToBuffer(&(certBlob->certAlias[i]), certificateList, &offset); in CmGetCertListPack()
217 struct CmBlob certAlias; in CmServiceGetCertInfoPack() local
218 certAlias.size = MAX_LEN_CERT_ALIAS; in CmServiceGetCertInfoPack()
219 certAlias.data = (uint8_t *)CmMalloc(MAX_LEN_CERT_ALIAS); in CmServiceGetCertInfoPack()
220 if (certAlias.data == NULL) { in CmServiceGetCertInfoPack()
223 (void)memset_s(certAlias.data, MAX_LEN_CERT_ALIAS, 0, MAX_LEN_CERT_ALIAS); in CmServiceGetCertInfoPack()
225 ret = CmGetCertAlias(store, (char *)certUri->data, certificateData, &(certAlias)); in CmServiceGetCertInfoPack()
228 CM_FREE_BLOB(certAlias); in CmServiceGetCertInfoPack()
232 ret = CopyBlobToBuffer(&certAlias, certificateInfo, &offset); /* certAlias */ in CmServiceGetCertInfoPack()
235 CM_FREE_BLOB(certAlias); in CmServiceGetCertInfoPack()
[all …]
Dcm_ipc_service.c212 struct CmBlob certAlias = { 0, NULL }; in CmIpcServiceInstallAppCert() local
217 { .tag = CM_TAG_PARAM2_BUFFER, .blob = &certAlias }, in CmIpcServiceInstallAppCert()
226 ret = CmServicInstallAppCert(&cmContext, &appCertInfo, &certAlias, store, outData); in CmIpcServiceInstallAppCert()
353 struct CmBlob *certUri, struct CmBlob *certAlias) in CmCertListGetAppCertInfo() argument
364 ret = GetAppCertInfo(&keyUri, certType, certUri, certAlias); in CmCertListGetAppCertInfo()
398 struct CmBlob certAlias = { sizeof(aliasBuf), aliasBuf }; in CmServiceGetAppCertListPack() local
400 ret = CmCertListGetAppCertInfo(&fileNames[i], &certType, &certUri, &certAlias); in CmServiceGetAppCertListPack()
418 ret = CopyBlobToBuffer(&certAlias, certificateList, &offset); in CmServiceGetAppCertListPack()
1078 struct CmBlob certAlias = { 0, NULL }; in CmIpcServiceInstallUserCert() local
1083 { .tag = CM_TAG_PARAM1_BUFFER, .blob = &certAlias }, in CmIpcServiceInstallUserCert()
[all …]
/base/security/certificate_manager/test/fuzz_test/cminstallusertrustedcert_fuzzer/
Dcminstallusertrustedcert_fuzzer.cpp42 struct CmBlob certAlias = { 0, nullptr }; in DoSomethingInterestingWithMyAPI() local
43 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &certAlias)) { in DoSomethingInterestingWithMyAPI()
55 (void)CmInstallUserTrustedCert(&userCert, &certAlias, &certUri); in DoSomethingInterestingWithMyAPI()
/base/security/certificate_manager/test/fuzz_test/cminstallappcert_fuzzer/
Dcminstallappcert_fuzzer.cpp49 struct CmBlob certAlias = { 0, nullptr }; in DoSomethingInterestingWithMyAPI() local
50 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &certAlias)) { in DoSomethingInterestingWithMyAPI()
68 (void)CmInstallAppCert(&appCert, &appCertPwd, &certAlias, store, &keyUri); in DoSomethingInterestingWithMyAPI()
/base/security/certificate_manager/interfaces/kits/js/
D@ohos.security.certManager.d.ts121 …function installAppCertificate(keystore: Uint8Array, keystorePwd: string, certAlias: string, callb…
122 …function installAppCertificate(keystore: Uint8Array, keystorePwd: string, certAlias: string) : Pro…
133 …function installPrivateCertificate(keystore: Uint8Array, keystorePwd: string, certAlias: string, c…
134 …function installPrivateCertificate(keystore: Uint8Array, keystorePwd: string, certAlias: string) :…
323 certAlias: string;
336 certAlias: string; property
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
Dcert_manager_check.c153 const struct CmBlob *certAlias, const uint32_t store, const struct CmContext *cmContext) in CmServiceInstallAppCertCheck() argument
161 (CmCheckBlob(certAlias) != CM_SUCCESS)) { in CmServiceInstallAppCertCheck()
167 certAlias->size > MAX_LEN_CERT_ALIAS) { in CmServiceInstallAppCertCheck()
169 appCert->size, appCertPwd->size, certAlias->size); in CmServiceInstallAppCertCheck()
173 if (!AppCertCheckBlobValid(appCertPwd) || !AppCertCheckBlobValid(certAlias)) { in CmServiceInstallAppCertCheck()
Dcert_manager_service.c62 const struct CmBlob *certAlias, const uint32_t store, struct CmBlob *keyUri) in CmServicInstallAppCert() argument
65 certAlias, store, context); in CmServicInstallAppCert()
71 ret = CmInstallAppCertPro(context, appCertInfo, certAlias, store, keyUri); in CmServicInstallAppCert()
463 const struct CmBlob *certAlias, struct CmBlob *certUri) in CmInstallUserCert() argument
465 if ((CmCheckBlob(userCert) != CM_SUCCESS) || (CmCheckBlob(certAlias) != CM_SUCCESS)) { in CmInstallUserCert()
489 if (CheckUri(certAlias) != CM_SUCCESS) { in CmInstallUserCert()
494 ret = CmWriteUserCert(context, &pathBlob, userCert, certAlias, certUri); in CmInstallUserCert()
Dcert_manager_query.c353 certBlob->certAlias[i].size = MAX_LEN_CERT_ALIAS; in CmMallocCertBlob()
354 certBlob->certAlias[i].data = (uint8_t *)CMMalloc(MAX_LEN_CERT_ALIAS); in CmMallocCertBlob()
355 if (certBlob->certAlias[i].data == NULL) { in CmMallocCertBlob()
358 (void)memset_s(certBlob->certAlias[i].data, MAX_LEN_CERT_ALIAS, 0, MAX_LEN_CERT_ALIAS); in CmMallocCertBlob()
488 &(certBlob->certAlias[i])); /* alias */ in CmGetCertListInfo()
516 CM_FREE_BLOB(certBlob->certAlias[i]); in CmFreeCertBlob()
Dcert_manager.c438 static int32_t ConstructCertUri(const struct CmContext *context, const struct CmBlob *certAlias, in ConstructCertUri() argument
444 ret = CmConstructCommonUri(context, CM_URI_TYPE_CERTIFICATE, certAlias, &commonUri); in ConstructCertUri()
470 const struct CmBlob *userCert, const struct CmBlob *certAlias, struct CmBlob *certUri) in CmWriteUserCert() argument
472 if (certAlias->size > MAX_LEN_CERT_ALIAS) { in CmWriteUserCert()
479 ret = ConstructCertUri(context, certAlias, certUri); in CmWriteUserCert()
Dcert_manager_app_cert_process.c369 static int32_t ConstructKeyUri(const struct CmContext *context, const struct CmBlob *certAlias, str… in ConstructKeyUri() argument
374 ret = CmConstructCommonUri(context, CM_URI_TYPE_APP_KEY, certAlias, &commonUri); in ConstructKeyUri()
400 const struct CmBlob *certAlias, const uint32_t store, struct CmBlob *keyUri) in CmInstallAppCertPro() argument
408 ret = ConstructKeyUri(context, certAlias, keyUri); in CmInstallAppCertPro()
/base/security/certificate_manager/test/unittest/multi_thread_test/src/
Dcm_app_cert_multi_thread_test.cpp116 struct CmBlob certAlias = { sizeof(certAliasBuf), certAliasBuf }; variable
121 …int32_t ret = CmInstallAppCert(&g_appCert, &g_appCertPwd, &certAlias, CM_CREDENTIAL_STORE, &keyUri…
124 ret = CmInstallAppCert(&g_appCert, &g_appCertPwd, &certAlias, CM_PRI_CREDENTIAL_STORE, &keyUri);
/base/security/certificate_manager/interfaces/innerkits/cert_manager_standard/main/include/
Dcm_type.h201 struct CmBlob certAlias[MAX_COUNT_CERTIFICATE]; member
214 char certAlias[MAX_LEN_CERT_ALIAS]; member
222 char certAlias[MAX_LEN_CERT_ALIAS]; member
234 char certAlias[MAX_LEN_CERT_ALIAS]; member
242 char certAlias[MAX_LEN_CERT_ALIAS]; member
Dcert_manager_api.h34 const struct CmBlob *certAlias, const uint32_t store, struct CmBlob *keyUri);
69 const struct CmBlob *certAlias, struct CmBlob *certUri);
/base/security/certificate_manager/interfaces/innerkits/cert_manager_standard/main/src/
Dcert_manager_api.c83 const struct CmBlob *certAlias, const uint32_t store, struct CmBlob *keyUri) in CmInstallAppCert() argument
86 if (appCert == NULL || appCertPwd == NULL || certAlias == NULL || in CmInstallAppCert()
92 int32_t ret = CmClientInstallAppCert(appCert, appCertPwd, certAlias, store, keyUri); in CmInstallAppCert()
289 …ORT int32_t CmInstallUserTrustedCert(const struct CmBlob *userCert, const struct CmBlob *certAlias, in CmInstallUserTrustedCert() argument
293 if ((userCert == NULL) || (certAlias == NULL) || (certUri == NULL)) { in CmInstallUserTrustedCert()
297 int32_t ret = CmClientInstallUserTrustedCert(userCert, certAlias, certUri); in CmInstallUserTrustedCert()
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/include/
Dcert_manager_app_cert_process.h26 const struct CmBlob *certAlias, const uint32_t store, struct CmBlob *keyUri);
Dcert_manager_service.h26 const struct CmBlob *certAlias, const uint32_t store, struct CmBlob *keyUri);
58 const struct CmBlob *certAlias, struct CmBlob *certUri);
Dcert_manager_check.h34 const struct CmBlob *certAlias, const uint32_t store, const struct CmContext *cmContext);
Dcert_manager.h51 const struct CmBlob *userCert, const struct CmBlob *certAlias, struct CmBlob *certUri);
Dcert_manager_uri.h79 const struct CmBlob *certAlias, struct CmBlob *outUri);
/base/security/certificate_manager/frameworks/cert_manager_standard/main/os_dependency/cm_ipc/include/
Dcm_ipc_client.h36 const struct CmBlob *certAlias, const uint32_t store, struct CmBlob *keyUri);
70 …t32_t CmClientInstallUserTrustedCert(const struct CmBlob *userCert, const struct CmBlob *certAlias,
/base/security/certificate_manager/interfaces/kits/napi/src/
Dcm_napi_common.cpp198 napi_value certAlias = nullptr; in GenerateCertAbstractArray() local
203 napi_create_string_latin1(env, static_cast<const char *>(certAbstract[i].certAlias), in GenerateCertAbstractArray()
204 NAPI_AUTO_LENGTH, &certAlias); in GenerateCertAbstractArray()
212 napi_set_named_property (env, element, CM_CERT_PROPERTY_CERTALIAS.c_str(), certAlias); in GenerateCertAbstractArray()
262 NAPI_CALL(env, napi_create_string_latin1(env, static_cast<const char *>(certInfo->certAlias), in GenerateCertInfo()
263 NAPI_AUTO_LENGTH, &cInfVal.certAlias)); in GenerateCertInfo()
287 …LL(env, napi_set_named_property(env, elem, CM_CERT_PROPERTY_CERTALIAS.c_str(), cInfVal.certAlias)); in GenerateCertInfo()
/base/security/certificate_manager/frameworks/cert_manager_standard/main/os_dependency/cm_ipc/src/
Dcm_ipc_client_serialization.c123 …if (memcpy_s(certificateList->certAbstract[i].certAlias, MAX_LEN_CERT_ALIAS, blob.data, blob.size)… in CmCertificateListUnpackFromService()
228 (void)memset_s(cInfo->certAlias, MAX_LEN_CERT_ALIAS, 0, MAX_LEN_CERT_ALIAS); in CmCertificateInfoUnpackFromService()
229 if (memcpy_s(cInfo->certAlias, MAX_LEN_CERT_ALIAS, bufBlob.data, bufBlob.size) != EOK) { in CmCertificateInfoUnpackFromService()

12