Home
last modified time | relevance | path

Searched refs:NSSCertDatabase (Results 1 – 25 of 36) sorted by relevance

12

/external/chromium_org/net/cert/
Dnss_cert_database.cc46 class CertNotificationForwarder : public NSSCertDatabase::Observer {
74 NSSCertDatabase::ImportCertFailure::ImportCertFailure( in ImportCertFailure()
79 NSSCertDatabase::ImportCertFailure::~ImportCertFailure() {} in ~ImportCertFailure()
81 NSSCertDatabase::NSSCertDatabase(crypto::ScopedPK11Slot public_slot, in NSSCertDatabase() function in net::NSSCertDatabase
97 NSSCertDatabase::~NSSCertDatabase() {} in ~NSSCertDatabase()
99 void NSSCertDatabase::ListCertsSync(CertificateList* certs) { in ListCertsSync()
103 void NSSCertDatabase::ListCerts( in ListCerts()
111 base::Bind(&NSSCertDatabase::ListCertsImpl, in ListCerts()
117 void NSSCertDatabase::ListCertsInSlot(const ListCertsCallback& callback, in ListCertsInSlot()
126 base::Bind(&NSSCertDatabase::ListCertsImpl, in ListCertsInSlot()
[all …]
Dnss_cert_database_unittest.cc60 cert_db_.reset(new NSSCertDatabase( in SetUp()
117 scoped_ptr<NSSCertDatabase> cert_db_;
286 NSSCertDatabase::ImportCertFailureList failed; in TEST_F()
287 EXPECT_TRUE(cert_db_->ImportCACerts(certs, NSSCertDatabase::TRUSTED_SSL, in TEST_F()
297 EXPECT_EQ(NSSCertDatabase::TRUSTED_SSL, in TEST_F()
317 NSSCertDatabase::ImportCertFailureList failed; in TEST_F()
318 EXPECT_TRUE(cert_db_->ImportCACerts(certs, NSSCertDatabase::TRUSTED_EMAIL, in TEST_F()
328 EXPECT_EQ(NSSCertDatabase::TRUSTED_EMAIL, in TEST_F()
348 NSSCertDatabase::ImportCertFailureList failed; in TEST_F()
349 EXPECT_TRUE(cert_db_->ImportCACerts(certs, NSSCertDatabase::TRUSTED_OBJ_SIGN, in TEST_F()
[all …]
Dnss_cert_database.h35 class NET_EXPORT NSSCertDatabase {
112 NSSCertDatabase(crypto::ScopedPK11Slot public_slot,
114 virtual ~NSSCertDatabase();
305 base::WeakPtrFactory<NSSCertDatabase> weak_factory_;
307 DISALLOW_COPY_AND_ASSIGN(NSSCertDatabase);
Dnss_cert_database_chromeos.cc24 : NSSCertDatabase(public_slot.Pass(), private_slot.Pass()) { in NSSCertDatabaseChromeOS()
66 NSSCertDatabase::ListModules(modules, need_rw); in ListModules()
83 NSSCertDatabase::ListCertsImpl(crypto::ScopedPK11Slot(), certs); in ListCertsImpl()
Dnss_cert_database_chromeos_unittest.cc156 NSSCertDatabase::ImportCertFailureList failed; in TEST_F()
158 db_1_->ImportCACerts(certs_1, NSSCertDatabase::TRUSTED_SSL, &failed)); in TEST_F()
162 db_2_->ImportCACerts(certs_2, NSSCertDatabase::TRUSTED_SSL, &failed)); in TEST_F()
224 NSSCertDatabase::ImportCertFailureList failed; in TEST_F()
226 db_1_->ImportServerCert(certs_1, NSSCertDatabase::TRUSTED_SSL, &failed)); in TEST_F()
230 db_2_->ImportServerCert(certs_2, NSSCertDatabase::TRUSTED_SSL, &failed)); in TEST_F()
Dnss_cert_database_chromeos.h17 class NET_EXPORT NSSCertDatabaseChromeOS : public NSSCertDatabase {
29 virtual void ListCerts(const NSSCertDatabase::ListCertsCallback& callback)
/external/chromium_org/net/third_party/mozilla_security_manager/
DnsNSSCertificateDB.cpp65 net::NSSCertDatabase::TrustBits trustBits, in ImportCACerts()
66 net::NSSCertDatabase::ImportCertFailureList* not_imported) { in ImportCACerts()
75 not_imported->push_back(net::NSSCertDatabase::ImportCertFailure( in ImportCACerts()
82 not_imported->push_back(net::NSSCertDatabase::ImportCertFailure( in ImportCACerts()
122 not_imported->push_back(net::NSSCertDatabase::ImportCertFailure( in ImportCACerts()
129 not_imported->push_back(net::NSSCertDatabase::ImportCertFailure( in ImportCACerts()
140 not_imported->push_back(net::NSSCertDatabase::ImportCertFailure( in ImportCACerts()
161 not_imported->push_back(net::NSSCertDatabase::ImportCertFailure( in ImportCACerts()
174 net::NSSCertDatabase::TrustBits trustBits, in ImportServerCert()
175 net::NSSCertDatabase::ImportCertFailureList* not_imported) { in ImportServerCert()
[all …]
DnsNSSCertificateDB.h59 net::NSSCertDatabase::TrustBits trustBits,
60 net::NSSCertDatabase::ImportCertFailureList* not_imported);
65 net::NSSCertDatabase::TrustBits trustBits,
66 net::NSSCertDatabase::ImportCertFailureList* not_imported);
70 net::NSSCertDatabase::TrustBits trustBits);
/external/chromium_org/chrome/browser/
Dcertificate_manager_model.h63 const net::NSSCertDatabase* cert_db() const { return cert_db_; } in cert_db()
94 net::NSSCertDatabase::TrustBits trust_bits,
95 net::NSSCertDatabase::ImportCertFailureList* not_imported);
109 net::NSSCertDatabase::TrustBits trust_bits,
110 net::NSSCertDatabase::ImportCertFailureList* not_imported);
117 net::NSSCertDatabase::TrustBits trust_bits);
127 CertificateManagerModel(net::NSSCertDatabase* nss_cert_database,
135 net::NSSCertDatabase* cert_db,
143 net::NSSCertDatabase* cert_db);
152 net::NSSCertDatabase* cert_db_;
Dcertificate_manager_model.cc66 net::NSSCertDatabase* nss_cert_database, in CertificateManagerModel()
171 net::NSSCertDatabase::TrustBits trust_bits, in ImportCACerts()
172 net::NSSCertDatabase::ImportCertFailureList* not_imported) { in ImportCACerts()
181 net::NSSCertDatabase::TrustBits trust_bits, in ImportServerCert()
182 net::NSSCertDatabase::ImportCertFailureList* not_imported) { in ImportServerCert()
193 net::NSSCertDatabase::TrustBits trust_bits) { in SetCertTrust()
211 net::NSSCertDatabase* cert_db, in DidGetCertDBOnUIThread()
227 net::NSSCertDatabase* cert_db) { in DidGetCertDBOnIOThread()
252 net::NSSCertDatabase* cert_db = GetNSSCertDatabaseForResourceContext( in GetCertDBOnIOThread()
/external/chromium_org/chromeos/network/onc/
Donc_certificate_importer_impl.h28 class NSSCertDatabase; variable
47 net::NSSCertDatabase* target_nssdb_);
65 net::NSSCertDatabase* nssdb);
71 net::NSSCertDatabase* target_nssdb);
76 net::NSSCertDatabase* target_nssdb);
83 net::NSSCertDatabase* nssdb,
95 net::NSSCertDatabase* nssdb,
100 net::NSSCertDatabase* nssdb);
106 net::NSSCertDatabase* target_nssdb_;
Donc_certificate_importer_impl.cc48 net::NSSCertDatabase* target_nssdb) in CertificateImporterImpl()
94 net::NSSCertDatabase* nssdb) { in ParseAndStoreCertificates()
124 net::NSSCertDatabase* target_nssdb) { in ListCertsWithNickname()
164 net::NSSCertDatabase* target_nssdb) { in DeleteCertAndKeyByNickname()
195 net::NSSCertDatabase* nssdb, in ParseAndStoreCertificate()
238 net::NSSCertDatabase* nssdb, in ParseServerOrCaCertificate()
288 net::NSSCertDatabase::TrustBits trust = (import_with_ssl_trust ? in ParseServerOrCaCertificate()
289 net::NSSCertDatabase::TRUSTED_SSL : in ParseServerOrCaCertificate()
290 net::NSSCertDatabase::TRUST_DEFAULT); in ParseServerOrCaCertificate()
297 net::NSSCertDatabase::TrustBits missing_trust_bits = in ParseServerOrCaCertificate()
[all …]
/external/chromium_org/chrome/browser/net/
Dnss_context.cc19 const base::Callback<void(net::NSSCertDatabase*)>& callback, in DidGetCertDBOnIOThread()
20 net::NSSCertDatabase* cert_db) { in DidGetCertDBOnIOThread()
30 const base::Callback<void(net::NSSCertDatabase*)>& callback) { in GetCertDBOnIOThread()
35 net::NSSCertDatabase* cert_db = GetNSSCertDatabaseForResourceContext( in GetCertDBOnIOThread()
47 const base::Callback<void(net::NSSCertDatabase*)>& callback) { in GetNSSCertDatabaseForProfile()
Dnss_context.h17 class NSSCertDatabase; variable
44 net::NSSCertDatabase* GetNSSCertDatabaseForResourceContext(
46 const base::Callback<void(net::NSSCertDatabase*)>& callback)
64 const base::Callback<void(net::NSSCertDatabase*)>& callback);
Dnss_context_linux.cc12 net::NSSCertDatabase* g_nss_cert_database = NULL;
28 net::NSSCertDatabase* GetNSSCertDatabaseForResourceContext( in GetNSSCertDatabaseForResourceContext()
30 const base::Callback<void(net::NSSCertDatabase*)>& callback) { in GetNSSCertDatabaseForResourceContext()
38 g_nss_cert_database = new net::NSSCertDatabase( in GetNSSCertDatabaseForResourceContext()
Dnss_context_chromeos_browsertest.cc23 void NotCalledDbCallback(net::NSSCertDatabase* db) { ASSERT_TRUE(false); } in NotCalledDbCallback()
73 net::NSSCertDatabase* db = GetNSSCertDatabaseForResourceContext( in GetDBAndDoTestsOnIOThread()
87 net::NSSCertDatabase* db) { in DoTestsOnIOThread()
102 net::NSSCertDatabase* db = GetNSSCertDatabaseForResourceContext( in DoGetDBAgainTestsOnIOThread()
114 net::NSSCertDatabase* db_;
Dnss_context_chromeos.cc94 const base::Callback<void(net::NSSCertDatabase*)>& callback, in CallWithNSSCertDatabase()
130 net::NSSCertDatabase* GetNSSCertDatabaseForResourceContext( in GetNSSCertDatabaseForResourceContext()
132 const base::Callback<void(net::NSSCertDatabase*)>& callback) { in GetNSSCertDatabaseForResourceContext()
/external/chromium_org/chromeos/
Dcert_loader_unittest.cc114 int GetDbPrivateSlotId(net::NSSCertDatabase* db) { in GetDbPrivateSlotId()
119 net::NSSCertDatabase* database, in ImportCACert()
131 net::NSSCertDatabase::ImportCertFailureList failed; in ImportCACert()
133 net::NSSCertDatabase::TRUST_DEFAULT, in ImportCACert()
139 net::NSSCertDatabase* database, in ImportClientCertAndKey()
305 ASSERT_EQ(net::NSSCertDatabase::TRUST_DEFAULT, in TEST_F()
308 certs[0].get(), net::CA_CERT, net::NSSCertDatabase::TRUSTED_SSL)); in TEST_F()
Dcert_loader.h21 class NSSCertDatabase; variable
72 void StartWithNSSDB(net::NSSCertDatabase* database);
123 net::NSSCertDatabase* database_;
/external/chromium_org/chrome/browser/chromeos/policy/
Dpolicy_cert_verifier_browsertest.cc114 net::NSSCertDatabase::TrustBits trust = in LoadCertificate()
116 EXPECT_EQ(net::NSSCertDatabase::TRUST_DEFAULT, trust); in LoadCertificate()
154 net::NSSCertDatabase::ImportCertFailureList failure_list; in TEST_F()
156 test_ca_cert_list_, net::NSSCertDatabase::TRUSTED_SSL, &failure_list)); in TEST_F()
160 net::NSSCertDatabase::TrustBits trust = in TEST_F()
162 EXPECT_EQ(net::NSSCertDatabase::TRUSTED_SSL, trust); in TEST_F()
Duser_network_configuration_updater.h39 class NSSCertDatabase; variable
118 void CreateAndSetCertificateImporter(net::NSSCertDatabase* database);
/external/chromium_org/chrome/browser/chromeos/net/
Dcert_verify_proc_chromeos_unittest.cc138 net::NSSCertDatabase::ImportCertFailureList failed; in TEST_F()
140 root_1_, net::NSSCertDatabase::TRUSTED_SSL, &failed)); in TEST_F()
156 root_2_, net::NSSCertDatabase::TRUSTED_SSL, &failed)); in TEST_F()
253 net::NSSCertDatabase::ImportCertFailureList failed; in TEST_F()
255 db_2_->ImportCACerts(roots, net::NSSCertDatabase::TRUSTED_SSL, &failed)); in TEST_F()
319 net::NSSCertDatabase::ImportCertFailureList failed; in TEST_P()
321 root_1_, net::NSSCertDatabase::TRUSTED_SSL, &failed)); in TEST_P()
332 net::NSSCertDatabase::ImportCertFailureList failed; in TEST_P()
334 root_2_, net::NSSCertDatabase::TRUSTED_SSL, &failed)); in TEST_P()
/external/chromium_org/chrome/browser/chromeos/platform_keys/
Dplatform_keys_nss.cc73 typedef base::Callback<void(net::NSSCertDatabase* cert_db)> GetCertDBCallback;
82 net::NSSCertDatabase* cert_db) { in DidGetCertDBOnIOThread()
114 net::NSSCertDatabase* cert_db = GetNSSCertDatabaseForResourceContext( in GetCertDatabaseOnIOThread()
356 net::NSSCertDatabase* cert_db) { in GenerateRSAKeyWithDB()
413 void RSASignWithDB(scoped_ptr<SignState> state, net::NSSCertDatabase* cert_db) { in RSASignWithDB()
460 net::NSSCertDatabase* cert_db) { in GetCertificatesWithDB()
471 net::NSSCertDatabase* cert_db) { in ImportCertificateWithDB()
528 net::NSSCertDatabase* cert_db) { in RemoveCertificateWithDB()
541 net::NSSCertDatabase* cert_db) { in GetTokensWithDB()
/external/chromium_org/chrome/browser/ui/webui/options/
Dcertificate_manager_handler.cc562 net::NSSCertDatabase::TrustBits trust_bits = in GetCATrust()
565 static_cast<bool>(trust_bits & net::NSSCertDatabase::TRUSTED_SSL)); in GetCATrust()
567 static_cast<bool>(trust_bits & net::NSSCertDatabase::TRUSTED_EMAIL)); in GetCATrust()
569 static_cast<bool>(trust_bits & net::NSSCertDatabase::TRUSTED_OBJ_SIGN)); in GetCATrust()
593 trust_ssl * net::NSSCertDatabase::TRUSTED_SSL + in EditCATrust()
594 trust_email * net::NSSCertDatabase::TRUSTED_EMAIL + in EditCATrust()
595 trust_obj_sign * net::NSSCertDatabase::TRUSTED_OBJ_SIGN); in EditCATrust()
874 net::NSSCertDatabase::ImportCertFailureList not_imported; in ImportServerFileRead()
878 net::NSSCertDatabase::TRUST_DEFAULT, in ImportServerFileRead()
962 net::NSSCertDatabase::ImportCertFailureList not_imported; in ImportCATrustSelected()
[all …]
/external/chromium_org/chrome/common/net/
Dx509_certificate_model_unittest.cc228 net::NSSCertDatabase db(crypto::ScopedPK11Slot(PK11_ReferenceSlot( in TEST()
236 cert.get(), net::CA_CERT, net::NSSCertDatabase::DISTRUSTED_SSL)); in TEST()
262 net::NSSCertDatabase db(crypto::ScopedPK11Slot(PK11_ReferenceSlot( in TEST()
269 cert.get(), net::SERVER_CERT, net::NSSCertDatabase::TRUSTED_SSL)); in TEST()
276 cert.get(), net::SERVER_CERT, net::NSSCertDatabase::DISTRUSTED_SSL)); in TEST()

12