/base/security/certificate_framework/test/fuzztest/v1.0/x509certificate_fuzzer/ |
D | x509certificate_fuzzer.cpp | 87 CfBlob subjectName = { 0 }; in TestQuery() local 88 (void)x509CertObj->getSubjectName(x509CertObj, &subjectName); in TestQuery() 89 CfBlobDataClearAndFree(&subjectName); in TestQuery()
|
/base/security/certificate_manager/test/unittest/src/ |
D | cm_test_common.cpp | 147 (strcmp(firstCert->subjectName, secondCert->subjectName) == 0) && in CompareCert() 173 str += certAbstract->subjectName; in DumpCertAbstractInfo() 204 (strcmp(firstCert->subjectName, secondCert->subjectName) == 0) && in CompareCertInfo() 231 str += certInfo->subjectName; in DumpCertInfo()
|
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/ |
D | cert_manager_query.c | 346 certBlob->subjectName[i].size = MAX_LEN_SUBJECT_NAME; in CmMallocCertBlob() 347 certBlob->subjectName[i].data = (uint8_t *)CMMalloc(MAX_LEN_SUBJECT_NAME); in CmMallocCertBlob() 348 if (certBlob->subjectName[i].data == NULL) { in CmMallocCertBlob() 351 … (void)memset_s(certBlob->subjectName[i].data, MAX_LEN_SUBJECT_NAME, 0, MAX_LEN_SUBJECT_NAME); in CmMallocCertBlob() 434 static int32_t CmGetCertSubjectName(const struct CmBlob *certData, struct CmBlob *subjectName) in CmGetCertSubjectName() argument 442 …int32_t subjectLen = GetX509SubjectNameLongFormat(cert, (char *)subjectName->data, MAX_LEN_SUBJECT… in CmGetCertSubjectName() 448 subjectName->size = (uint32_t)subjectLen + 1; in CmGetCertSubjectName() 495 ret = CmGetCertSubjectName(&certData, &(certBlob->subjectName[i])); /* subjectName */ in CmGetCertListInfo() 515 CM_FREE_BLOB(certBlob->subjectName[i]); in CmFreeCertBlob()
|
/base/security/certificate_manager/interfaces/innerkits/cert_manager_standard/main/include/ |
D | cm_type.h | 202 struct CmBlob subjectName[MAX_COUNT_CERTIFICATE]; member 217 char subjectName[MAX_LEN_SUBJECT_NAME]; member 224 char subjectName[MAX_LEN_SUBJECT_NAME]; member 245 char subjectName[MAX_LEN_SUBJECT_NAME]; member
|
/base/security/certificate_manager/frameworks/cert_manager_standard/main/common/src/ |
D | cm_x509.c | 148 char subjectName[NAME_MAX_SIZE] = {0}; in GetX509SubjectNameLongFormat() local 149 … int32_t length = GetX509SubjectName(x509cert, subjectNameList[j], subjectName, NAME_MAX_SIZE); in GetX509SubjectNameLongFormat() 154 subjectNameList[j], subjectName, (char)(((j + 1) == sizeList) ? '\0' : ',')) < 0) { in GetX509SubjectNameLongFormat() 157 offset += strlen(subjectNameList[j]) + strlen(subjectName) + NAME_DELIMITER_SIZE; in GetX509SubjectNameLongFormat()
|
/base/update/updater/services/package/pkg_verify/ |
D | openssl_util.cpp | 271 X509_NAME *subjectName = X509_get_subject_name(cert); in GetX509CertSubjectName() local 272 if (subjectName == nullptr) { in GetX509CertSubjectName() 277 return GetStringFromX509Name(subjectName); in GetX509CertSubjectName()
|
/base/security/certificate_manager/interfaces/kits/napi/src/ |
D | cm_napi_common.cpp | 199 napi_value subjectName = nullptr; in GenerateCertAbstractArray() local 205 napi_create_string_latin1(env, static_cast<const char *>(certAbstract[i].subjectName), in GenerateCertAbstractArray() 206 NAPI_AUTO_LENGTH, &subjectName); in GenerateCertAbstractArray() 214 napi_set_named_property (env, element, CM_CERT_PROPERTY_SUBJECTNAME.c_str(), subjectName); in GenerateCertAbstractArray() 267 NAPI_CALL(env, napi_create_string_latin1(env, static_cast<const char *>(certInfo->subjectName), in GenerateCertInfo() 268 NAPI_AUTO_LENGTH, &cInfVal.subjectName)); in GenerateCertInfo() 290 …nv, napi_set_named_property(env, elem, CM_CERT_PROPERTY_SUBJECTNAME.c_str(), cInfVal.subjectName)); in GenerateCertInfo()
|
/base/security/certificate_manager/interfaces/kits/js/ |
D | @ohos.security.certManager.d.ts | 326 subjectName: string; 338 subjectName: string; property
|
/base/security/certificate_manager/frameworks/cert_manager_standard/main/os_dependency/cm_ipc/src/ |
D | cm_ipc_client_serialization.c | 95 …if (memcpy_s(certificateList->certAbstract[i].subjectName, MAX_LEN_SUBJECT_NAME, blob.data, blob.s… in CmCertificateListUnpackFromService() 133 …int32_t subjectNameLen = GetX509SubjectNameLongFormat(x509cert, cInfo->subjectName, MAX_LEN_SUBJEC… in GetInfoFromX509Cert()
|
/base/security/certificate_manager/interfaces/kits/napi/include/ |
D | cm_napi_common.h | 162 napi_value subjectName; member
|
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_service/main/os_dependency/idl/cm_ipc/ |
D | cm_ipc_service_serialization.c | 140 ret = CopyBlobToBuffer(&(certBlob->subjectName[i]), certificateList, &offset); in CmGetCertListPack()
|
/base/security/certificate_framework/frameworks/adapter/v1.0/src/ |
D | x509_certificate_openssl.c | 385 X509_NAME *subjectName = X509_get_subject_name(x509); in GetSubjectDNX509Openssl() local 386 if (subjectName == NULL) { in GetSubjectDNX509Openssl() 399 X509_NAME_oneline(subjectName, subject, HCF_MAX_STR_LEN); in GetSubjectDNX509Openssl()
|