/external/chromium/chrome/common/net/ |
D | x509_certificate_model_nss.cc | 101 string GetCertNameOrNickname(X509Certificate::OSCertHandle cert_handle) { in GetCertNameOrNickname() argument 102 string name = ProcessIDN(Stringize(CERT_GetCommonName(&cert_handle->subject), in GetCertNameOrNickname() 106 return GetNickname(cert_handle); in GetCertNameOrNickname() 109 string GetNickname(X509Certificate::OSCertHandle cert_handle) { in GetNickname() argument 111 if (cert_handle->nickname) { in GetNickname() 112 name = cert_handle->nickname; in GetNickname() 122 string GetTokenName(X509Certificate::OSCertHandle cert_handle) { in GetTokenName() argument 123 return psm::GetCertTokenName(cert_handle); in GetTokenName() 126 string GetVersion(X509Certificate::OSCertHandle cert_handle) { in GetVersion() argument 128 if (SEC_ASN1DecodeInteger(&cert_handle->version, &version) == SECSuccess && in GetVersion() [all …]
|
D | x509_certificate_model_openssl.cc | 46 std::string GetCertNameOrNickname(X509Certificate::OSCertHandle cert_handle) { in GetCertNameOrNickname() argument 51 std::string GetNickname(X509Certificate::OSCertHandle cert_handle) { in GetNickname() argument 56 std::string GetTokenName(X509Certificate::OSCertHandle cert_handle) { in GetTokenName() argument 61 std::string GetVersion(net::X509Certificate::OSCertHandle cert_handle) { in GetVersion() argument 62 unsigned long version = X509_get_version(cert_handle); in GetVersion() 78 void GetUsageStrings(X509Certificate::OSCertHandle cert_handle, in GetUsageStrings() argument 83 std::string GetKeyUsageString(X509Certificate::OSCertHandle cert_handle) { in GetKeyUsageString() argument 89 X509Certificate::OSCertHandle cert_handle, in GetSerialNumberHexified() argument 91 ASN1_INTEGER* num = X509_get_serialNumber(cert_handle); in GetSerialNumberHexified() 99 X509Certificate::OSCertHandle cert_handle, in GetIssuerCommonName() argument [all …]
|
D | x509_certificate_model.h | 21 net::X509Certificate::OSCertHandle cert_handle); 23 std::string GetNickname(net::X509Certificate::OSCertHandle cert_handle); 25 std::string GetTokenName(net::X509Certificate::OSCertHandle cert_handle); 27 std::string GetVersion(net::X509Certificate::OSCertHandle cert_handle); 29 net::CertType GetType(net::X509Certificate::OSCertHandle cert_handle); 31 std::string GetEmailAddress(net::X509Certificate::OSCertHandle cert_handle); 34 net::X509Certificate::OSCertHandle cert_handle, 37 std::string GetKeyUsageString(net::X509Certificate::OSCertHandle cert_handle); 40 net::X509Certificate::OSCertHandle cert_handle, 44 net::X509Certificate::OSCertHandle cert_handle, [all …]
|
/external/chromium/chrome/browser/chromeos/options/ |
D | wifi_config_model.cc | 72 net::X509Certificate::OSCertHandle cert_handle = cert->os_cert_handle(); in UpdateCertificates() local 73 net::CertType type = x509_certificate_model::GetType(cert_handle); in UpdateCertificates() 81 x509_certificate_model::GetTokenName(cert_handle); in UpdateCertificates() 122 net::X509Certificate::OSCertHandle cert_handle = cert->os_cert_handle(); in GetUserCertPkcs11Id() local 123 return x509_certificate_model::GetPkcs11Id(cert_handle); in GetUserCertPkcs11Id() 130 net::X509Certificate::OSCertHandle cert_handle = cert->os_cert_handle(); in GetUserCertIndex() local 131 std::string id = x509_certificate_model::GetPkcs11Id(cert_handle); in GetUserCertIndex() 154 net::X509Certificate::OSCertHandle cert_handle = cert->os_cert_handle(); in GetServerCaCertNssNickname() local 155 return x509_certificate_model::GetNickname(cert_handle); in GetServerCaCertNssNickname() 163 net::X509Certificate::OSCertHandle cert_handle = cert->os_cert_handle(); in GetServerCaCertIndex() local [all …]
|
/external/chromium/net/base/ |
D | x509_certificate.cc | 152 OSCertHandle cert_handle, in CreateFromHandle() argument 155 DCHECK(cert_handle); in CreateFromHandle() 161 cache->Find(CalculateFingerprint(cert_handle)); in CreateFromHandle() 175 X509Certificate* cert = new X509Certificate(cert_handle, source, in CreateFromHandle() 183 X509Certificate::OSCertHandle cert_handle = NULL; in CreateOSCert() local 187 CERT_STORE_ADD_USE_EXISTING, &cert_handle); in CreateOSCert() 188 return ok ? cert_handle : NULL; in CreateOSCert() 224 OSCertHandle cert_handle = CreateOSCertHandleFromBytes(data, length); in CreateFromBytes() local 225 if (!cert_handle) in CreateFromBytes() 228 X509Certificate* cert = CreateFromHandle(cert_handle, in CreateFromBytes() [all …]
|
D | x509_certificate_nss.cc | 284 void GetCertSubjectAltNamesOfType(X509Certificate::OSCertHandle cert_handle, in GetCertSubjectAltNamesOfType() argument 294 SECStatus rv = CERT_FindCertExtension(cert_handle, in GetCertSubjectAltNamesOfType() 326 X509Certificate::OSCertHandle cert_handle, int num_policy_oids, 328 SECOidTag GetFirstCertPolicy(X509Certificate::OSCertHandle cert_handle); 335 SECStatus PKIXVerifyCert(X509Certificate::OSCertHandle cert_handle, in PKIXVerifyCert() argument 361 if (strcmp(cert_handle->issuerName, kMultipleKeyCA[i]) == 0) { in PKIXVerifyCert() 444 SECStatus rv = CERT_PKIXVerifyCert(cert_handle, certificateUsageSSLServer, in PKIXVerifyCert() 447 rv = RetryPKIXVerifyCertWithWorkarounds(cert_handle, num_policy_oids, in PKIXVerifyCert() 457 X509Certificate::OSCertHandle cert_handle, int num_policy_oids, in RetryPKIXVerifyCertWithWorkarounds() argument 483 rv = CERT_PKIXVerifyCert(cert_handle, certificateUsageSSLServer, in RetryPKIXVerifyCertWithWorkarounds() [all …]
|
D | x509_certificate_mac.cc | 143 OSStatus GetCertFields(X509Certificate::OSCertHandle cert_handle, in GetCertFields() argument 145 DCHECK(cert_handle); in GetCertFields() 149 OSStatus status = SecCertificateGetData(cert_handle, &cert_data); in GetCertFields() 153 status = SecCertificateGetCLHandle(cert_handle, &fields->cl_handle); in GetCertFields() 164 void GetCertGeneralNamesForOID(X509Certificate::OSCertHandle cert_handle, in GetCertGeneralNamesForOID() argument 174 OSStatus status = GetCertFields(cert_handle, &fields); in GetCertGeneralNamesForOID() 205 void GetCertDateForOID(X509Certificate::OSCertHandle cert_handle, in GetCertDateForOID() argument 210 OSStatus status = GetCertFields(cert_handle, &fields); in GetCertDateForOID() 237 std::string GetCertSerialNumber(X509Certificate::OSCertHandle cert_handle) { in GetCertSerialNumber() argument 239 OSStatus status = GetCertFields(cert_handle, &fields); in GetCertSerialNumber() [all …]
|
D | x509_certificate_win.cc | 599 PCCERT_CONTEXT cert_handle = in CreateSelfSigned() local 603 DCHECK(cert_handle) << "Failed to create self-signed certificate: " in CreateSelfSigned() 605 if (!cert_handle) in CreateSelfSigned() 608 X509Certificate* cert = CreateFromHandle(cert_handle, in CreateSelfSigned() 611 FreeOSCertHandle(cert_handle); in CreateSelfSigned() 951 OSCertHandle cert_handle = NULL; in CreateOSCertHandleFromBytes() local 957 &cert_handle)) in CreateOSCertHandleFromBytes() 960 return cert_handle; in CreateOSCertHandleFromBytes() 987 OSCertHandle cert_handle) { in DupOSCertHandle() argument 988 return CertDuplicateCertificateContext(cert_handle); in DupOSCertHandle() [all …]
|
D | x509_certificate.h | 139 static X509Certificate* CreateFromHandle(OSCertHandle cert_handle, 343 static OSCertHandle DupOSCertHandle(OSCertHandle cert_handle); 346 static void FreeOSCertHandle(OSCertHandle cert_handle); 358 X509Certificate(OSCertHandle cert_handle, Source source, 384 static SHA1Fingerprint CalculateFingerprint(OSCertHandle cert_handle);
|
D | x509_certificate_openssl.cc | 293 OSCertHandle cert_handle) { in DupOSCertHandle() argument 294 DCHECK(cert_handle); in DupOSCertHandle() 300 CRYPTO_add(&cert_handle->references, 1, CRYPTO_LOCK_X509); in DupOSCertHandle() 301 return cert_handle; in DupOSCertHandle() 305 void X509Certificate::FreeOSCertHandle(OSCertHandle cert_handle) { in FreeOSCertHandle() argument 309 X509_free(cert_handle); in FreeOSCertHandle() 536 bool X509Certificate::WriteCertHandleToPickle(OSCertHandle cert_handle, in WriteCertHandleToPickle() argument 539 if (!GetDERAndCacheIfNeeded(cert_handle, &der_cache)) in WriteCertHandleToPickle()
|