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

Unified Diff: content/browser/ssl/ssl_client_auth_handler.cc

Issue 1304143010: Plumbing SSLPrivateKey Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix rebase. Created 4 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 | « content/browser/ssl/ssl_client_auth_handler.h ('k') | content/public/browser/client_certificate_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/ssl/ssl_client_auth_handler.cc
diff --git a/content/browser/ssl/ssl_client_auth_handler.cc b/content/browser/ssl/ssl_client_auth_handler.cc
index d0bc275d5cb04ef38bad8136c48e63d5410faad9..e5d01811fe245ce995da114678dba55b6cd328b1 100644
--- a/content/browser/ssl/ssl_client_auth_handler.cc
+++ b/content/browser/ssl/ssl_client_auth_handler.cc
@@ -39,13 +39,14 @@ class ClientCertificateDelegateImpl : public ClientCertificateDelegate {
}
// ClientCertificateDelegate implementation:
- void ContinueWithCertificate(net::X509Certificate* cert) override {
+ void ContinueWithCertificate(net::X509Certificate* cert,
+ net::SSLPrivateKey* private_key) override {
DCHECK(!continue_called_);
continue_called_ = true;
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
base::Bind(&SSLClientAuthHandler::ContinueWithCertificate, handler_,
- make_scoped_refptr(cert)));
+ make_scoped_refptr(cert), make_scoped_refptr(private_key)));
}
private:
@@ -148,9 +149,10 @@ void SSLClientAuthHandler::SelectCertificate() {
// static
void SSLClientAuthHandler::ContinueWithCertificate(
const base::WeakPtr<SSLClientAuthHandler>& handler,
- net::X509Certificate* cert) {
+ net::X509Certificate* cert,
+ net::SSLPrivateKey* private_key) {
if (handler)
- handler->delegate_->ContinueWithCertificate(cert);
+ handler->delegate_->ContinueWithCertificate(cert, private_key);
}
// static
@@ -179,7 +181,8 @@ void SSLClientAuthHandler::DidGetClientCerts() {
BrowserThread::IO, FROM_HERE,
base::Bind(&SSLClientAuthHandler::ContinueWithCertificate,
weak_factory_.GetWeakPtr(),
- scoped_refptr<net::X509Certificate>()));
+ scoped_refptr<net::X509Certificate>(),
+ scoped_refptr<net::SSLPrivateKey>()));
return;
}
« no previous file with comments | « content/browser/ssl/ssl_client_auth_handler.h ('k') | content/public/browser/client_certificate_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698