Home
last modified time | relevance | path

Searched refs:cert (Results 1 – 25 of 790) sorted by relevance

12345678910>>...32

/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/
DX509CertificateTest.java22 package org.apache.harmony.security.tests.javax.security.cert;
26 import java.security.cert.CertificateFactory;
31 import javax.security.cert.CertificateEncodingException;
32 import javax.security.cert.CertificateException;
33 import javax.security.cert.CertificateExpiredException;
34 import javax.security.cert.CertificateNotYetValidException;
35 import javax.security.cert.X509Certificate;
71 private java.security.cert.X509Certificate cert; field in X509CertificateTest
72 private javax.security.cert.X509Certificate tbt_cert;
80 this.cert = (java.security.cert.X509Certificate) in setUp()
[all …]
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
DKeyStore2Test.java38 import java.security.cert.Certificate;
39 import java.security.cert.CertificateException;
40 import java.security.cert.CertificateFactory;
41 import java.security.cert.X509Certificate;
138 X509Certificate cert[] = new X509Certificate[2]; in creatCertificate() local
139 cert[0] = (X509Certificate) cf.generateCertificate(certArray); in creatCertificate()
140 cert[1] = (X509Certificate) cf.generateCertificate(certArray2); in creatCertificate()
144 keyTest.setCertificateEntry("alias1", cert[0]); in creatCertificate()
147 keyTest.setKeyEntry("alias2", privateKey, pssWord, cert); in creatCertificate()
150 keyTest.setCertificateEntry("alias3", cert[1]); in creatCertificate()
[all …]
DIdentity2Test.java30 import java.security.cert.CertificateFactory;
31 import java.security.cert.X509Certificate;
49 X509Certificate cert; field in Identity2Test.CertificateImpl
51 public CertificateImpl(X509Certificate cert) { in CertificateImpl() argument
52 this.cert = cert; in CertificateImpl()
56 return cert.getIssuerDN(); in getGuarantor()
74 return cert.getType(); in getFormat()
78 return cert.getSubjectDN(); in getPrincipal()
82 return cert.getPublicKey(); in getPublicKey()
219 X509Certificate cert[] = new X509Certificate[1]; in test_certificates() local
[all …]
DKSTrustedCertificateEntryTest.java25 import java.security.cert.Certificate;
27 import org.apache.harmony.security.tests.support.cert.MyCertificate;
43 Certificate cert = null; in testTrustedCertificateEntry() local
45 new KeyStore.TrustedCertificateEntry(cert); in testTrustedCertificateEntry()
56 Certificate cert = new MyCertificate("TEST", new byte[10]); in testGetTrustedCertificate() local
58 new KeyStore.TrustedCertificateEntry(cert); in testGetTrustedCertificate()
59 assertEquals("Incorrect certificate", cert, ksTCE.getTrustedCertificate()); in testGetTrustedCertificate()
67 Certificate cert = new MyCertificate("TEST", new byte[10]); in testToString() local
69 new KeyStore.TrustedCertificateEntry(cert); in testToString()
/external/wpa_supplicant_8/src/tls/
Dx509v3.c45 void x509_certificate_free(struct x509_certificate *cert) in x509_certificate_free() argument
47 if (cert == NULL) in x509_certificate_free()
49 if (cert->next) { in x509_certificate_free()
52 cert, cert->next); in x509_certificate_free()
54 x509_free_name(&cert->issuer); in x509_certificate_free()
55 x509_free_name(&cert->subject); in x509_certificate_free()
56 os_free(cert->public_key); in x509_certificate_free()
57 os_free(cert->sign_value); in x509_certificate_free()
58 os_free(cert); in x509_certificate_free()
66 void x509_certificate_chain_free(struct x509_certificate *cert) in x509_certificate_chain_free() argument
[all …]
/external/chromium_org/chrome/common/net/
Dx509_certificate_model_unittest.cc19 scoped_refptr<net::X509Certificate> cert( in TEST() local
22 ASSERT_TRUE(cert.get()); in TEST()
25 x509_certificate_model::GetCertNameOrNickname(cert->os_cert_handle())); in TEST()
73 scoped_refptr<net::X509Certificate> cert(net::ImportCertFromFile( in TEST() local
75 ASSERT_TRUE(cert.get()); in TEST()
79 "critical", "notcrit", cert->os_cert_handle(), &extensions); in TEST()
99 scoped_refptr<net::X509Certificate> cert(net::ImportCertFromFile( in TEST() local
103 "critical", "notcrit", cert->os_cert_handle(), &extensions); in TEST()
114 scoped_refptr<net::X509Certificate> cert(net::ImportCertFromFile( in TEST() local
118 "critical", "notcrit", cert->os_cert_handle(), &extensions); in TEST()
[all …]
/external/ipsec-tools/src/racoon/
Ddnssec.c62 cert_t *cert = NULL; local
119 cert = oakley_newcert();
120 if (cert == NULL) {
125 cert->pl = vmalloc(res->ci_certlen + 1);
126 if (cert->pl == NULL) {
131 memcpy(cert->pl->v + 1, res->ci_cert, res->ci_certlen);
132 cert->pl->v[0] = type;
133 cert->cert.v = cert->pl->v + 1;
134 cert->cert.l = cert->pl->l - 1;
137 plogdump(LLV_DEBUG, cert->pl->v, cert->pl->l);
[all …]
/external/conscrypt/src/platform/java/org/conscrypt/
DTrustedCertificateStore.java26 import java.security.cert.Certificate;
27 import java.security.cert.CertificateException;
28 import java.security.cert.CertificateFactory;
29 import java.security.cert.X509Certificate;
140 X509Certificate cert = readCertificate(file); in getCertificate() local
141 if (cert == null || (isSystem(alias) in getCertificate()
143 && isDeletedSystemCertificate(cert))) { in getCertificate()
147 return cert; in getCertificate()
192 private void writeCertificate(File file, X509Certificate cert) in writeCertificate() argument
201 os.write(cert.getEncoded()); in writeCertificate()
[all …]
DTrustedCertificateIndex.java20 import java.security.cert.TrustAnchor;
21 import java.security.cert.X509Certificate;
51 public TrustAnchor index(X509Certificate cert) { in index() argument
52 TrustAnchor anchor = new TrustAnchor(cert, null); in index()
59 X509Certificate cert = anchor.getTrustedCert(); in index() local
60 if (cert != null) { in index()
61 subject = cert.getSubjectX500Principal(); in index()
89 public TrustAnchor findByIssuerAndSignature(X509Certificate cert) { in findByIssuerAndSignature() argument
90 X500Principal issuer = cert.getIssuerX500Principal(); in findByIssuerAndSignature()
106 cert.verify(publicKey); in findByIssuerAndSignature()
[all …]
/external/chromium_org/net/cert/
Dnss_cert_database.cc54 virtual void OnCertAdded(const X509Certificate* cert) OVERRIDE { in OnCertAdded() argument
55 cert_db_->NotifyObserversOfCertAdded(cert); in OnCertAdded()
58 virtual void OnCertRemoved(const X509Certificate* cert) OVERRIDE { in OnCertRemoved() argument
59 cert_db_->NotifyObserversOfCertRemoved(cert); in OnCertRemoved()
62 virtual void OnCACertChanged(const X509Certificate* cert) OVERRIDE { in OnCACertChanged() argument
63 cert_db_->NotifyObserversOfCACertChanged(cert); in OnCACertChanged()
75 const scoped_refptr<X509Certificate>& cert, in ImportCertFailure() argument
77 : certificate(cert), net_error(err) {} in ImportCertFailure()
253 const X509Certificate* cert, in GetCertTrust() argument
256 SECStatus srv = CERT_GetCertTrust(cert->os_cert_handle(), &trust); in GetCertTrust()
[all …]
Dmock_cert_verifier.cc17 Rule(X509Certificate* cert, in Rule()
21 : cert(cert), in Rule()
25 DCHECK(cert); in Rule()
29 scoped_refptr<X509Certificate> cert; member
39 int MockCertVerifier::Verify(X509Certificate* cert, in Verify() argument
50 if (!it->cert->Equals(cert)) in Verify()
59 verify_result->verified_cert = cert; in Verify()
68 void MockCertVerifier::AddResultForCert(X509Certificate* cert, in AddResultForCert() argument
71 AddResultForCertAndHost(cert, "*", verify_result, rv); in AddResultForCert()
75 X509Certificate* cert, in AddResultForCertAndHost() argument
[all …]
Dnss_cert_database.h44 virtual void OnCertAdded(const X509Certificate* cert) {} in OnCertAdded() argument
47 virtual void OnCertRemoved(const X509Certificate* cert) {} in OnCertRemoved() argument
52 virtual void OnCACertChanged(const X509Certificate* cert) {} in OnCACertChanged() argument
64 ImportCertFailure(const scoped_refptr<X509Certificate>& cert, int err);
219 TrustBits GetCertTrust(const X509Certificate* cert, CertType type) const;
224 bool IsUntrusted(const X509Certificate* cert) const;
228 bool SetCertTrust(const X509Certificate* cert,
235 bool DeleteCertAndKey(X509Certificate* cert);
240 void DeleteCertAndKeyAsync(const scoped_refptr<X509Certificate>& cert,
244 bool IsReadOnly(const X509Certificate* cert) const;
[all …]
Dcert_verify_proc_nss.cc72 if (p->value.pointer.cert) { in Clear()
73 CERT_DestroyCertificate(p->value.pointer.cert); in Clear()
74 p->value.pointer.cert = NULL; in Clear()
166 verified_cert = node->cert; in GetCertChainInfo()
172 if (node->cert->isRoot) { in GetCertChainInfo()
179 next_cert = next_node->cert; in GetCertChainInfo()
186 if (next_cert && SECITEM_ItemsAreEqual(&node->cert->derPublicKey, in GetCertChainInfo()
191 verified_chain.push_back(node->cert); in GetCertChainInfo()
194 SECAlgorithmID& signature = node->cert->signature; in GetCertChainInfo()
248 if (CERT_CompareCerts(node->cert, root)) in IsAdditionalTrustAnchor()
[all …]
/external/chromium_org/chrome/third_party/mozilla_security_manager/
DnsNSSCertificate.cpp47 std::string GetCertTitle(CERTCertificate* cert) { in GetCertTitle() argument
49 if (cert->nickname) { in GetCertTitle()
50 rv = cert->nickname; in GetCertTitle()
52 char* cn = CERT_GetCommonName(&cert->subject); in GetCertTitle()
56 } else if (cert->subjectName) { in GetCertTitle()
57 rv = cert->subjectName; in GetCertTitle()
58 } else if (cert->emailAddr) { in GetCertTitle()
59 rv = cert->emailAddr; in GetCertTitle()
67 std::string GetCertTokenName(CERTCertificate* cert) { in GetCertTokenName() argument
69 if (cert->slot) { in GetCertTokenName()
[all …]
/external/chromium_org/net/third_party/nss/ssl/
Dauthcert.c32 CERTCertificate * cert = NULL; in NSS_GetClientAuthData() local
41 cert = CERT_FindUserCertByUsage(CERT_GetDefaultCertDB(), in NSS_GetClientAuthData()
44 if ( cert ) { in NSS_GetClientAuthData()
45 privkey = PK11_FindKeyByAnyCert(cert, proto_win); in NSS_GetClientAuthData()
49 CERT_DestroyCertificate(cert); in NSS_GetClientAuthData()
60 cert = CERT_FindUserCertByUsage(CERT_GetDefaultCertDB(), in NSS_GetClientAuthData()
63 if ( !cert ) in NSS_GetClientAuthData()
66 if (CERT_CheckCertValidTimes(cert, PR_Now(), PR_TRUE) != in NSS_GetClientAuthData()
68 CERT_DestroyCertificate(cert); in NSS_GetClientAuthData()
71 rv = NSS_CmpCertChainWCANames(cert, caNames); in NSS_GetClientAuthData()
[all …]
/external/conscrypt/src/main/java/org/conscrypt/
DChainStrengthAnalyzer.java19 import java.security.cert.CertificateException;
20 import java.security.cert.X509Certificate;
29 for (X509Certificate cert : chain) { in check()
30 checkCert(cert); in check()
34 private static final void checkCert(X509Certificate cert) throws CertificateException { in checkCert() argument
35 checkModulusLength(cert); in checkCert()
36 checkNotMD5(cert); in checkCert()
39 private static final void checkModulusLength(X509Certificate cert) throws CertificateException { in checkModulusLength() argument
40 Object pubkey = cert.getPublicKey(); in checkModulusLength()
49 private static final void checkNotMD5(X509Certificate cert) throws CertificateException { in checkNotMD5() argument
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/
DX509V2AttributeCertificate.java13 import java.security.cert.CertificateException;
14 import java.security.cert.CertificateExpiredException;
15 import java.security.cert.CertificateNotYetValidException;
42 private AttributeCertificate cert; field in X509V2AttributeCertificate
78 AttributeCertificate cert) in X509V2AttributeCertificate() argument
81 this.cert = cert; in X509V2AttributeCertificate()
85 … this.notAfter = cert.getAcinfo().getAttrCertValidityPeriod().getNotAfterTime().getDate(); in X509V2AttributeCertificate()
86 … this.notBefore = cert.getAcinfo().getAttrCertValidityPeriod().getNotBeforeTime().getDate(); in X509V2AttributeCertificate()
96 return cert.getAcinfo().getVersion().getValue().intValue() + 1; in getVersion()
101 return cert.getAcinfo().getSerialNumber().getValue(); in getSerialNumber()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
DCertPathValidatorUtilities.java9 import java.security.cert.CRLException;
10 import java.security.cert.CertPath;
11 import java.security.cert.CertPathValidatorException;
12 import java.security.cert.CertStore;
13 import java.security.cert.CertStoreException;
14 import java.security.cert.Certificate;
15 import java.security.cert.CertificateParsingException;
16 import java.security.cert.PKIXParameters;
17 import java.security.cert.PolicyQualifierInfo;
18 import java.security.cert.TrustAnchor;
[all …]
/external/chromium_org/net/ssl/
Dchannel_id_service.cc147 std::string* cert) in ChannelIDServiceRequest() argument
151 cert_(cert) { in ChannelIDServiceRequest()
166 const std::string& cert) { in Post() argument
197 *cert_ = cert; in Post()
246 scoped_ptr<ChannelIDStore::ChannelID> cert = in Run() local
261 base::Passed(&cert))); in Run()
296 const std::string& cert) { in HandleResult() argument
297 PostAll(error, private_key, cert); in HandleResult()
305 const std::string& cert) { in PostAll() argument
311 (*i)->Post(error, private_key, cert); in PostAll()
[all …]
/external/chromium_org/net/http/
Ddisk_based_cert_cache_unittest.cc133 scoped_refptr<X509Certificate> cert( in ImportCert() local
137 X509Certificate::GetDEREncoded(cert->os_cert_handle(), &write_data); in ImportCert()
163 scoped_refptr<X509Certificate> cert( in CheckCertCached() local
167 X509Certificate::GetDEREncoded(cert->os_cert_handle(), &write_data); in CheckCertCached()
181 cert->os_cert_handle())); in CheckCertCached()
195 scoped_refptr<X509Certificate> cert( in TEST() local
197 ASSERT_TRUE(cert.get()); in TEST()
200 cache.SetCertificate(cert->os_cert_handle(), set_callback.callback()); in TEST()
219 scoped_refptr<X509Certificate> cert( in TEST() local
222 cert->os_cert_handle())); in TEST()
[all …]
/external/chromium_org/net/third_party/mozilla_security_manager/
DnsNSSCertificateDB.cpp113 const scoped_refptr<net::X509Certificate>& cert = certificates[i]; in ImportCACerts() local
114 if (cert == root) { in ImportCACerts()
121 if (!CERT_IsCACert(cert->os_cert_handle(), NULL)) { in ImportCACerts()
123 cert, net::ERR_IMPORT_CA_CERT_NOT_CA)); in ImportCACerts()
128 if (cert->os_cert_handle()->isperm) { in ImportCACerts()
130 cert, net::ERR_IMPORT_CERT_ALREADY_EXISTS)); in ImportCACerts()
135 if (CERT_VerifyCert(CERT_GetDefaultCertDB(), cert->os_cert_handle(), in ImportCACerts()
141 cert, net::ERR_FAILED)); in ImportCACerts()
150 cert->os_cert_handle(), in ImportCACerts()
153 cert->GetDefaultNickname(net::CA_CERT), in ImportCACerts()
[all …]
/external/chromium_org/android_webview/browser/
Daw_ssl_host_state_delegate.cc14 net::SHA256HashValue getChainFingerprint256(const net::X509Certificate& cert) { in getChainFingerprint256() argument
17 cert.os_cert_handle(), cert.GetIntermediateCertificates()); in getChainFingerprint256()
29 bool CertPolicy::Check(const net::X509Certificate& cert, in Check() argument
31 net::SHA256HashValue fingerprint = getChainFingerprint256(cert); in Check()
42 void CertPolicy::Allow(const net::X509Certificate& cert, in Allow() argument
46 net::SHA256HashValue fingerprint = getChainFingerprint256(cert); in Allow()
70 const net::X509Certificate& cert, in AllowCert() argument
72 cert_policy_for_host_[host].Allow(cert, error); in AllowCert()
81 const net::X509Certificate& cert, in QueryPolicy() argument
84 return cert_policy_for_host_[host].Check(cert, error) in QueryPolicy()
/external/chromium_org/chrome/browser/
Dcertificate_manager_model.cc107 net::X509Certificate* cert = i->get(); in FilterAndBuildOrgGroupingMap() local
109 x509_certificate_model::GetType(cert->os_cert_handle()); in FilterAndBuildOrgGroupingMap()
114 if (!cert->subject().organization_names.empty()) in FilterAndBuildOrgGroupingMap()
115 org = cert->subject().organization_names[0]; in FilterAndBuildOrgGroupingMap()
117 org = cert->subject().GetDisplayName(); in FilterAndBuildOrgGroupingMap()
119 (*map)[org].push_back(cert); in FilterAndBuildOrgGroupingMap()
124 const net::X509Certificate& cert, in GetColumnText() argument
130 x509_certificate_model::GetCertNameOrNickname(cert.os_cert_handle())); in GetColumnText()
133 if (IsHardwareBacked(&cert)) { in GetColumnText()
142 x509_certificate_model::GetTokenName(cert.os_cert_handle())); in GetColumnText()
[all …]
/external/chromium_org/chrome/browser/ssl/
Dssl_add_certificate.cc37 net::X509Certificate* cert) { in Create() argument
40 new SSLAddCertificateInfoBarDelegate(cert)))); in Create()
44 explicit SSLAddCertificateInfoBarDelegate(net::X509Certificate* cert) in SSLAddCertificateInfoBarDelegate() argument
45 : cert_(cert) {} in SSLAddCertificateInfoBarDelegate()
113 net::X509Certificate* cert) { in ShowSuccessInfoBar() argument
120 InfoBarService::FromWebContents(web_contents), cert); in ShowSuccessInfoBar()
137 scoped_refptr<net::X509Certificate> cert; in SSLAddCertificate() local
139 cert = net::X509Certificate::CreateFromBytes( in SSLAddCertificate()
146 int cert_error = net::CertDatabase::GetInstance()->CheckUserCert(cert.get()); in SSLAddCertificate()
150 << (cert.get() ? cert->subject().GetDisplayName() : "NULL"); in SSLAddCertificate()
[all …]
/external/chromium_org/third_party/boringssl/src/ssl/
Dssl_cert.c159 void ssl_cert_set_default_md(CERT *cert) in ssl_cert_set_default_md() argument
162 cert->pkeys[SSL_PKEY_RSA_SIGN].digest = EVP_sha1(); in ssl_cert_set_default_md()
163 cert->pkeys[SSL_PKEY_RSA_ENC].digest = EVP_sha1(); in ssl_cert_set_default_md()
164 cert->pkeys[SSL_PKEY_ECC].digest = EVP_sha1(); in ssl_cert_set_default_md()
184 CERT *ssl_cert_dup(CERT *cert) in ssl_cert_dup() argument
198 ret->key = &ret->pkeys[cert->key - &cert->pkeys[0]]; in ssl_cert_dup()
202 ret->valid = cert->valid; in ssl_cert_dup()
203 ret->mask_k = cert->mask_k; in ssl_cert_dup()
204 ret->mask_a = cert->mask_a; in ssl_cert_dup()
206 if (cert->dh_tmp != NULL) in ssl_cert_dup()
[all …]

12345678910>>...32