/external/chromium/net/base/ |
D | x509_certificate_unittest.cc | 105 X509Certificate::Format format; 111 { "google.single.der", X509Certificate::FORMAT_SINGLE_CERTIFICATE, 115 { "google.single.pem", X509Certificate::FORMAT_SINGLE_CERTIFICATE, 120 { "google.single.pem", X509Certificate::FORMAT_PEM_CERT_SEQUENCE, 125 { "google.chain.pem", X509Certificate::FORMAT_PEM_CERT_SEQUENCE, 131 { "google.binary.p7b", X509Certificate::FORMAT_PKCS7, 137 { "google.pem_cert.p7b", X509Certificate::FORMAT_PKCS7, 143 { "google.pem_pkcs7.p7b", X509Certificate::FORMAT_PKCS7, 148 { "google.single.der", X509Certificate::FORMAT_AUTO, 151 { "google.single.pem", X509Certificate::FORMAT_AUTO, [all …]
|
D | x509_certificate.cc | 40 const X509Certificate::Format kFormatDecodePriority[] = { 41 X509Certificate::FORMAT_SINGLE_CERTIFICATE, 42 X509Certificate::FORMAT_PKCS7 60 void Insert(X509Certificate* cert); 61 scoped_refptr<X509Certificate> Find(const SHA1Fingerprint& fingerprint); 64 typedef std::map<SHA1Fingerprint, scoped_refptr<X509Certificate>, SHA1FingerprintLessThan> 88 void X509CertificateCache::Insert(X509Certificate* cert) { in Insert() 115 scoped_refptr<X509Certificate> X509CertificateCache::Find( in Find() 134 bool X509Certificate::LessThan::operator()(X509Certificate* lhs, in operator ()() 135 X509Certificate* rhs) const { in operator ()() [all …]
|
D | cert_database.h | 21 class X509Certificate; variable 22 typedef std::vector<scoped_refptr<X509Certificate> > CertificateList; 46 virtual void OnUserCertAdded(const X509Certificate* cert) {} in OnUserCertAdded() 50 virtual void OnCertTrustChanged(const X509Certificate* cert) {} in OnCertTrustChanged() 62 ImportCertFailure(X509Certificate* cert, int err); 65 scoped_refptr<X509Certificate> certificate; 90 int CheckUserCert(X509Certificate* cert); 95 int AddUserCert(X509Certificate* cert); 131 X509Certificate* FindRootInList(const CertificateList& certificates) const; 156 unsigned int GetCertTrust(const X509Certificate* cert, CertType type) const; [all …]
|
D | ssl_client_auth_cache_unittest.cc | 20 scoped_refptr<X509Certificate> cert1( in TEST() 21 new X509Certificate("foo1", "CA", start_date, expiration_date)); in TEST() 24 scoped_refptr<X509Certificate> cert2( in TEST() 25 new X509Certificate("foo2", "CA", start_date, expiration_date)); in TEST() 28 scoped_refptr<X509Certificate> cert3( in TEST() 29 new X509Certificate("foo3", "CA", start_date, expiration_date)); in TEST() 31 scoped_refptr<X509Certificate> cached_cert; in TEST() 86 scoped_refptr<X509Certificate> cert1( in TEST() 87 new X509Certificate("foo", "CA", start_date, expiration_date)); in TEST() 90 scoped_refptr<X509Certificate> cert2( in TEST() [all …]
|
D | x509_certificate_openssl.cc | 35 X509Certificate::OSCertHandles* handles) { in CreateOSCertHandlesFromPKCS7Bytes() 54 X509Certificate::DupOSCertHandle(sk_X509_value(certs, i)); in CreateOSCertHandlesFromPKCS7Bytes() 72 void ParsePrincipal(X509Certificate::OSCertHandle cert, in ParsePrincipal() 97 void ParseSubjectAltNames(X509Certificate::OSCertHandle cert, in ParseSubjectAltNames() 244 DERCache* SetDERCache(X509Certificate::OSCertHandle cert, in SetDERCache() 266 bool GetDERAndCacheIfNeeded(X509Certificate::OSCertHandle cert, in GetDERAndCacheIfNeeded() 292 X509Certificate::OSCertHandle X509Certificate::DupOSCertHandle( in DupOSCertHandle() 305 void X509Certificate::FreeOSCertHandle(OSCertHandle cert_handle) { in FreeOSCertHandle() 312 void X509Certificate::Initialize() { in Initialize() 333 void X509Certificate::ResetCertStore() { in ResetCertStore() [all …]
|
D | x509_certificate.h | 49 typedef std::vector<scoped_refptr<X509Certificate> > CertificateList; 52 class NET_EXPORT X509Certificate : public base::RefCountedThreadSafe<X509Certificate> { 75 bool operator() (X509Certificate* lhs, X509Certificate* rhs) const; 130 X509Certificate(const std::string& subject, const std::string& issuer, 140 static scoped_refptr<X509Certificate> CreateFromHandle(OSCertHandle cert_handle, 150 static scoped_refptr<X509Certificate> CreateFromDERCertChain( 157 static scoped_refptr<X509Certificate> CreateFromBytes(const char* data, int length); 165 static scoped_refptr<X509Certificate> CreateFromPickle(const Pickle& pickle, 195 static scoped_refptr<X509Certificate> CreateSelfSigned(crypto::RSAPrivateKey* key, 233 bool Equals(const X509Certificate* other) const; [all …]
|
D | cert_database_nss.cc | 34 int CertDatabase::CheckUserCert(X509Certificate* cert_obj) { in CheckUserCert() 58 int CertDatabase::AddUserCert(X509Certificate* cert_obj) { in AddUserCert() 104 certs->push_back(X509Certificate::CreateFromHandle( in ListCerts() 106 X509Certificate::SOURCE_LONE_CERT_IMPORT, in ListCerts() 107 X509Certificate::OSCertHandles())); in ListCerts() 176 X509Certificate* CertDatabase::FindRootInList( in FindRootInList() 183 X509Certificate* cert0 = certificates[0]; in FindRootInList() 184 X509Certificate* cert1 = certificates[1]; in FindRootInList() 185 X509Certificate* certn_2 = certificates[certificates.size() - 2]; in FindRootInList() 186 X509Certificate* certn_1 = certificates[certificates.size() - 1]; in FindRootInList() [all …]
|
D | x509_certificate_nss.cc | 284 void GetCertSubjectAltNamesOfType(X509Certificate::OSCertHandle 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() 457 X509Certificate::OSCertHandle cert_handle, int num_policy_oids, in RetryPKIXVerifyCertWithWorkarounds() 535 X509Certificate::OSCertHandle cert_handle) { in DecodeCertPolicies() 550 SECOidTag GetFirstCertPolicy(X509Certificate::OSCertHandle cert_handle) { in GetFirstCertPolicy() 576 bool CheckCertPolicies(X509Certificate::OSCertHandle cert_handle, in CheckCertPolicies() 600 X509Certificate::OSCertHandles* results = in CollectCertsCallback() 601 reinterpret_cast<X509Certificate::OSCertHandles*>(arg); in CollectCertsCallback() [all …]
|
D | cert_database_nss_unittest.cc | 55 X509Certificate::CreateFromHandle( in ListCertsInSlot() 57 X509Certificate::SOURCE_LONE_CERT_IMPORT, in ListCertsInSlot() 58 X509Certificate::OSCertHandles())); in ListCertsInSlot() 63 std::sort(result.begin(), result.end(), X509Certificate::LessThan()); in ListCertsInSlot() 90 X509Certificate* cert = X509Certificate::CreateFromBytes( in ReadCertIntoList() 173 scoped_refptr<X509Certificate> cert(cert_list[0]); in TEST_F() 190 X509Certificate::CreateCertificateListFromBytes( in TEST_F() 191 cert_data.data(), cert_data.size(), X509Certificate::FORMAT_AUTO); in TEST_F() 204 scoped_refptr<X509Certificate> cert(cert_list[0]); in TEST_F() 222 X509Certificate::CreateCertificateListFromBytes( in TEST_F() [all …]
|
D | ssl_client_auth_cache.h | 17 class X509Certificate; variable 37 scoped_refptr<X509Certificate>* certificate); 43 void Add(const std::string& server, X509Certificate* client_cert); 49 virtual void OnUserCertAdded(const X509Certificate* cert); 53 typedef scoped_refptr<X509Certificate> AuthCacheValue;
|
D | x509_certificate_mac.cc | 143 OSStatus GetCertFields(X509Certificate::OSCertHandle cert_handle, in GetCertFields() 164 void GetCertGeneralNamesForOID(X509Certificate::OSCertHandle cert_handle, in GetCertGeneralNamesForOID() 205 void GetCertDateForOID(X509Certificate::OSCertHandle cert_handle, in GetCertDateForOID() 237 std::string GetCertSerialNumber(X509Certificate::OSCertHandle cert_handle) { in GetCertSerialNumber() 329 if (flags & X509Certificate::VERIFY_REV_CHECKING_ENABLED) { in CreateTrustPolicies() 380 OSStatus result = X509Certificate::CreateSSLClientPolicy(&ssl_policy); in CopyCertChain() 440 X509Certificate::OSCertHandles* output) { in AddCertificatesFromBytes() 603 void X509Certificate::Initialize() { in Initialize() 625 bool X509Certificate::IsIssuedByKnownRoot(CFArrayRef chain) { in IsIssuedByKnownRoot() 631 SHA1Fingerprint hash = X509Certificate::CalculateFingerprint(root_ref); in IsIssuedByKnownRoot() [all …]
|
D | cert_database_openssl.cc | 20 int CertDatabase::CheckUserCert(X509Certificate* cert) { in CheckUserCert() 33 int CertDatabase::AddUserCert(X509Certificate* cert) { in AddUserCert() 78 bool CertDatabase::DeleteCertAndKey(const X509Certificate* cert) { in DeleteCertAndKey() 84 unsigned int CertDatabase::GetCertTrust(const X509Certificate* cert, in GetCertTrust() 91 bool CertDatabase::SetCertTrust(const X509Certificate* cert, in SetCertTrust()
|
D | x509_certificate_win.cc | 421 X509Certificate::OSCertHandles* results) { in AddCertsFromStore() 444 X509Certificate::OSCertHandles ParsePKCS7(const char* data, size_t length) { in ParsePKCS7() 445 X509Certificate::OSCertHandles results; in ParsePKCS7() 496 void X509Certificate::Initialize() { in Initialize() 539 bool X509Certificate::IsIssuedByKnownRoot(PCCERT_CHAIN_CONTEXT chain_context) { in IsIssuedByKnownRoot() 553 X509Certificate* X509Certificate::CreateSelfSigned( in CreateSelfSigned() 608 X509Certificate* cert = CreateFromHandle(cert_handle, in CreateSelfSigned() 615 void X509Certificate::GetDNSNames(std::vector<std::string>* dns_names) const { in GetDNSNames() 662 HCERTSTORE X509Certificate::cert_store() { in cert_store() 666 int X509Certificate::Verify(const std::string& hostname, in Verify() [all …]
|
/external/chromium/chrome/common/net/ |
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 …]
|
D | x509_certificate_model_openssl.cc | 44 using net::X509Certificate; 46 std::string GetCertNameOrNickname(X509Certificate::OSCertHandle cert_handle) { in GetCertNameOrNickname() 51 std::string GetNickname(X509Certificate::OSCertHandle cert_handle) { in GetNickname() 56 std::string GetTokenName(X509Certificate::OSCertHandle cert_handle) { in GetTokenName() 61 std::string GetVersion(net::X509Certificate::OSCertHandle cert_handle) { in GetVersion() 68 net::CertType GetType(X509Certificate::OSCertHandle os_cert) { in GetType() 73 std::string GetEmailAddress(X509Certificate::OSCertHandle os_cert) { in GetEmailAddress() 78 void GetUsageStrings(X509Certificate::OSCertHandle cert_handle, in GetUsageStrings() 83 std::string GetKeyUsageString(X509Certificate::OSCertHandle cert_handle) { in GetKeyUsageString() 89 X509Certificate::OSCertHandle cert_handle, in GetSerialNumberHexified() [all …]
|
D | x509_certificate_model_nss.cc | 98 using net::X509Certificate; 101 string GetCertNameOrNickname(X509Certificate::OSCertHandle cert_handle) { in GetCertNameOrNickname() 109 string GetNickname(X509Certificate::OSCertHandle cert_handle) { in GetNickname() 122 string GetTokenName(X509Certificate::OSCertHandle cert_handle) { in GetTokenName() 126 string GetVersion(X509Certificate::OSCertHandle cert_handle) { in GetVersion() 134 net::CertType GetType(X509Certificate::OSCertHandle cert_handle) { in GetType() 138 string GetEmailAddress(X509Certificate::OSCertHandle cert_handle) { in GetEmailAddress() 144 void GetUsageStrings(X509Certificate::OSCertHandle cert_handle, in GetUsageStrings() 149 string GetKeyUsageString(X509Certificate::OSCertHandle cert_handle) { in GetKeyUsageString() 160 string GetSerialNumberHexified(X509Certificate::OSCertHandle cert_handle, in GetSerialNumberHexified() [all …]
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
D | KeyStore2Test.java | 41 import java.security.cert.X509Certificate; 137 X509Certificate cert[] = new X509Certificate[2]; in creatCertificate() 138 cert[0] = (X509Certificate) cf.generateCertificate(certArray); in creatCertificate() 139 cert[1] = (X509Certificate) cf.generateCertificate(certArray2); in creatCertificate() 166 X509Certificate cert[] = new X509Certificate[2]; in test_aliases() 167 cert[0] = (X509Certificate) cf.generateCertificate(certArray); in test_aliases() 168 cert[1] = (X509Certificate) cf.generateCertificate(certArray2); in test_aliases() 203 X509Certificate cert[] = new X509Certificate[2]; in test_containsAliasLjava_lang_String() 204 cert[0] = (X509Certificate) cf.generateCertificate(certArray); in test_containsAliasLjava_lang_String() 205 cert[1] = (X509Certificate) cf.generateCertificate(certArray2); in test_containsAliasLjava_lang_String() [all …]
|
D | Identity2Test.java | 31 import java.security.cert.X509Certificate; 48 X509Certificate cert; 50 public CertificateImpl(X509Certificate cert) { in CertificateImpl() 218 X509Certificate cert[] = new X509Certificate[1]; in test_certificates() 219 cert[0] = (X509Certificate) cf.generateCertificate(certArray); in test_certificates() 235 X509Certificate cert[] = new X509Certificate[1]; in test_addCertificateLjava_security_Certificate() 236 cert[0] = (X509Certificate) cf.generateCertificate(certArray); in test_addCertificateLjava_security_Certificate() 249 X509Certificate cert[] = new X509Certificate[1]; in test_removeCertificateLjava_security_Certificate() 250 cert[0] = (X509Certificate) cf.generateCertificate(certArray); in test_removeCertificateLjava_security_Certificate() 266 X509Certificate cert[] = new X509Certificate[1]; in test_equalsLjava_lang_Object() [all …]
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/cert/ |
D | TrustAnchor_ImplTest.java | 28 import java.security.cert.X509Certificate; 69 (X509Certificate)ks.getCertificate(certAlias), in testTrustAnchorX509CertificatebyteArray01() 73 (X509Certificate)ks.getCertificate(certAlias), in testTrustAnchorX509CertificatebyteArray01() 77 (X509Certificate)ks.getCertificate(certAlias), in testTrustAnchorX509CertificatebyteArray01() 81 (X509Certificate)ks.getCertificate(certAlias), in testTrustAnchorX509CertificatebyteArray01() 100 (X509Certificate)ks.getCertificate(certAlias), in testTrustAnchorX509CertificatebyteArray02() 122 (X509Certificate)ks.getCertificate(certAlias), in testTrustAnchorX509CertificatebyteArray03() 175 (X509Certificate)ks.getCertificate(certAlias), in testTrustAnchorX509CertificatebyteArray05() 188 (X509Certificate)ks.getCertificate(certAlias), in testTrustAnchorX509CertificatebyteArray05() 201 (X509Certificate)ks.getCertificate(certAlias), in testTrustAnchorX509CertificatebyteArray05() [all …]
|
/external/chromium/chrome/browser/chromeos/options/ |
D | wifi_config_model.cc | 21 typedef scoped_refptr<net::X509Certificate> X509CertificateRefPtr; 27 string16 GetCertDisplayString(const net::X509Certificate* cert) { in GetCertDisplayString() 71 net::X509Certificate* cert = it->get(); in UpdateCertificates() 72 net::X509Certificate::OSCertHandle cert_handle = cert->os_cert_handle(); in UpdateCertificates() 114 net::X509Certificate* cert = user_certs_[cert_index].get(); in GetUserCertName() 121 net::X509Certificate* cert = user_certs_[cert_index].get(); in GetUserCertPkcs11Id() 122 net::X509Certificate::OSCertHandle cert_handle = cert->os_cert_handle(); in GetUserCertPkcs11Id() 129 net::X509Certificate* cert = user_certs_[index].get(); in GetUserCertIndex() 130 net::X509Certificate::OSCertHandle cert_handle = cert->os_cert_handle(); in GetUserCertIndex() 146 net::X509Certificate* cert = server_ca_certs_[cert_index].get(); in GetServerCaCertName() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/ |
D | PKIXCertPath.java | 15 import java.security.cert.X509Certificate; 74 X500Principal issuer = ((X509Certificate)certs.get(0)).getIssuerX500Principal(); in sortCerts() 79 X509Certificate cert = (X509Certificate)certs.get(i); in sortCerts() 83 issuer = ((X509Certificate)certs.get(i)).getIssuerX500Principal(); in sortCerts() 103 X509Certificate cert = (X509Certificate)certs.get(i); in sortCerts() 110 X509Certificate c = (X509Certificate)certs.get(j); in sortCerts() 133 issuer = ((X509Certificate)retList.get(i)).getIssuerX500Principal(); in sortCerts() 137 X509Certificate c = (X509Certificate)certs.get(j); in sortCerts() 277 v.add(toASN1Object((X509Certificate)iter.previous())); in getEncoded() 289 v.add(toASN1Object((X509Certificate)certificates.get(i))); in getEncoded() [all …]
|
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/ |
D | TrustManagerImplTest.java | 26 import java.security.cert.X509Certificate; 61 private X509Certificate[] untrustedChain; 69 X509Certificate cert = (X509Certificate) certFactory in setUp() 71 untrustedChain = new X509Certificate[] { cert }; in setUp() 99 tm.checkClientTrusted(new X509Certificate[0], "RSA"); in checkTrustManager() 117 tm.checkServerTrusted(new X509Certificate[0], "RSA"); in checkTrustManager()
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/ |
D | X509CertificateTest.java | 35 import javax.security.cert.X509Certificate; 72 private java.security.cert.X509Certificate cert; 73 private javax.security.cert.X509Certificate tbt_cert; 81 this.cert = (java.security.cert.X509Certificate) in setUp() 83 this.tbt_cert = X509Certificate.getInstance(cert.getEncoded()); in setUp() 108 X509Certificate.getInstance(bais); in testGetInstance1() 122 X509Certificate.getInstance((InputStream) null); in testGetInstance1() 139 X509Certificate.getInstance(cert.getEncoded()); in testGetInstance2() 150 X509Certificate.getInstance((byte[]) null); in testGetInstance2()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/ |
D | X509V3CertificateGenerator.java | 15 import java.security.cert.X509Certificate; 277 X509Certificate cert) in copyAndAddExtension() 307 X509Certificate cert) in copyAndAddExtension() 318 public X509Certificate generateX509Certificate( in generateX509Certificate() 338 public X509Certificate generateX509Certificate( in generateX509Certificate() 358 public X509Certificate generateX509Certificate( in generateX509Certificate() 372 public X509Certificate generateX509Certificate( in generateX509Certificate() 408 public X509Certificate generate( in generate() 424 public X509Certificate generate( in generate() 455 public X509Certificate generate( in generate() [all …]
|
/external/chromium/chrome/browser/ssl/ |
D | ssl_client_auth_notification_details.h | 11 class X509Certificate; variable 19 net::X509Certificate* selected_cert); 22 net::X509Certificate* selected_cert() const { return selected_cert_; } in selected_cert() 27 net::X509Certificate* selected_cert_;
|