Home | History | Annotate | Download | only in base

Lines Matching full:certs

70   CertificateList certs = ListCertsInSlot(slot);
71 for (size_t i = 0; i < certs.size(); ++i) {
72 if (!cert_db.DeleteCertAndKey(certs[i]))
85 bool ReadCertIntoList(const std::string& name, CertificateList* certs) {
95 certs->push_back(cert);
145 CertificateList certs;
146 cert_db_.ListCerts(&certs);
149 EXPECT_LT(0U, certs.size());
189 CertificateList certs =
192 ASSERT_EQ(1U, certs.size());
193 EXPECT_FALSE(certs[0]->os_cert_handle()->isperm);
197 EXPECT_TRUE(cert_db_.ImportCACerts(certs, CertDatabase::TRUSTED_SSL,
221 CertificateList certs =
224 ASSERT_EQ(1U, certs.size());
225 EXPECT_FALSE(certs[0]->os_cert_handle()->isperm);
229 EXPECT_TRUE(cert_db_.ImportCACerts(certs, CertDatabase::TRUSTED_EMAIL,
252 CertificateList certs =
255 ASSERT_EQ(1U, certs.size());
256 EXPECT_FALSE(certs[0]->os_cert_handle()->isperm);
260 EXPECT_TRUE(cert_db_.ImportCACerts(certs, CertDatabase::TRUSTED_OBJ_SIGN,
283 CertificateList certs =
286 ASSERT_EQ(1U, certs.size());
287 EXPECT_FALSE(certs[0]->os_cert_handle()->isperm);
291 EXPECT_TRUE(cert_db_.ImportCACerts(certs, CertDatabase::TRUSTED_SSL,
297 EXPECT_EQ(certs[0], failed[0].certificate);
304 CertificateList certs;
305 ASSERT_TRUE(ReadCertIntoList("dod_root_ca_2_cert.der", &certs));
306 ASSERT_TRUE(ReadCertIntoList("dod_ca_17_cert.der", &certs));
307 ASSERT_TRUE(ReadCertIntoList("www_us_army_mil_cert.der", &certs));
316 certs, CertDatabase::TRUSTED_SSL | CertDatabase::TRUSTED_EMAIL,
330 CertificateList certs;
331 ASSERT_TRUE(ReadCertIntoList("dod_root_ca_2_cert.der", &certs));
336 certs, CertDatabase::TRUSTED_SSL | CertDatabase::TRUSTED_EMAIL,
344 ASSERT_TRUE(ReadCertIntoList("dod_ca_17_cert.der", &certs));
345 ASSERT_TRUE(ReadCertIntoList("www_us_army_mil_cert.der", &certs));
347 // Now import with the other certs in the list too. Even though the root is
351 certs, CertDatabase::TRUSTED_SSL | CertDatabase::TRUSTED_EMAIL,
367 CertificateList certs;
368 ASSERT_TRUE(ReadCertIntoList("dod_root_ca_2_cert.der", &certs));
369 ASSERT_TRUE(ReadCertIntoList("dod_ca_17_cert.der", &certs));
373 EXPECT_TRUE(cert_db_.ImportCACerts(certs, CertDatabase::UNTRUSTED, &failed));
387 CertificateList certs;
388 ASSERT_TRUE(ReadCertIntoList("dod_root_ca_2_cert.der", &certs));
389 ASSERT_TRUE(ReadCertIntoList("dod_ca_13_cert.der", &certs));
390 ASSERT_TRUE(ReadCertIntoList("dod_ca_17_cert.der", &certs));
395 certs, CertDatabase::TRUSTED_SSL | CertDatabase::TRUSTED_EMAIL,
409 CertificateList certs =
412 ASSERT_EQ(1U, certs.size());
413 ASSERT_TRUE(ReadCertIntoList("dod_ca_13_cert.der", &certs));
414 ASSERT_TRUE(ReadCertIntoList("dod_ca_17_cert.der", &certs));
419 certs, CertDatabase::TRUSTED_SSL | CertDatabase::TRUSTED_EMAIL |
440 CertificateList certs =
443 ASSERT_EQ(2U, certs.size());
446 EXPECT_TRUE(cert_db_.ImportServerCert(certs, &failed));
470 CertificateList certs;
471 ASSERT_TRUE(ReadCertIntoList("punycodetest.der", &certs));
474 EXPECT_TRUE(cert_db_.ImportServerCert(certs, &failed));