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

Unified Diff: net/socket/ssl_client_socket_mac.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/socket/ssl_client_socket_mac.cc
===================================================================
--- net/socket/ssl_client_socket_mac.cc (revision 65205)
+++ net/socket/ssl_client_socket_mac.cc (working copy)
@@ -14,6 +14,7 @@
#include "base/string_util.h"
#include "net/base/address_list.h"
#include "net/base/cert_verifier.h"
+#include "net/base/host_port_pair.h"
#include "net/base/io_buffer.h"
#include "net/base/net_errors.h"
#include "net/base/net_log.h"
@@ -500,6 +501,7 @@
SSLClientSocketMac::SSLClientSocketMac(ClientSocketHandle* transport_socket,
const std::string& hostname,
+ uint16 port,
const SSLConfig& ssl_config)
: handshake_io_callback_(this, &SSLClientSocketMac::OnHandshakeIOComplete),
transport_read_callback_(this,
@@ -508,6 +510,7 @@
&SSLClientSocketMac::OnTransportWriteComplete),
transport_(transport_socket),
hostname_(hostname),
+ port_(port),
ssl_config_(ssl_config),
user_connect_callback_(NULL),
user_read_callback_(NULL),
@@ -720,7 +723,7 @@
}
// Now get the available client certs whose issuers are allowed by the server.
- cert_request_info->host_and_port = hostname_;
+ cert_request_info->host_and_port = HostPortPair(hostname_, port_).ToString();
cert_request_info->client_certs.clear();
X509Certificate::GetSSLClientCertificates(hostname_,
wtc 2010/11/11 01:11:35 Please add a TODO comment to note that we should c
Ryan Hamilton 2010/11/11 18:57:00 Done.
valid_issuers,

Powered by Google App Engine
This is Rietveld 408576698