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

Unified Diff: net/http/http_stream_request.cc

Issue 4339001: Correctly handle SSL Client Authentication requests when connecting... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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_stream_request.cc
===================================================================
--- net/http/http_stream_request.cc (revision 65819)
+++ net/http/http_stream_request.cc (working copy)
@@ -505,9 +505,9 @@
scoped_refptr<SSLSocketParams> ssl_params;
if (proxy_info()->is_https()) {
// Set ssl_params, and unset proxy_tcp_params
- ssl_params = GenerateSslParams(proxy_tcp_params, NULL, NULL,
+ ssl_params = GenerateSSLParams(proxy_tcp_params, NULL, NULL,
ProxyServer::SCHEME_DIRECT,
- proxy_host_port->host(),
+ *proxy_host_port.get(),
want_spdy_over_npn);
proxy_tcp_params = NULL;
}
@@ -544,9 +544,10 @@
// Deal with SSL - which layers on top of any given proxy.
if (using_ssl_) {
scoped_refptr<SSLSocketParams> ssl_params =
- GenerateSslParams(tcp_params, http_proxy_params, socks_params,
+ GenerateSSLParams(tcp_params, http_proxy_params, socks_params,
proxy_info()->proxy_server().scheme(),
- request_info().url.HostNoBrackets(),
+ HostPortPair(request_info().url.HostNoBrackets(),
eroman 2010/11/12 01:12:56 How about: HostPortPair::FromURL(request_info().ur
Ryan Hamilton 2010/11/12 16:47:26 Done. Awesome!
+ request_info().url.EffectiveIntPort()),
want_spdy_over_npn);
SSLClientSocketPool* ssl_pool = NULL;
if (proxy_info()->is_direct())
@@ -828,12 +829,12 @@
// Returns a newly create SSLSocketParams, and sets several
// fields of ssl_config_.
-scoped_refptr<SSLSocketParams> HttpStreamRequest::GenerateSslParams(
+scoped_refptr<SSLSocketParams> HttpStreamRequest::GenerateSSLParams(
scoped_refptr<TCPSocketParams> tcp_params,
scoped_refptr<HttpProxySocketParams> http_proxy_params,
scoped_refptr<SOCKSSocketParams> socks_params,
ProxyServer::Scheme proxy_scheme,
- std::string hostname,
+ const HostPortPair& host_and_port,
bool want_spdy_over_npn) {
if (factory_->IsTLSIntolerantServer(request_info().url)) {
@@ -859,7 +860,7 @@
scoped_refptr<SSLSocketParams> ssl_params(
new SSLSocketParams(tcp_params, socks_params, http_proxy_params,
- proxy_scheme, hostname,
+ proxy_scheme, host_and_port,
*ssl_config(), load_flags,
force_spdy_always_ && force_spdy_over_ssl_,
want_spdy_over_npn));

Powered by Google App Engine
This is Rietveld 408576698