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

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: chromeos compile fix Created 8 years, 7 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 5129a2178220d5ba45c968db2097e5ddfdaad76d..bc019c7f850a610dea5c35db228e0eac7d7bb4f4 100644
--- a/chrome/browser/ui/webui/options2/certificate_manager_handler2.cc
+++ b/chrome/browser/ui/webui/options2/certificate_manager_handler2.cc
@@ -808,6 +808,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.
Ryan Sleevi 2012/05/16 03:57:23 open a bug for these two?
mattm 2012/05/16 22:30:51 filed / added links.
&not_imported);
if (!result) {
ShowError(
@@ -886,6 +887,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