Lines Matching refs:cert_handle
72 std::string GetNickname(net::X509Certificate::OSCertHandle cert_handle) {
74 if (cert_handle->nickname) {
75 name = cert_handle->nickname;
110 string GetCertNameOrNickname(X509Certificate::OSCertHandle cert_handle) {
112 Stringize(CERT_GetCommonName(&cert_handle->subject), std::string()));
115 return GetNickname(cert_handle);
118 string GetTokenName(X509Certificate::OSCertHandle cert_handle) {
119 return psm::GetCertTokenName(cert_handle);
122 string GetVersion(X509Certificate::OSCertHandle cert_handle) {
126 if (cert_handle->version.len == 0 ||
127 SEC_ASN1DecodeInteger(&cert_handle->version, &version) == SECSuccess) {
133 net::CertType GetType(X509Certificate::OSCertHandle cert_handle) {
134 return psm::GetCertType(cert_handle);
137 void GetUsageStrings(X509Certificate::OSCertHandle cert_handle,
139 psm::GetCertUsageStrings(cert_handle, usages);
142 string GetSerialNumberHexified(X509Certificate::OSCertHandle cert_handle,
144 return Stringize(CERT_Hexify(&cert_handle->serialNumber, true),
148 string GetIssuerCommonName(X509Certificate::OSCertHandle cert_handle,
150 return Stringize(CERT_GetCommonName(&cert_handle->issuer), alternative_text);
153 string GetIssuerOrgName(X509Certificate::OSCertHandle cert_handle,
155 return Stringize(CERT_GetOrgName(&cert_handle->issuer), alternative_text);
158 string GetIssuerOrgUnitName(X509Certificate::OSCertHandle cert_handle,
160 return Stringize(CERT_GetOrgUnitName(&cert_handle->issuer), alternative_text);
163 string GetSubjectOrgName(X509Certificate::OSCertHandle cert_handle,
165 return Stringize(CERT_GetOrgName(&cert_handle->subject), alternative_text);
168 string GetSubjectOrgUnitName(X509Certificate::OSCertHandle cert_handle,
170 return Stringize(CERT_GetOrgUnitName(&cert_handle->subject),
174 string GetSubjectCommonName(X509Certificate::OSCertHandle cert_handle,
176 return Stringize(CERT_GetCommonName(&cert_handle->subject), alternative_text);
179 bool GetTimes(X509Certificate::OSCertHandle cert_handle,
182 if (CERT_GetCertTimes(cert_handle, &pr_issued, &pr_expires) == SECSuccess) {
190 string GetTitle(X509Certificate::OSCertHandle cert_handle) {
191 return psm::GetCertTitle(cert_handle);
194 string GetIssuerName(X509Certificate::OSCertHandle cert_handle) {
195 return psm::ProcessName(&cert_handle->issuer);
198 string GetSubjectName(X509Certificate::OSCertHandle cert_handle) {
199 return psm::ProcessName(&cert_handle->subject);
205 X509Certificate::OSCertHandle cert_handle,
207 if (cert_handle->extensions) {
208 for (size_t i = 0; cert_handle->extensions[i] != NULL; ++i) {
210 extension.name = psm::GetOIDText(&cert_handle->extensions[i]->id);
212 critical_label, non_critical_label, cert_handle->extensions[i]);
218 string HashCertSHA256(X509Certificate::OSCertHandle cert_handle) {
219 return HashCert(cert_handle, HASH_AlgSHA256, SHA256_LENGTH);
222 string HashCertSHA1(X509Certificate::OSCertHandle cert_handle) {
223 return HashCert(cert_handle, HASH_AlgSHA1, SHA1_LENGTH);
277 string ProcessSecAlgorithmSignature(X509Certificate::OSCertHandle cert_handle) {
278 return ProcessSecAlgorithmInternal(&cert_handle->signature);
282 X509Certificate::OSCertHandle cert_handle) {
284 &cert_handle->subjectPublicKeyInfo.algorithm);
288 X509Certificate::OSCertHandle cert_handle) {
290 &cert_handle->signatureWrap.signatureAlgorithm);
293 string ProcessSubjectPublicKeyInfo(X509Certificate::OSCertHandle cert_handle) {
294 return psm::ProcessSubjectPublicKeyInfo(&cert_handle->subjectPublicKeyInfo);
297 string ProcessRawBitsSignatureWrap(X509Certificate::OSCertHandle cert_handle) {
298 return ProcessRawBits(cert_handle->signatureWrap.signature.data,
299 cert_handle->signatureWrap.signature.len);