Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5994)

Unified Diff: chrome/browser/ui/webui/options2/certificate_manager_handler2.cc

Issue 9940001: Fix imported server certs being distrusted in NSS 3.13. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/options2/certificate_manager_handler2.cc
diff --git a/chrome/browser/ui/webui/options2/certificate_manager_handler2.cc b/chrome/browser/ui/webui/options2/certificate_manager_handler2.cc
index e288814bd70a538ad8e119d957ad488675170c04..90cd769c51e248f2828597351a7d4a27fac8f1a7 100644
--- a/chrome/browser/ui/webui/options2/certificate_manager_handler2.cc
+++ b/chrome/browser/ui/webui/options2/certificate_manager_handler2.cc
@@ -818,6 +818,7 @@ void CertificateManagerHandler::ImportServerFileRead(int read_errno,
net::CertDatabase::ImportCertFailureList not_imported;
bool result = certificate_manager_model_->ImportServerCert(
selected_cert_list_,
+ net::CertDatabase::UNTRUSTED, // TODO(mattm): Add UI for trust.
&not_imported);
if (!result) {
ShowError(
@@ -896,6 +897,7 @@ void CertificateManagerHandler::ImportCATrustSelected(const ListValue* args) {
return;
}
+ // TODO(mattm): add UI for setting explicit distrust, too.
net::CertDatabase::ImportCertFailureList not_imported;
bool result = certificate_manager_model_->ImportCACerts(
selected_cert_list_,

Powered by Google App Engine
This is Rietveld 408576698