cert_handle 195 chrome/browser/chromeos/options/cert_library.cc net::X509Certificate::OSCertHandle cert_handle = cert->os_cert_handle(); cert_handle 196 chrome/browser/chromeos/options/cert_library.cc std::string id = x509_certificate_model::GetPkcs11Id(cert_handle); cert_handle 216 chrome/browser/chromeos/options/cert_library.cc net::X509Certificate::OSCertHandle cert_handle = cert_handle 218 chrome/browser/chromeos/options/cert_library.cc net::CertType type = x509_certificate_model::GetType(cert_handle); cert_handle 229 chrome/browser/chromeos/options/cert_library.cc x509_certificate_model::GetTokenName(cert_handle); cert_handle 19 chrome/common/net/x509_certificate_model.h net::X509Certificate::OSCertHandle cert_handle); cert_handle 21 chrome/common/net/x509_certificate_model.h std::string GetNickname(net::X509Certificate::OSCertHandle cert_handle); cert_handle 23 chrome/common/net/x509_certificate_model.h std::string GetTokenName(net::X509Certificate::OSCertHandle cert_handle); cert_handle 25 chrome/common/net/x509_certificate_model.h std::string GetVersion(net::X509Certificate::OSCertHandle cert_handle); cert_handle 27 chrome/common/net/x509_certificate_model.h net::CertType GetType(net::X509Certificate::OSCertHandle cert_handle); cert_handle 29 chrome/common/net/x509_certificate_model.h std::string GetEmailAddress(net::X509Certificate::OSCertHandle cert_handle); cert_handle 32 chrome/common/net/x509_certificate_model.h net::X509Certificate::OSCertHandle cert_handle, cert_handle 35 chrome/common/net/x509_certificate_model.h std::string GetKeyUsageString(net::X509Certificate::OSCertHandle cert_handle); cert_handle 38 chrome/common/net/x509_certificate_model.h net::X509Certificate::OSCertHandle cert_handle, cert_handle 42 chrome/common/net/x509_certificate_model.h net::X509Certificate::OSCertHandle cert_handle, cert_handle 46 chrome/common/net/x509_certificate_model.h net::X509Certificate::OSCertHandle cert_handle, cert_handle 50 chrome/common/net/x509_certificate_model.h net::X509Certificate::OSCertHandle cert_handle, cert_handle 54 chrome/common/net/x509_certificate_model.h net::X509Certificate::OSCertHandle cert_handle, cert_handle 58 chrome/common/net/x509_certificate_model.h net::X509Certificate::OSCertHandle cert_handle, cert_handle 62 chrome/common/net/x509_certificate_model.h net::X509Certificate::OSCertHandle cert_handle, cert_handle 65 chrome/common/net/x509_certificate_model.h bool GetTimes(net::X509Certificate::OSCertHandle cert_handle, cert_handle 68 chrome/common/net/x509_certificate_model.h std::string GetTitle(net::X509Certificate::OSCertHandle cert_handle); cert_handle 69 chrome/common/net/x509_certificate_model.h std::string GetIssuerName(net::X509Certificate::OSCertHandle cert_handle); cert_handle 70 chrome/common/net/x509_certificate_model.h std::string GetSubjectName(net::X509Certificate::OSCertHandle cert_handle); cert_handle 72 chrome/common/net/x509_certificate_model.h void GetEmailAddresses(net::X509Certificate::OSCertHandle cert_handle, cert_handle 82 chrome/common/net/x509_certificate_model.h std::string GetPkcs11Id(net::X509Certificate::OSCertHandle cert_handle); cert_handle 94 chrome/common/net/x509_certificate_model.h net::X509Certificate::OSCertHandle cert_handle, cert_handle 99 chrome/common/net/x509_certificate_model.h std::string HashCertSHA256(net::X509Certificate::OSCertHandle cert_handle); cert_handle 100 chrome/common/net/x509_certificate_model.h std::string HashCertSHA1(net::X509Certificate::OSCertHandle cert_handle); cert_handle 107 chrome/common/net/x509_certificate_model.h void GetCertChainFromCert(net::X509Certificate::OSCertHandle cert_handle, cert_handle 111 chrome/common/net/x509_certificate_model.h std::string GetDerString(net::X509Certificate::OSCertHandle cert_handle); cert_handle 116 chrome/common/net/x509_certificate_model.h net::X509Certificate::OSCertHandle cert_handle); cert_handle 118 chrome/common/net/x509_certificate_model.h net::X509Certificate::OSCertHandle cert_handle); cert_handle 120 chrome/common/net/x509_certificate_model.h net::X509Certificate::OSCertHandle cert_handle); cert_handle 123 chrome/common/net/x509_certificate_model.h net::X509Certificate::OSCertHandle cert_handle); cert_handle 126 chrome/common/net/x509_certificate_model.h net::X509Certificate::OSCertHandle cert_handle); cert_handle 99 chrome/common/net/x509_certificate_model_nss.cc string GetCertNameOrNickname(X509Certificate::OSCertHandle cert_handle) { cert_handle 101 chrome/common/net/x509_certificate_model_nss.cc Stringize(CERT_GetCommonName(&cert_handle->subject), std::string())); cert_handle 104 chrome/common/net/x509_certificate_model_nss.cc return GetNickname(cert_handle); cert_handle 107 chrome/common/net/x509_certificate_model_nss.cc string GetNickname(X509Certificate::OSCertHandle cert_handle) { cert_handle 109 chrome/common/net/x509_certificate_model_nss.cc if (cert_handle->nickname) { cert_handle 110 chrome/common/net/x509_certificate_model_nss.cc name = cert_handle->nickname; cert_handle 120 chrome/common/net/x509_certificate_model_nss.cc string GetTokenName(X509Certificate::OSCertHandle cert_handle) { cert_handle 121 chrome/common/net/x509_certificate_model_nss.cc return psm::GetCertTokenName(cert_handle); cert_handle 124 chrome/common/net/x509_certificate_model_nss.cc string GetVersion(X509Certificate::OSCertHandle cert_handle) { cert_handle 128 chrome/common/net/x509_certificate_model_nss.cc if (cert_handle->version.len == 0 || cert_handle 129 chrome/common/net/x509_certificate_model_nss.cc SEC_ASN1DecodeInteger(&cert_handle->version, &version) == SECSuccess) { cert_handle 135 chrome/common/net/x509_certificate_model_nss.cc net::CertType GetType(X509Certificate::OSCertHandle cert_handle) { cert_handle 136 chrome/common/net/x509_certificate_model_nss.cc return psm::GetCertType(cert_handle); cert_handle 139 chrome/common/net/x509_certificate_model_nss.cc string GetEmailAddress(X509Certificate::OSCertHandle cert_handle) { cert_handle 140 chrome/common/net/x509_certificate_model_nss.cc if (cert_handle->emailAddr) cert_handle 141 chrome/common/net/x509_certificate_model_nss.cc return cert_handle->emailAddr; cert_handle 145 chrome/common/net/x509_certificate_model_nss.cc void GetUsageStrings(X509Certificate::OSCertHandle cert_handle, cert_handle 147 chrome/common/net/x509_certificate_model_nss.cc psm::GetCertUsageStrings(cert_handle, usages); cert_handle 150 chrome/common/net/x509_certificate_model_nss.cc string GetKeyUsageString(X509Certificate::OSCertHandle cert_handle) { cert_handle 154 chrome/common/net/x509_certificate_model_nss.cc if (CERT_FindKeyUsageExtension(cert_handle, &key_usage) == SECSuccess) { cert_handle 161 chrome/common/net/x509_certificate_model_nss.cc string GetSerialNumberHexified(X509Certificate::OSCertHandle cert_handle, cert_handle 163 chrome/common/net/x509_certificate_model_nss.cc return Stringize(CERT_Hexify(&cert_handle->serialNumber, true), cert_handle 167 chrome/common/net/x509_certificate_model_nss.cc string GetIssuerCommonName(X509Certificate::OSCertHandle cert_handle, cert_handle 169 chrome/common/net/x509_certificate_model_nss.cc return Stringize(CERT_GetCommonName(&cert_handle->issuer), alternative_text); cert_handle 172 chrome/common/net/x509_certificate_model_nss.cc string GetIssuerOrgName(X509Certificate::OSCertHandle cert_handle, cert_handle 174 chrome/common/net/x509_certificate_model_nss.cc return Stringize(CERT_GetOrgName(&cert_handle->issuer), alternative_text); cert_handle 177 chrome/common/net/x509_certificate_model_nss.cc string GetIssuerOrgUnitName(X509Certificate::OSCertHandle cert_handle, cert_handle 179 chrome/common/net/x509_certificate_model_nss.cc return Stringize(CERT_GetOrgUnitName(&cert_handle->issuer), alternative_text); cert_handle 182 chrome/common/net/x509_certificate_model_nss.cc string GetSubjectOrgName(X509Certificate::OSCertHandle cert_handle, cert_handle 184 chrome/common/net/x509_certificate_model_nss.cc return Stringize(CERT_GetOrgName(&cert_handle->subject), alternative_text); cert_handle 187 chrome/common/net/x509_certificate_model_nss.cc string GetSubjectOrgUnitName(X509Certificate::OSCertHandle cert_handle, cert_handle 189 chrome/common/net/x509_certificate_model_nss.cc return Stringize(CERT_GetOrgUnitName(&cert_handle->subject), cert_handle 193 chrome/common/net/x509_certificate_model_nss.cc string GetSubjectCommonName(X509Certificate::OSCertHandle cert_handle, cert_handle 195 chrome/common/net/x509_certificate_model_nss.cc return Stringize(CERT_GetCommonName(&cert_handle->subject), alternative_text); cert_handle 198 chrome/common/net/x509_certificate_model_nss.cc bool GetTimes(X509Certificate::OSCertHandle cert_handle, cert_handle 201 chrome/common/net/x509_certificate_model_nss.cc if (CERT_GetCertTimes(cert_handle, &pr_issued, &pr_expires) == SECSuccess) { cert_handle 209 chrome/common/net/x509_certificate_model_nss.cc string GetTitle(X509Certificate::OSCertHandle cert_handle) { cert_handle 210 chrome/common/net/x509_certificate_model_nss.cc return psm::GetCertTitle(cert_handle); cert_handle 213 chrome/common/net/x509_certificate_model_nss.cc string GetIssuerName(X509Certificate::OSCertHandle cert_handle) { cert_handle 214 chrome/common/net/x509_certificate_model_nss.cc return psm::ProcessName(&cert_handle->issuer); cert_handle 217 chrome/common/net/x509_certificate_model_nss.cc string GetSubjectName(X509Certificate::OSCertHandle cert_handle) { cert_handle 218 chrome/common/net/x509_certificate_model_nss.cc return psm::ProcessName(&cert_handle->subject); cert_handle 221 chrome/common/net/x509_certificate_model_nss.cc void GetEmailAddresses(X509Certificate::OSCertHandle cert_handle, cert_handle 223 chrome/common/net/x509_certificate_model_nss.cc for (const char* addr = CERT_GetFirstEmailAddress(cert_handle); cert_handle 224 chrome/common/net/x509_certificate_model_nss.cc addr; addr = CERT_GetNextEmailAddress(cert_handle, addr)) { cert_handle 268 chrome/common/net/x509_certificate_model_nss.cc std::string GetPkcs11Id(net::X509Certificate::OSCertHandle cert_handle) { cert_handle 270 chrome/common/net/x509_certificate_model_nss.cc SECKEYPrivateKey *priv_key = PK11_FindKeyByAnyCert(cert_handle, cert_handle 287 chrome/common/net/x509_certificate_model_nss.cc X509Certificate::OSCertHandle cert_handle, cert_handle 289 chrome/common/net/x509_certificate_model_nss.cc if (cert_handle->extensions) { cert_handle 290 chrome/common/net/x509_certificate_model_nss.cc for (size_t i = 0; cert_handle->extensions[i] != NULL; ++i) { cert_handle 292 chrome/common/net/x509_certificate_model_nss.cc extension.name = psm::GetOIDText(&cert_handle->extensions[i]->id); cert_handle 294 chrome/common/net/x509_certificate_model_nss.cc critical_label, non_critical_label, cert_handle->extensions[i]); cert_handle 300 chrome/common/net/x509_certificate_model_nss.cc string HashCertSHA256(X509Certificate::OSCertHandle cert_handle) { cert_handle 301 chrome/common/net/x509_certificate_model_nss.cc return HashCert(cert_handle, HASH_AlgSHA256, SHA256_LENGTH); cert_handle 304 chrome/common/net/x509_certificate_model_nss.cc string HashCertSHA1(X509Certificate::OSCertHandle cert_handle) { cert_handle 305 chrome/common/net/x509_certificate_model_nss.cc return HashCert(cert_handle, HASH_AlgSHA1, SHA1_LENGTH); cert_handle 308 chrome/common/net/x509_certificate_model_nss.cc void GetCertChainFromCert(X509Certificate::OSCertHandle cert_handle, cert_handle 311 chrome/common/net/x509_certificate_model_nss.cc CERT_GetCertChainFromCert(cert_handle, PR_Now(), certUsageSSLServer); cert_handle 328 chrome/common/net/x509_certificate_model_nss.cc string GetDerString(X509Certificate::OSCertHandle cert_handle) { cert_handle 329 chrome/common/net/x509_certificate_model_nss.cc return string(reinterpret_cast<const char*>(cert_handle->derCert.data), cert_handle 330 chrome/common/net/x509_certificate_model_nss.cc cert_handle->derCert.len); cert_handle 384 chrome/common/net/x509_certificate_model_nss.cc string ProcessSecAlgorithmSignature(X509Certificate::OSCertHandle cert_handle) { cert_handle 385 chrome/common/net/x509_certificate_model_nss.cc return ProcessSecAlgorithmInternal(&cert_handle->signature); cert_handle 389 chrome/common/net/x509_certificate_model_nss.cc X509Certificate::OSCertHandle cert_handle) { cert_handle 391 chrome/common/net/x509_certificate_model_nss.cc &cert_handle->subjectPublicKeyInfo.algorithm); cert_handle 395 chrome/common/net/x509_certificate_model_nss.cc X509Certificate::OSCertHandle cert_handle) { cert_handle 397 chrome/common/net/x509_certificate_model_nss.cc &cert_handle->signatureWrap.signatureAlgorithm); cert_handle 400 chrome/common/net/x509_certificate_model_nss.cc string ProcessSubjectPublicKeyInfo(X509Certificate::OSCertHandle cert_handle) { cert_handle 401 chrome/common/net/x509_certificate_model_nss.cc return psm::ProcessSubjectPublicKeyInfo(&cert_handle->subjectPublicKeyInfo); cert_handle 404 chrome/common/net/x509_certificate_model_nss.cc string ProcessRawBitsSignatureWrap(X509Certificate::OSCertHandle cert_handle) { cert_handle 405 chrome/common/net/x509_certificate_model_nss.cc return ProcessRawBits(cert_handle->signatureWrap.signature.data, cert_handle 406 chrome/common/net/x509_certificate_model_nss.cc cert_handle->signatureWrap.signature.len); cert_handle 46 chrome/common/net/x509_certificate_model_openssl.cc std::string GetCertNameOrNickname(X509Certificate::OSCertHandle cert_handle) { cert_handle 51 chrome/common/net/x509_certificate_model_openssl.cc std::string GetNickname(X509Certificate::OSCertHandle cert_handle) { cert_handle 56 chrome/common/net/x509_certificate_model_openssl.cc std::string GetTokenName(X509Certificate::OSCertHandle cert_handle) { cert_handle 61 chrome/common/net/x509_certificate_model_openssl.cc std::string GetVersion(net::X509Certificate::OSCertHandle cert_handle) { cert_handle 62 chrome/common/net/x509_certificate_model_openssl.cc unsigned long version = X509_get_version(cert_handle); cert_handle 78 chrome/common/net/x509_certificate_model_openssl.cc void GetUsageStrings(X509Certificate::OSCertHandle cert_handle, cert_handle 83 chrome/common/net/x509_certificate_model_openssl.cc std::string GetKeyUsageString(X509Certificate::OSCertHandle cert_handle) { cert_handle 89 chrome/common/net/x509_certificate_model_openssl.cc X509Certificate::OSCertHandle cert_handle, cert_handle 91 chrome/common/net/x509_certificate_model_openssl.cc ASN1_INTEGER* num = X509_get_serialNumber(cert_handle); cert_handle 99 chrome/common/net/x509_certificate_model_openssl.cc X509Certificate::OSCertHandle cert_handle, cert_handle 102 chrome/common/net/x509_certificate_model_openssl.cc x509_util::ParsePrincipalValueByNID(X509_get_issuer_name(cert_handle), cert_handle 108 chrome/common/net/x509_certificate_model_openssl.cc X509Certificate::OSCertHandle cert_handle, cert_handle 111 chrome/common/net/x509_certificate_model_openssl.cc x509_util::ParsePrincipalValueByNID(X509_get_issuer_name(cert_handle), cert_handle 117 chrome/common/net/x509_certificate_model_openssl.cc X509Certificate::OSCertHandle cert_handle, cert_handle 120 chrome/common/net/x509_certificate_model_openssl.cc x509_util::ParsePrincipalValueByNID(X509_get_issuer_name(cert_handle), cert_handle 126 chrome/common/net/x509_certificate_model_openssl.cc X509Certificate::OSCertHandle cert_handle, cert_handle 129 chrome/common/net/x509_certificate_model_openssl.cc x509_util::ParsePrincipalValueByNID(X509_get_subject_name(cert_handle), cert_handle 135 chrome/common/net/x509_certificate_model_openssl.cc X509Certificate::OSCertHandle cert_handle, cert_handle 138 chrome/common/net/x509_certificate_model_openssl.cc x509_util::ParsePrincipalValueByNID(X509_get_subject_name(cert_handle), cert_handle 143 chrome/common/net/x509_certificate_model_openssl.cc std::string GetSubjectCommonName(X509Certificate::OSCertHandle cert_handle, cert_handle 146 chrome/common/net/x509_certificate_model_openssl.cc x509_util::ParsePrincipalValueByNID(X509_get_subject_name(cert_handle), cert_handle 151 chrome/common/net/x509_certificate_model_openssl.cc bool GetTimes(X509Certificate::OSCertHandle cert_handle, cert_handle 153 chrome/common/net/x509_certificate_model_openssl.cc return x509_util::ParseDate(X509_get_notBefore(cert_handle), issued) && cert_handle 154 chrome/common/net/x509_certificate_model_openssl.cc x509_util::ParseDate(X509_get_notAfter(cert_handle), expires); cert_handle 157 chrome/common/net/x509_certificate_model_openssl.cc std::string GetTitle(net::X509Certificate::OSCertHandle cert_handle) { cert_handle 162 chrome/common/net/x509_certificate_model_openssl.cc std::string GetIssuerName(net::X509Certificate::OSCertHandle cert_handle) { cert_handle 163 chrome/common/net/x509_certificate_model_openssl.cc return GetKeyValuesFromName(X509_get_issuer_name(cert_handle)); cert_handle 166 chrome/common/net/x509_certificate_model_openssl.cc std::string GetSubjectName(net::X509Certificate::OSCertHandle cert_handle) { cert_handle 167 chrome/common/net/x509_certificate_model_openssl.cc return GetKeyValuesFromName(X509_get_subject_name(cert_handle)); cert_handle 170 chrome/common/net/x509_certificate_model_openssl.cc void GetEmailAddresses(net::X509Certificate::OSCertHandle cert_handle, cert_handle 183 chrome/common/net/x509_certificate_model_openssl.cc std::string GetPkcs11Id(net::X509Certificate::OSCertHandle cert_handle) { cert_handle 191 chrome/common/net/x509_certificate_model_openssl.cc net::X509Certificate::OSCertHandle cert_handle, cert_handle 196 chrome/common/net/x509_certificate_model_openssl.cc std::string HashCertSHA256(net::X509Certificate::OSCertHandle cert_handle) { cert_handle 199 chrome/common/net/x509_certificate_model_openssl.cc int ret = X509_digest(cert_handle, EVP_sha256(), sha256_data, &sha256_size); cert_handle 205 chrome/common/net/x509_certificate_model_openssl.cc std::string HashCertSHA1(net::X509Certificate::OSCertHandle cert_handle) { cert_handle 208 chrome/common/net/x509_certificate_model_openssl.cc int ret = X509_digest(cert_handle, EVP_sha1(), sha1_data, &sha1_size); cert_handle 214 chrome/common/net/x509_certificate_model_openssl.cc void GetCertChainFromCert(net::X509Certificate::OSCertHandle cert_handle, cert_handle 217 chrome/common/net/x509_certificate_model_openssl.cc cert_handles->push_back(net::X509Certificate::DupOSCertHandle(cert_handle)); cert_handle 227 chrome/common/net/x509_certificate_model_openssl.cc std::string GetDerString(net::X509Certificate::OSCertHandle cert_handle) { cert_handle 239 chrome/common/net/x509_certificate_model_openssl.cc net::X509Certificate::OSCertHandle cert_handle) { cert_handle 245 chrome/common/net/x509_certificate_model_openssl.cc net::X509Certificate::OSCertHandle cert_handle) { cert_handle 251 chrome/common/net/x509_certificate_model_openssl.cc net::X509Certificate::OSCertHandle cert_handle) { cert_handle 257 chrome/common/net/x509_certificate_model_openssl.cc net::X509Certificate::OSCertHandle cert_handle) { cert_handle 263 chrome/common/net/x509_certificate_model_openssl.cc net::X509Certificate::OSCertHandle cert_handle) { cert_handle 129 chromeos/cert_loader.cc CERTCertificateStr* cert_handle = cert.os_cert_handle(); cert_handle 131 chromeos/cert_loader.cc PK11_FindKeyByAnyCert(cert_handle, NULL /* wincx */); cert_handle 95 net/cert/cert_verify_proc_android.cc X509Certificate::OSCertHandle cert_handle = cert->os_cert_handle(); cert_handle 101 net/cert/cert_verify_proc_android.cc if (cert_handles.empty() || cert_handles[0] != cert_handle) cert_handle 102 net/cert/cert_verify_proc_android.cc cert_handles.insert(cert_handles.begin(), cert_handle); cert_handle 329 net/cert/cert_verify_proc_nss.cc CERTCertificate* cert_handle, int num_policy_oids, cert_handle 332 net/cert/cert_verify_proc_nss.cc SECOidTag GetFirstCertPolicy(CERTCertificate* cert_handle); cert_handle 347 net/cert/cert_verify_proc_nss.cc SECStatus PKIXVerifyCert(CERTCertificate* cert_handle, cert_handle 452 net/cert/cert_verify_proc_nss.cc SECStatus rv = CERT_PKIXVerifyCert(cert_handle, certificateUsageSSLServer, cert_handle 455 net/cert/cert_verify_proc_nss.cc rv = RetryPKIXVerifyCertWithWorkarounds(cert_handle, num_policy_oids, cert_handle 465 net/cert/cert_verify_proc_nss.cc CERTCertificate* cert_handle, int num_policy_oids, cert_handle 493 net/cert/cert_verify_proc_nss.cc rv = CERT_PKIXVerifyCert(cert_handle, certificateUsageSSLServer, cert_handle 519 net/cert/cert_verify_proc_nss.cc SECOidTag policy = GetFirstCertPolicy(cert_handle); cert_handle 529 net/cert/cert_verify_proc_nss.cc rv = CERT_PKIXVerifyCert(cert_handle, certificateUsageSSLServer, cert_handle 546 net/cert/cert_verify_proc_nss.cc CERTCertificate* cert_handle) { cert_handle 548 net/cert/cert_verify_proc_nss.cc SECStatus rv = CERT_FindCertExtension(cert_handle, cert_handle 562 net/cert/cert_verify_proc_nss.cc SECOidTag GetFirstCertPolicy(CERTCertificate* cert_handle) { cert_handle 563 net/cert/cert_verify_proc_nss.cc ScopedCERTCertificatePolicies policies(DecodeCertPolicies(cert_handle)); cert_handle 633 net/cert/cert_verify_proc_nss.cc CERTCertificate* cert_handle, cert_handle 635 net/cert/cert_verify_proc_nss.cc DCHECK(cert_handle); cert_handle 636 net/cert/cert_verify_proc_nss.cc ScopedCERTCertificatePolicies policies(DecodeCertPolicies(cert_handle)); cert_handle 663 net/cert/cert_verify_proc_nss.cc bool VerifyEV(CERTCertificate* cert_handle, cert_handle 685 net/cert/cert_verify_proc_nss.cc cert_handle, cert_handle 761 net/cert/cert_verify_proc_nss.cc CERTCertificate* cert_handle = scoped_chain.cert_handle(); cert_handle 763 net/cert/cert_verify_proc_nss.cc CERTCertificate* cert_handle = cert->os_cert_handle(); cert_handle 773 net/cert/cert_verify_proc_nss.cc cert_handle, PR_Now(), PR_TRUE); cert_handle 794 net/cert/cert_verify_proc_nss.cc IsEVCandidate(metadata, cert_handle, &ev_policy_oid); cert_handle 808 net/cert/cert_verify_proc_nss.cc SECStatus status = PKIXVerifyCert(cert_handle, cert_handle 826 net/cert/cert_verify_proc_nss.cc status = PKIXVerifyCert(cert_handle, cert_handle 895 net/cert/cert_verify_proc_nss.cc if (VerifyEV(cert_handle, cert_handle 550 net/cert/cert_verify_proc_win.cc PCCERT_CONTEXT cert_handle = cert->os_cert_handle(); cert_handle 551 net/cert/cert_verify_proc_win.cc if (!cert_handle) cert_handle 576 net/cert/cert_verify_proc_win.cc GetCertPoliciesInfo(cert_handle, &policies_info); cert_handle 722 net/cert/cert_verify_proc_win.cc if (CertSubjectCommonNameHasNull(cert_handle)) cert_handle 37 net/cert/ct_objects_extractor_nss.cc explicit NSSCertWrapper(X509Certificate::OSCertHandle cert_handle); cert_handle 43 net/cert/ct_objects_extractor_nss.cc NSSCertWrapper::NSSCertWrapper(X509Certificate::OSCertHandle cert_handle) { cert_handle 45 net/cert/ct_objects_extractor_nss.cc cert.reset(CERT_DupCertificate(cert_handle)); cert_handle 49 net/cert/ct_objects_extractor_nss.cc if (!X509Certificate::GetDEREncoded(cert_handle, &der_data)) cert_handle 57 net/cert/test_root_certs_nss.cc CERTCertificate* cert_handle = nss_certificate.cert_handle(); cert_handle 59 net/cert/test_root_certs_nss.cc CERTCertificate* cert_handle = certificate->os_cert_handle(); cert_handle 64 net/cert/test_root_certs_nss.cc SECStatus rv = CERT_GetCertTrust(cert_handle, &original_trust); cert_handle 83 net/cert/test_root_certs_nss.cc rv = CERT_ChangeCertTrust(CERT_GetDefaultCertDB(), cert_handle, &new_trust); cert_handle 89 net/cert/test_root_certs_nss.cc trust_cache_.push_back(new TrustEntry(cert_handle, original_trust)); cert_handle 71 net/cert/x509_certificate.cc void InsertOrUpdate(X509Certificate::OSCertHandle* cert_handle); cert_handle 78 net/cert/x509_certificate.cc void Remove(X509Certificate::OSCertHandle cert_handle); cert_handle 85 net/cert/x509_certificate.cc Entry() : cert_handle(NULL), ref_count(0) {} cert_handle 87 net/cert/x509_certificate.cc X509Certificate::OSCertHandle cert_handle; cert_handle 116 net/cert/x509_certificate.cc X509Certificate::OSCertHandle* cert_handle) { cert_handle 117 net/cert/x509_certificate.cc DCHECK(cert_handle); cert_handle 119 net/cert/x509_certificate.cc X509Certificate::CalculateFingerprint(*cert_handle); cert_handle 129 net/cert/x509_certificate.cc cache_entry.cert_handle = *cert_handle; cert_handle 135 net/cert/x509_certificate.cc X509Certificate::IsSameOSCert(*cert_handle, pos->second.cert_handle); cert_handle 145 net/cert/x509_certificate.cc old_handle = *cert_handle; cert_handle 150 net/cert/x509_certificate.cc *cert_handle = X509Certificate::DupOSCertHandle(pos->second.cert_handle); cert_handle 163 net/cert/x509_certificate.cc void X509CertificateCache::Remove(X509Certificate::OSCertHandle cert_handle) { cert_handle 165 net/cert/x509_certificate.cc X509Certificate::CalculateFingerprint(cert_handle); cert_handle 172 net/cert/x509_certificate.cc bool is_same_cert = X509Certificate::IsSameOSCert(cert_handle, cert_handle 173 net/cert/x509_certificate.cc pos->second.cert_handle); cert_handle 181 net/cert/x509_certificate.cc X509Certificate::FreeOSCertHandle(pos->second.cert_handle); cert_handle 189 net/cert/x509_certificate.cc void InsertOrUpdateCache(X509Certificate::OSCertHandle* cert_handle) { cert_handle 191 net/cert/x509_certificate.cc g_x509_certificate_cache.Pointer()->InsertOrUpdate(cert_handle); cert_handle 196 net/cert/x509_certificate.cc void RemoveFromCache(X509Certificate::OSCertHandle cert_handle) { cert_handle 198 net/cert/x509_certificate.cc g_x509_certificate_cache.Pointer()->Remove(cert_handle); cert_handle 252 net/cert/x509_certificate.cc OSCertHandle cert_handle, cert_handle 254 net/cert/x509_certificate.cc DCHECK(cert_handle); cert_handle 255 net/cert/x509_certificate.cc return new X509Certificate(cert_handle, intermediates); cert_handle 295 net/cert/x509_certificate.cc OSCertHandle cert_handle = CreateOSCertHandleFromBytes(data, length); cert_handle 296 net/cert/x509_certificate.cc if (!cert_handle) cert_handle 299 net/cert/x509_certificate.cc X509Certificate* cert = CreateFromHandle(cert_handle, OSCertHandles()); cert_handle 300 net/cert/x509_certificate.cc FreeOSCertHandle(cert_handle); cert_handle 327 net/cert/x509_certificate.cc OSCertHandle cert_handle = ReadOSCertHandleFromPickle(pickle_iter); cert_handle 328 net/cert/x509_certificate.cc if (!cert_handle) cert_handle 335 net/cert/x509_certificate.cc FreeOSCertHandle(cert_handle); cert_handle 364 net/cert/x509_certificate.cc FreeOSCertHandle(cert_handle); cert_handle 382 net/cert/x509_certificate.cc cert = CreateFromHandle(cert_handle, intermediates); cert_handle 383 net/cert/x509_certificate.cc FreeOSCertHandle(cert_handle); cert_handle 685 net/cert/x509_certificate.cc bool X509Certificate::GetPEMEncoded(OSCertHandle cert_handle, cert_handle 688 net/cert/x509_certificate.cc if (!GetDEREncoded(cert_handle, &der_encoded)) cert_handle 709 net/cert/x509_certificate.cc X509Certificate::X509Certificate(OSCertHandle cert_handle, cert_handle 711 net/cert/x509_certificate.cc : cert_handle_(DupOSCertHandle(cert_handle)) { cert_handle 142 net/cert/x509_certificate.h static X509Certificate* CreateFromHandle(OSCertHandle cert_handle, cert_handle 324 net/cert/x509_certificate.h static bool GetDEREncoded(OSCertHandle cert_handle, cert_handle 335 net/cert/x509_certificate.h static bool GetPEMEncoded(OSCertHandle cert_handle, cert_handle 348 net/cert/x509_certificate.h static void GetPublicKeyInfo(OSCertHandle cert_handle, cert_handle 385 net/cert/x509_certificate.h static OSCertHandle DupOSCertHandle(OSCertHandle cert_handle); cert_handle 388 net/cert/x509_certificate.h static void FreeOSCertHandle(OSCertHandle cert_handle); cert_handle 392 net/cert/x509_certificate.h static SHA1HashValue CalculateFingerprint(OSCertHandle cert_handle); cert_handle 408 net/cert/x509_certificate.h X509Certificate(OSCertHandle cert_handle, cert_handle 52 net/cert/x509_certificate_ios.cc bool IsValidOSCertHandle(SecCertificateRef cert_handle) { cert_handle 54 net/cert/x509_certificate_ios.cc SecCertificateCopySubjectSummary(cert_handle)); cert_handle 61 net/cert/x509_certificate_ios.cc CERTCertificate* cert_handle = nss_cert.cert_handle(); cert_handle 62 net/cert/x509_certificate_ios.cc if (cert_handle) { cert_handle 63 net/cert/x509_certificate_ios.cc x509_util::ParsePrincipal(&cert_handle->subject, &subject_); cert_handle 64 net/cert/x509_certificate_ios.cc x509_util::ParsePrincipal(&cert_handle->issuer, &issuer_); cert_handle 65 net/cert/x509_certificate_ios.cc x509_util::ParseDate(&cert_handle->validity.notBefore, &valid_start_); cert_handle 66 net/cert/x509_certificate_ios.cc x509_util::ParseDate(&cert_handle->validity.notAfter, &valid_expiry_); cert_handle 67 net/cert/x509_certificate_ios.cc serial_number_ = x509_util::ParseSerialNumber(cert_handle); cert_handle 92 net/cert/x509_certificate_ios.cc CERTCertificate* cert_handle = nss_cert.cert_handle(); cert_handle 93 net/cert/x509_certificate_ios.cc if (!cert_handle) { cert_handle 100 net/cert/x509_certificate_ios.cc x509_util::GetSubjectAltName(cert_handle, dns_names, ip_addrs); cert_handle 104 net/cert/x509_certificate_ios.cc bool X509Certificate::GetDEREncoded(OSCertHandle cert_handle, cert_handle 106 net/cert/x509_certificate_ios.cc ScopedCFTypeRef<CFDataRef> der_data(SecCertificateCopyData(cert_handle)); cert_handle 138 net/cert/x509_certificate_ios.cc OSCertHandle cert_handle = SecCertificateCreateWithData(NULL, cert_data); cert_handle 139 net/cert/x509_certificate_ios.cc if (!cert_handle) cert_handle 141 net/cert/x509_certificate_ios.cc if (!IsValidOSCertHandle(cert_handle)) { cert_handle 142 net/cert/x509_certificate_ios.cc CFRelease(cert_handle); cert_handle 145 net/cert/x509_certificate_ios.cc return cert_handle; cert_handle 165 net/cert/x509_certificate_ios.cc void X509Certificate::FreeOSCertHandle(OSCertHandle cert_handle) { cert_handle 166 net/cert/x509_certificate_ios.cc CFRelease(cert_handle); cert_handle 215 net/cert/x509_certificate_ios.cc bool X509Certificate::WriteOSCertHandleToPickle(OSCertHandle cert_handle, cert_handle 217 net/cert/x509_certificate_ios.cc ScopedCFTypeRef<CFDataRef> cert_data(SecCertificateCopyData(cert_handle)); cert_handle 227 net/cert/x509_certificate_ios.cc void X509Certificate::GetPublicKeyInfo(OSCertHandle cert_handle, cert_handle 230 net/cert/x509_certificate_ios.cc x509_util_ios::NSSCertificate nss_cert(cert_handle); cert_handle 231 net/cert/x509_certificate_ios.cc x509_util::GetPublicKeyInfo(nss_cert.cert_handle(), size_bits, type); cert_handle 46 net/cert/x509_certificate_mac.cc bool IsCertIssuerInEncodedList(X509Certificate::OSCertHandle cert_handle, cert_handle 49 net/cert/x509_certificate_mac.cc if (cached_cert.Init(cert_handle) != CSSM_OK) cert_handle 137 net/cert/x509_certificate_mac.cc bool IsValidOSCertHandle(SecCertificateRef cert_handle) { cert_handle 139 net/cert/x509_certificate_mac.cc OSStatus status = SecCertificateGetSubject(cert_handle, &sanity_check); cert_handle 274 net/cert/x509_certificate_mac.cc bool X509Certificate::GetDEREncoded(X509Certificate::OSCertHandle cert_handle, cert_handle 277 net/cert/x509_certificate_mac.cc if (SecCertificateGetData(cert_handle, &der_data) != noErr) cert_handle 306 net/cert/x509_certificate_mac.cc OSCertHandle cert_handle = NULL; cert_handle 310 net/cert/x509_certificate_mac.cc &cert_handle); cert_handle 313 net/cert/x509_certificate_mac.cc if (!IsValidOSCertHandle(cert_handle)) { cert_handle 314 net/cert/x509_certificate_mac.cc CFRelease(cert_handle); cert_handle 317 net/cert/x509_certificate_mac.cc return cert_handle; cert_handle 352 net/cert/x509_certificate_mac.cc void X509Certificate::FreeOSCertHandle(OSCertHandle cert_handle) { cert_handle 353 net/cert/x509_certificate_mac.cc CFRelease(cert_handle); cert_handle 459 net/cert/x509_certificate_mac.cc bool X509Certificate::WriteOSCertHandleToPickle(OSCertHandle cert_handle, cert_handle 462 net/cert/x509_certificate_mac.cc OSStatus status = SecCertificateGetData(cert_handle, &cert_data); cert_handle 471 net/cert/x509_certificate_mac.cc void X509Certificate::GetPublicKeyInfo(OSCertHandle cert_handle, cert_handle 479 net/cert/x509_certificate_mac.cc OSStatus status = SecCertificateCopyPublicKey(cert_handle, &key); cert_handle 46 net/cert/x509_certificate_nss.cc OSCertHandle cert_handle = CreateOSCertHandleFromBytesWithNickname(data, cert_handle 49 net/cert/x509_certificate_nss.cc if (!cert_handle) cert_handle 52 net/cert/x509_certificate_nss.cc X509Certificate* cert = CreateFromHandle(cert_handle, OSCertHandles()); cert_handle 53 net/cert/x509_certificate_nss.cc FreeOSCertHandle(cert_handle); cert_handle 142 net/cert/x509_certificate_nss.cc bool X509Certificate::GetDEREncoded(X509Certificate::OSCertHandle cert_handle, cert_handle 144 net/cert/x509_certificate_nss.cc if (!cert_handle->derCert.len) cert_handle 146 net/cert/x509_certificate_nss.cc encoded->assign(reinterpret_cast<char*>(cert_handle->derCert.data), cert_handle 147 net/cert/x509_certificate_nss.cc cert_handle->derCert.len); cert_handle 202 net/cert/x509_certificate_nss.cc OSCertHandle cert_handle) { cert_handle 203 net/cert/x509_certificate_nss.cc return CERT_DupCertificate(cert_handle); cert_handle 207 net/cert/x509_certificate_nss.cc void X509Certificate::FreeOSCertHandle(OSCertHandle cert_handle) { cert_handle 208 net/cert/x509_certificate_nss.cc CERT_DestroyCertificate(cert_handle); cert_handle 255 net/cert/x509_certificate_nss.cc bool X509Certificate::WriteOSCertHandleToPickle(OSCertHandle cert_handle, cert_handle 258 net/cert/x509_certificate_nss.cc reinterpret_cast<const char*>(cert_handle->derCert.data), cert_handle 259 net/cert/x509_certificate_nss.cc cert_handle->derCert.len); cert_handle 263 net/cert/x509_certificate_nss.cc void X509Certificate::GetPublicKeyInfo(OSCertHandle cert_handle, cert_handle 266 net/cert/x509_certificate_nss.cc x509_util::GetPublicKeyInfo(cert_handle, size_bits, type); cert_handle 245 net/cert/x509_certificate_openssl.cc OSCertHandle cert_handle) { cert_handle 246 net/cert/x509_certificate_openssl.cc DCHECK(cert_handle); cert_handle 252 net/cert/x509_certificate_openssl.cc CRYPTO_add(&cert_handle->references, 1, CRYPTO_LOCK_X509); cert_handle 253 net/cert/x509_certificate_openssl.cc return cert_handle; cert_handle 257 net/cert/x509_certificate_openssl.cc void X509Certificate::FreeOSCertHandle(OSCertHandle cert_handle) { cert_handle 261 net/cert/x509_certificate_openssl.cc X509_free(cert_handle); cert_handle 382 net/cert/x509_certificate_openssl.cc bool X509Certificate::GetDEREncoded(X509Certificate::OSCertHandle cert_handle, cert_handle 385 net/cert/x509_certificate_openssl.cc if (!GetDERAndCacheIfNeeded(cert_handle, &der_cache)) cert_handle 422 net/cert/x509_certificate_openssl.cc bool X509Certificate::WriteOSCertHandleToPickle(OSCertHandle cert_handle, cert_handle 425 net/cert/x509_certificate_openssl.cc if (!GetDERAndCacheIfNeeded(cert_handle, &der_cache)) cert_handle 434 net/cert/x509_certificate_openssl.cc void X509Certificate::GetPublicKeyInfo(OSCertHandle cert_handle, cert_handle 441 net/cert/x509_certificate_openssl.cc X509_get_pubkey(cert_handle)); cert_handle 236 net/cert/x509_certificate_win.cc bool X509Certificate::GetDEREncoded(X509Certificate::OSCertHandle cert_handle, cert_handle 238 net/cert/x509_certificate_win.cc if (!cert_handle->pbCertEncoded || !cert_handle->cbCertEncoded) cert_handle 240 net/cert/x509_certificate_win.cc encoded->assign(reinterpret_cast<char*>(cert_handle->pbCertEncoded), cert_handle 241 net/cert/x509_certificate_win.cc cert_handle->cbCertEncoded); cert_handle 258 net/cert/x509_certificate_win.cc OSCertHandle cert_handle = NULL; cert_handle 261 net/cert/x509_certificate_win.cc length, CERT_STORE_ADD_USE_EXISTING, &cert_handle)) cert_handle 264 net/cert/x509_certificate_win.cc return cert_handle; cert_handle 290 net/cert/x509_certificate_win.cc OSCertHandle cert_handle) { cert_handle 291 net/cert/x509_certificate_win.cc return CertDuplicateCertificateContext(cert_handle); cert_handle 295 net/cert/x509_certificate_win.cc void X509Certificate::FreeOSCertHandle(OSCertHandle cert_handle) { cert_handle 296 net/cert/x509_certificate_win.cc CertFreeCertificateContext(cert_handle); cert_handle 360 net/cert/x509_certificate_win.cc OSCertHandle cert_handle = NULL; cert_handle 364 net/cert/x509_certificate_win.cc NULL, reinterpret_cast<const void **>(&cert_handle))) { cert_handle 369 net/cert/x509_certificate_win.cc bool ok = GetDEREncoded(cert_handle, &encoded); cert_handle 370 net/cert/x509_certificate_win.cc FreeOSCertHandle(cert_handle); cert_handle 371 net/cert/x509_certificate_win.cc cert_handle = NULL; cert_handle 374 net/cert/x509_certificate_win.cc cert_handle = CreateOSCertHandleFromBytes(encoded.data(), encoded.size()); cert_handle 375 net/cert/x509_certificate_win.cc return cert_handle; cert_handle 379 net/cert/x509_certificate_win.cc bool X509Certificate::WriteOSCertHandleToPickle(OSCertHandle cert_handle, cert_handle 382 net/cert/x509_certificate_win.cc reinterpret_cast<char*>(cert_handle->pbCertEncoded), cert_handle 383 net/cert/x509_certificate_win.cc cert_handle->cbCertEncoded); cert_handle 387 net/cert/x509_certificate_win.cc void X509Certificate::GetPublicKeyInfo(OSCertHandle cert_handle, cert_handle 395 net/cert/x509_certificate_win.cc cert_handle->pCertInfo->SubjectPublicKeyInfo.Algorithm.pszObjId, cert_handle 405 net/cert/x509_certificate_win.cc &cert_handle->pCertInfo->SubjectPublicKeyInfo); cert_handle 49 net/cert/x509_util_ios.cc SecCertificateRef cert_handle) { cert_handle 50 net/cert/x509_util_ios.cc ScopedCFTypeRef<CFDataRef> cert_data(SecCertificateCopyData(cert_handle)); cert_handle 64 net/cert/x509_util_ios.cc CERTCertificate* cert_handle, cert_handle 67 net/cert/x509_util_ios.cc CreateOSCertHandleFromNSSHandle(cert_handle)); cert_handle 101 net/cert/x509_util_ios.cc NSSCertificate::NSSCertificate(SecCertificateRef cert_handle) { cert_handle 102 net/cert/x509_util_ios.cc nss_cert_handle_ = CreateNSSCertHandleFromOSHandle(cert_handle); cert_handle 103 net/cert/x509_util_ios.cc DLOG_IF(INFO, cert_handle && !nss_cert_handle_) cert_handle 27 net/cert/x509_util_ios.h CERTCertificate* CreateNSSCertHandleFromOSHandle(SecCertificateRef cert_handle); cert_handle 39 net/cert/x509_util_ios.h CERTCertificate* cert_handle, cert_handle 49 net/cert/x509_util_ios.h explicit NSSCertificate(SecCertificateRef cert_handle); cert_handle 51 net/cert/x509_util_ios.h CERTCertificate* cert_handle() const; cert_handle 63 net/cert/x509_util_ios.h CERTCertificate* cert_handle() const; cert_handle 313 net/cert/x509_util_nss.cc void* cert_handle; cert_handle 314 net/cert/x509_util_nss.cc if ((cert_handle = CERT_StartCertExtensions(cert)) == NULL) { cert_handle 340 net/cert/x509_util_nss.cc cert_handle, cert_handle 351 net/cert/x509_util_nss.cc if (CERT_FinishExtensions(cert_handle) != SECSuccess){ cert_handle 447 net/cert/x509_util_nss.cc void GetSubjectAltName(CERTCertificate* cert_handle, cert_handle 456 net/cert/x509_util_nss.cc SECStatus rv = CERT_FindCertExtension(cert_handle, cert_handle 40 net/cert/x509_util_nss.h void GetSubjectAltName(CERTCertificate* cert_handle, cert_handle 38 net/ssl/client_cert_store_mac.cc OSStatus CopyCertChain(SecCertificateRef cert_handle, cert_handle 40 net/ssl/client_cert_store_mac.cc DCHECK(cert_handle); cert_handle 52 net/ssl/client_cert_store_mac.cc NULL, const_cast<const void**>(reinterpret_cast<void**>(&cert_handle)), cert_handle 89 net/ssl/client_cert_store_mac.cc X509Certificate::OSCertHandle cert_handle = (*cert)->os_cert_handle(); cert_handle 91 net/ssl/client_cert_store_mac.cc OSStatus result = CopyCertChain(cert_handle, &cert_chain); cert_handle 109 net/ssl/client_cert_store_mac.cc cert_handle, intermediates)); cert_handle 228 net/ssl/client_cert_store_mac.cc SecCertificateRef cert_handle; cert_handle 229 net/ssl/client_cert_store_mac.cc err = SecIdentityCopyCertificate(identity, &cert_handle); cert_handle 232 net/ssl/client_cert_store_mac.cc ScopedCFTypeRef<SecCertificateRef> scoped_cert_handle(cert_handle); cert_handle 235 net/ssl/client_cert_store_mac.cc X509Certificate::CreateFromHandle(cert_handle,