Home
last modified time | relevance | path

Searched refs:cInfo (Results 1 – 4 of 4) sorted by relevance

/base/security/certificate_manager/frameworks/cert_manager_standard/main/os_dependency/cm_ipc/src/
Dcm_ipc_client_serialization.c132 static int32_t GetInfoFromX509Cert(X509 *x509cert, struct CertInfo *cInfo) in GetInfoFromX509Cert() argument
134 …int32_t subjectNameLen = GetX509SubjectNameLongFormat(x509cert, cInfo->subjectName, MAX_LEN_SUBJEC… in GetInfoFromX509Cert()
140 …int32_t issuerNameLen = GetX509IssueNameLongFormat(x509cert, cInfo->issuerName, MAX_LEN_ISSUER_NAM… in GetInfoFromX509Cert()
146 int32_t serialLen = GetX509SerialNumber(x509cert, cInfo->serial, MAX_LEN_SERIAL); in GetInfoFromX509Cert()
152 int32_t notBeforeLen = GetX509NotBefore(x509cert, cInfo->notBefore, MAX_LEN_NOT_BEFORE); in GetInfoFromX509Cert()
158 int32_t notAfterLen = GetX509NotAfter(x509cert, cInfo->notAfter, MAX_LEN_NOT_AFTER); in GetInfoFromX509Cert()
164 …int32_t fingerprintLen = GetX509Fingerprint(x509cert, cInfo->fingerprintSha256, MAX_LEN_FINGER_PRI… in GetInfoFromX509Cert()
172 static int32_t GetInfoFromCertData(struct CertInfo *cInfo) in GetInfoFromCertData() argument
174 X509 *cert = InitCertContext(cInfo->certInfo.data, cInfo->certInfo.size); in GetInfoFromCertData()
180 int32_t ret = GetInfoFromX509Cert(cert, cInfo); in GetInfoFromCertData()
[all …]
/base/security/certificate_manager/test/unittest/src/
Dcm_test_common.cpp86 int32_t InitUserCertInfo(struct CertInfo **cInfo) in InitUserCertInfo() argument
88 *cInfo = static_cast<struct CertInfo *>(CmMalloc(sizeof(struct CertInfo))); in InitUserCertInfo()
89 if (*cInfo == nullptr) { in InitUserCertInfo()
92 (void)memset_s(*cInfo, sizeof(struct CertInfo), 0, sizeof(struct CertInfo)); in InitUserCertInfo()
94 (*cInfo)->certInfo.data = static_cast<uint8_t *>(CmMalloc(MAX_LEN_CERTIFICATE)); in InitUserCertInfo()
95 if ((*cInfo)->certInfo.data == NULL) { in InitUserCertInfo()
98 (*cInfo)->certInfo.size = MAX_LEN_CERTIFICATE; in InitUserCertInfo()
129 void FreeCertInfo(struct CertInfo *cInfo) in FreeCertInfo() argument
131 if (cInfo == nullptr || (cInfo->certInfo).data == nullptr) { in FreeCertInfo()
135 FreeCMBlobData(&(cInfo->certInfo)); in FreeCertInfo()
[all …]
/base/security/certificate_manager/test/unittest/include/
Dcm_test_common.h63 int32_t InitUserCertInfo(struct CertInfo **cInfo);
69 void FreeCertInfo(struct CertInfo *cInfo);
/base/security/certificate_manager/frameworks/cert_manager_standard/main/os_dependency/cm_ipc/include/
Dcm_ipc_client_serialization.h37 struct CertInfo *cInfo);