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

Unified Diff: chrome/browser/renderer_host/render_message_filter.cc

Issue 5686002: NSS: PKCS 11 password prompt. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressing review comments Created 9 years, 11 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
« no previous file with comments | « chrome/browser/gtk/ssl_client_certificate_selector.cc ('k') | chrome/browser/ui/pk11_password_dialog.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/render_message_filter.cc
diff --git a/chrome/browser/renderer_host/render_message_filter.cc b/chrome/browser/renderer_host/render_message_filter.cc
index 73af165bc58a56c2b10be055a26502bed2c82516..caaae37cdcd401c29df0a9fa9f94cd7aaddfcdea 100644
--- a/chrome/browser/renderer_host/render_message_filter.cc
+++ b/chrome/browser/renderer_host/render_message_filter.cc
@@ -84,6 +84,9 @@
#if defined(OS_WIN)
#include "chrome/common/child_process_host.h"
#endif
+#if defined(USE_NSS)
+#include "chrome/browser/ui/pk11_password_dialog.h"
+#endif
#if defined(USE_TCMALLOC)
#include "chrome/browser/browser_about_handler.h"
#endif
@@ -1377,6 +1380,13 @@ void RenderMessageFilter::OnKeygenOnWorkerThread(
// Generate a signed public key and challenge, then send it back.
net::KeygenHandler keygen_handler(key_size_in_bits, challenge_string, url);
+#if defined(USE_NSS)
+ // Attach a password delegate so we can authenticate.
+ keygen_handler.set_pk11_password_delegate(
+ browser::NewPK11BlockingDialogDelegate(browser::kPK11PasswordKeygen,
+ url.host()));
+#endif // defined(USE_NSS)
+
ViewHostMsg_Keygen::WriteReplyParams(
reply_msg,
keygen_handler.GenKeyAndSignChallenge());
« no previous file with comments | « chrome/browser/gtk/ssl_client_certificate_selector.cc ('k') | chrome/browser/ui/pk11_password_dialog.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698