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

Unified Diff: net/http/http_cache_transaction.cc

Issue 1304143010: Plumbing SSLPrivateKey Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 3 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: net/http/http_cache_transaction.cc
diff --git a/net/http/http_cache_transaction.cc b/net/http/http_cache_transaction.cc
index 9dc77b04acb39a0e0acd6ff2af5fd5cf6c3d1a81..1ec292df4b89f863f99e8bc79c8e64a387887f9b 100644
--- a/net/http/http_cache_transaction.cc
+++ b/net/http/http_cache_transaction.cc
@@ -43,6 +43,7 @@
#include "net/http/http_util.h"
#include "net/ssl/ssl_cert_request_info.h"
#include "net/ssl/ssl_config_service.h"
+#include "net/ssl/ssl_private_key.h"
davidben 2015/09/25 20:10:11 Not necessary
svaldez 2015/09/28 16:54:52 Done.
using base::Time;
using base::TimeDelta;
@@ -406,6 +407,7 @@ int HttpCache::Transaction::RestartIgnoringLastError(
int HttpCache::Transaction::RestartWithCertificate(
X509Certificate* client_cert,
+ SSLPrivateKey* client_pkey,
const CompletionCallback& callback) {
DCHECK(!callback.is_null());
@@ -415,7 +417,7 @@ int HttpCache::Transaction::RestartWithCertificate(
if (!cache_.get())
return ERR_UNEXPECTED;
- int rv = RestartNetworkRequestWithCertificate(client_cert);
+ int rv = RestartNetworkRequestWithCertificate(client_cert, client_pkey);
if (rv == ERR_IO_PENDING)
callback_ = callback;
@@ -2283,13 +2285,15 @@ int HttpCache::Transaction::RestartNetworkRequest() {
}
int HttpCache::Transaction::RestartNetworkRequestWithCertificate(
- X509Certificate* client_cert) {
+ X509Certificate* client_cert,
+ SSLPrivateKey* client_pkey) {
DCHECK(mode_ & WRITE || mode_ == NONE);
DCHECK(network_trans_.get());
DCHECK_EQ(STATE_NONE, next_state_);
next_state_ = STATE_SEND_REQUEST_COMPLETE;
- int rv = network_trans_->RestartWithCertificate(client_cert, io_callback_);
+ int rv = network_trans_->RestartWithCertificate(client_cert, client_pkey,
+ io_callback_);
if (rv != ERR_IO_PENDING)
return DoLoop(rv);
return rv;

Powered by Google App Engine
This is Rietveld 408576698