Searched refs:certs (Results 1 - 25 of 173) sorted by relevance

1234567

/external/nist-pkits/src/libcore/java/security/cert/
H A DX509CertificateNistPkitsTest.java71 final String fileName = "nist-pkits/certs/" + name;
86 X509Certificate[] certs = new X509Certificate[names.length];
89 certs[i] = getCertificate(f, names[i]);
92 return certs;
120 X509Certificate[] certs = getCertificates(f, pathCerts);
121 return f.generateCertPath(Arrays.asList(certs));
126 X509Certificate[] certs = getCertificates(f, pathCerts);
132 certCollection.addAll(Arrays.asList(certs));
147 private void assertInvalidPath(String trustAnchor, String[] certs, String[] crls) argument
151 PKIXParameters params = getTestPathParams(f, trustAnchor, certs, crl
163 assertValidPath(String trustAnchor, String[] certs, String[] crls) argument
[all...]
/external/chromium_org/net/cert/
H A Dnss_cert_database_chromeos.cc40 void NSSCertDatabaseChromeOS::ListCertsSync(CertificateList* certs) { argument
41 ListCertsImpl(profile_filter_, certs);
45 const base::Callback<void(scoped_ptr<CertificateList> certs)>& callback) {
46 scoped_ptr<CertificateList> certs(new CertificateList());
48 // base::Pased will NULL out |certs|, so cache the underlying pointer here.
49 CertificateList* raw_certs = certs.get();
55 base::Bind(callback, base::Passed(&certs)));
82 CertificateList* certs) {
83 NSSCertDatabase::ListCertsImpl(crypto::ScopedPK11Slot(), certs); local
85 size_t pre_size = certs
80 ListCertsImpl( const NSSProfileFilterChromeOS& profile_filter, CertificateList* certs) argument
[all...]
H A Dx509_certificate_net_log_param.cc18 base::ListValue* certs = new base::ListValue(); local
22 certs->Append(new base::StringValue(encoded_chain[i]));
23 dict->Set("certificates", certs);
H A Dnss_cert_database_unittest.cc91 CertificateList* certs) {
97 certs->push_back(cert);
126 CertificateList certs; local
127 cert_db_->ListCertsSync(&certs);
130 EXPECT_LT(0U, certs.size());
136 CertificateList certs; local
138 cert_db_->ListCerts(base::Bind(&SwapCertList, base::Unretained(&certs)));
139 EXPECT_EQ(0U, certs.size());
145 EXPECT_LT(0U, certs.size());
279 CertificateList certs local
90 ReadCertIntoList(const std::string& name, CertificateList* certs) argument
310 CertificateList certs = CreateCertificateListFromFile( local
341 CertificateList certs = CreateCertificateListFromFile( local
372 CertificateList certs = CreateCertificateListFromFile( local
393 CertificateList certs; local
420 CertificateList certs; local
458 CertificateList certs; local
479 CertificateList certs; local
502 CertificateList certs = CreateCertificateListFromFile( local
534 CertificateList certs = CreateCertificateListFromFile( local
571 CertificateList certs; local
602 CertificateList certs; local
645 CertificateList certs = CreateCertificateListFromFile( local
681 CertificateList certs = CreateCertificateListFromFile( local
733 CertificateList certs = CreateCertificateListFromFile( local
809 CertificateList certs = CreateCertificateListFromFile( local
879 CertificateList certs = CreateCertificateListFromFile( local
943 CertificateList certs = CreateCertificateListFromFile( local
988 CertificateList certs = local
[all...]
H A Dnss_cert_database_chromeos.h28 virtual void ListCertsSync(CertificateList* certs) OVERRIDE;
35 // TODO(mattm): handle trust setting, deletion, etc correctly when certs exist
37 // TODO(mattm): handle trust setting correctly for certs in read-only slots.
45 CertificateList* certs);
H A Dx509_util_unittest.cc21 CertificateList certs; local
26 certs.push_back(scoped_refptr<X509Certificate>(NULL));
27 certs.push_back(new X509Certificate(
30 certs.push_back(new X509Certificate(
33 certs.push_back(new X509Certificate(
36 certs.push_back(scoped_refptr<X509Certificate>(NULL));
37 certs.push_back(new X509Certificate(
41 std::sort(certs.begin(), certs.end(), ClientCertSorter());
43 ASSERT_TRUE(certs[
[all...]
H A Dcert_verify_proc_unittest.cc140 CertificateList certs = CreateCertificateListFromFile( local
146 intermediates.push_back(certs[1]->os_cert_handle());
149 X509Certificate::CreateFromHandle(certs[0]->os_cert_handle(),
169 CertificateList certs = CreateCertificateListFromFile( local
173 ASSERT_EQ(3U, certs.size());
176 intermediates.push_back(certs[1]->os_cert_handle());
177 intermediates.push_back(certs[2]->os_cert_handle());
180 X509Certificate::CreateFromHandle(certs[0]->os_cert_handle(),
246 CertificateList certs = CreateCertificateListFromFile( local
249 ASSERT_EQ(3U, certs
625 CertificateList certs = CreateCertificateListFromFile( local
659 CertificateList certs = CreateCertificateListFromFile( local
759 CertificateList certs = CreateCertificateListFromFile( local
848 CertificateList certs = CreateCertificateListFromFile( local
901 CertificateList certs = CreateCertificateListFromFile( local
1038 CertificateList certs = CreateCertificateListFromFile( local
[all...]
/external/google-tv-pairing-protocol/java/src/com/google/polo/pairing/
H A DPoloUtil.java43 Certificate[] certs = session.getPeerCertificates();
44 if (certs == null || certs.length < 1) {
47 return certs[0];
62 Certificate[] certs = session.getLocalCertificates();
63 if (certs == null || certs.length < 1) {
66 return certs[0];
/external/chromium_org/chrome/browser/safe_browsing/
H A Dbinary_feature_extractor_win_unittest.cc37 std::vector<scoped_refptr<net::X509Certificate> >* certs) {
39 certs->push_back(
57 std::vector<scoped_refptr<net::X509Certificate> > certs; local
58 ParseCertificateChain(signature_info.certificate_chain(0), &certs);
59 ASSERT_EQ(2, certs.size());
60 EXPECT_EQ("Joe's-Software-Emporium", certs[0]->subject().common_name);
61 EXPECT_EQ("Root Agency", certs[1]->subject().common_name);
74 std::vector<scoped_refptr<net::X509Certificate> > certs; local
75 ParseCertificateChain(signature_info.certificate_chain(0), &certs);
76 ASSERT_EQ(3, certs
35 ParseCertificateChain( const ClientDownloadRequest_CertificateChain& chain, std::vector<scoped_refptr<net::X509Certificate> >* certs) argument
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/
H A DPKIXCertPath.java66 * @param certs
69 List certs)
71 if (certs.size() < 2)
73 return certs;
76 X500Principal issuer = ((X509Certificate)certs.get(0)).getIssuerX500Principal();
79 for (int i = 1; i != certs.size(); i++)
81 X509Certificate cert = (X509Certificate)certs.get(i);
85 issuer = ((X509Certificate)certs.get(i)).getIssuerX500Principal();
96 return certs;
100 List retList = new ArrayList(certs
68 sortCerts( List certs) argument
[all...]
/external/chromium_org/chromeos/
H A Dcert_loader_unittest.cc202 net::CertificateList certs; local
203 ImportCACert("root_ca_cert.pem", primary_db_.get(), &certs);
208 IsCertInCertificateList(certs[0].get(), cert_loader_->cert_list()));
216 IsCertInCertificateList(certs[0].get(), cert_loader_->cert_list()));
226 net::CertificateList certs; local
227 ImportCACert("root_ca_cert.pem", secondary_db.get(), &certs);
232 IsCertInCertificateList(certs[0].get(), cert_loader_->cert_list()));
238 net::CertificateList certs; local
241 &certs);
248 IsCertInCertificateList(certs[
258 net::CertificateList certs; local
272 net::CertificateList certs; local
296 net::CertificateList certs; local
[all...]
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/
H A DCertificateMessageTest.java63 assertEquals("incorrect message", 0, message.certs.length);
75 assertEquals("incorrect message_2", 0, message_2.certs.length);
92 assertTrue("incorrect cert encoding", Arrays.equals(message.certs[0]
103 assertEquals("Incorrect message decoding", message.certs.length, message_2.certs.length);
104 assertTrue("incorrect cert encoding", Arrays.equals(message.certs[0]
105 .getEncoded(), message_2.certs[0].getEncoded()));
/external/chromium_org/net/ssl/
H A Dclient_cert_store_mac_unittest.cc55 std::vector<scoped_refptr<X509Certificate> > certs; local
61 cert_1, certs, *request.get(), &selected_certs);
76 std::vector<scoped_refptr<X509Certificate> > certs; local
77 certs.push_back(cert_2);
82 cert_1, certs, *request.get(), &selected_certs);
H A Dclient_cert_store_unittest-inl.h57 std::vector<scoped_refptr<X509Certificate> > certs; local
62 certs, *request.get(), &selected_certs);
74 std::vector<scoped_refptr<X509Certificate> > certs; local
75 certs.push_back(cert);
80 certs, *request.get(), &selected_certs);
107 std::vector<scoped_refptr<X509Certificate> > certs; local
108 certs.push_back(cert_1);
109 certs.push_back(cert_2);
115 certs, *request.get(), &selected_certs);
/external/chromium_org/net/test/
H A Dcert_test_util.cc33 CertificateList certs = CreateCertificateListFromFile( local
35 if (certs.empty())
39 for (size_t i = 1; i < certs.size(); ++i)
40 intermediates.push_back(certs[i]->os_cert_handle());
43 certs[0]->os_cert_handle(), intermediates));
/external/openssl/crypto/ocsp/
H A Docsp_vfy.c63 static int ocsp_find_signer(X509 **psigner, OCSP_BASICRESP *bs, STACK_OF(X509) *certs,
65 static X509 *ocsp_find_signer_sk(STACK_OF(X509) *certs, OCSP_RESPID *id);
70 static int ocsp_req_find_signer(X509 **psigner, OCSP_REQUEST *req, X509_NAME *nm, STACK_OF(X509) *certs,
75 int OCSP_basic_verify(OCSP_BASICRESP *bs, STACK_OF(X509) *certs, argument
82 ret = ocsp_find_signer(&signer, bs, certs, st, flags);
111 init_res = X509_STORE_CTX_init(&ctx, st, signer, bs->certs);
166 static int ocsp_find_signer(X509 **psigner, OCSP_BASICRESP *bs, STACK_OF(X509) *certs, argument
171 if ((signer = ocsp_find_signer_sk(certs, rid)))
177 (signer = ocsp_find_signer_sk(bs->certs, rid)))
189 static X509 *ocsp_find_signer_sk(STACK_OF(X509) *certs, OCSP_RESPI
363 OCSP_request_verify(OCSP_REQUEST *req, STACK_OF(X509) *certs, X509_STORE *store, unsigned long flags) argument
432 ocsp_req_find_signer(X509 **psigner, OCSP_REQUEST *req, X509_NAME *nm, STACK_OF(X509) *certs, X509_STORE *st, unsigned long flags) argument
[all...]
/external/chromium_org/net/http/
H A Ddisk_cache_based_quic_server_info_unittest.cc86 EXPECT_TRUE(state->certs.empty());
96 state->certs.push_back(cert_a);
111 state->certs.push_back(cert_b);
130 EXPECT_EQ(2U, state1.certs.size());
131 EXPECT_EQ(cert_a, state1.certs[0]);
132 EXPECT_EQ(cert_b, state1.certs[1]);
153 EXPECT_TRUE(state1->certs.empty());
162 state1->certs.push_back(cert_a);
177 EXPECT_TRUE(state2->certs.empty());
186 state2->certs
[all...]
/external/chromium_org/net/quic/crypto/
H A Dquic_server_info.cc29 certs.clear();
93 // Read certs.
106 state->certs.push_back(cert);
125 state_.certs.size() > std::numeric_limits<uint32>::max() ||
126 !p.WriteUInt32(state_.certs.size())) {
130 for (size_t i = 0; i < state_.certs.size(); i++) {
131 if (!p.WriteString(state_.certs[i])) {
/external/chromium_org/net/data/ssl/scripts/
H A Dgenerate-client-certificates.sh53 -config client-certs.cnf
63 -extfile client-certs.cnf \
75 -config client-certs.cnf
85 -config client-certs.cnf
94 -config client-certs.cnf
104 -config client-certs.cnf
106 echo Generate the leaf certs
115 -config client-certs.cnf
133 -config client-certs.cnf
144 -config client-certs
[all...]
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/
H A DTestCertUtils.java68 * real chain of certificates, it's just an array of 3 certs. The method
103 Certificate[] certs = new Certificate[howMany];
105 certs[i] = new TestCertificate(Integer.toString(startID + i));
107 return new TestCertPath(certs);
153 private Certificate[] certs; field in class:TestCertUtils.TestCertPath
163 certs = getCertChain();
171 * @param certs
174 public TestCertPath(Certificate[] certs) { argument
176 this.certs = certs;
670 engineGenerateCertPath(List certs) argument
[all...]
/external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/
H A DHandshakeCompletedEventTest.java101 Certificate[] certs = event.getLocalCertificates();
103 if (certs == null && ses_certs == null) {
106 if (certs == null || ses_certs == null) {
109 for (int i = 0; i < certs.length; i++) {
110 if (certs[i] != ses_certs[i]) {
/external/chromium_org/third_party/boringssl/src/tool/
H A Dpkcs12.cc108 STACK_OF(X509) *certs = sk_X509_new_null();
110 if (!PKCS12_get_key_and_certs(&key, certs, &pkcs12, password)) {
119 for (size_t i = 0; i < sk_X509_num(certs); i++) {
120 PEM_write_X509(stdout, sk_X509_value(certs, i));
122 sk_X509_pop_free(certs, X509_free);
/external/chromium_org/third_party/webrtc/base/
H A Dsslidentity.h80 explicit SSLCertChain(const std::vector<SSLCertificate*>& certs) { argument
81 ASSERT(!certs.empty());
82 certs_.resize(certs.size());
83 std::transform(certs.begin(), certs.end(), certs_.begin(), DupCert);
/external/openssl/apps/
H A Dnseq.c133 seq->certs = sk_X509_new_null();
135 sk_X509_push(seq->certs,x509);
137 if(!sk_X509_num(seq->certs))
139 BIO_printf (bio_err, "Error reading certs file %s\n", infile);
154 for(i = 0; i < sk_X509_num(seq->certs); i++) {
155 x509 = sk_X509_value(seq->certs, i);
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/
H A DCMSUtils.java57 List certs = new ArrayList();
65 certs.add(c.toASN1Structure());
68 return certs;
72 throw new CMSException("error processing certs", e);
79 List certs = new ArrayList();
87 certs.add(new DERTaggedObject(false, 2, attrCert.toASN1Structure()));
90 return certs;
94 throw new CMSException("error processing certs", e);
102 List certs = new ArrayList();
110 certs
[all...]

Completed in 581 milliseconds

1234567