From 4f4de7e6e1393bf1b068337cdf8895e91addfa72 Mon Sep 17 00:00:00 2001 From: "rch@chromium.org" Date: Fri, 12 Nov 2010 19:55:27 +0000 Subject: Correctly handle SSL Client Authentication requests when connecting to an HTTPS/SPDY proxy. Modify SSLClientSocket classes to correctly set the host_and_port field of the cert_request_info. Modify HttpNetworkTransaction to use this field when populating the SSL client auth cache. BUG=59292 TEST=HttpProxyClientSocketPoolTest.SslClientAuth Review URL: http://codereview.chromium.org/4339001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65976 0039d316-1c4b-4281-b951-d872f2087c98 --- remoting/jingle_glue/ssl_socket_adapter.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'remoting') diff --git a/remoting/jingle_glue/ssl_socket_adapter.cc b/remoting/jingle_glue/ssl_socket_adapter.cc index c67115f..45accf5 100644 --- a/remoting/jingle_glue/ssl_socket_adapter.cc +++ b/remoting/jingle_glue/ssl_socket_adapter.cc @@ -7,6 +7,7 @@ #include "base/compiler_specific.h" #include "base/message_loop.h" #include "net/base/address_list.h" +#include "net/base/host_port_pair.h" #include "net/base/net_errors.h" #include "net/base/ssl_config_service.h" #include "net/base/sys_addrinfo.h" @@ -67,7 +68,7 @@ int SSLSocketAdapter::BeginSSL() { transport_socket_->set_addr(talk_base::SocketAddress(hostname_, 0)); ssl_socket_.reset( net::ClientSocketFactory::GetDefaultFactory()->CreateSSLClientSocket( - transport_socket_, hostname_.c_str(), ssl_config, + transport_socket_, net::HostPortPair(hostname_, 443), ssl_config, NULL /* ssl_host_info */)); int result = ssl_socket_->Connect(&connected_callback_); -- cgit v1.1