| Index: net/socket/ssl_client_socket_mac.h
|
| ===================================================================
|
| --- net/socket/ssl_client_socket_mac.h (revision 65819)
|
| +++ net/socket/ssl_client_socket_mac.h (working copy)
|
| @@ -14,6 +14,7 @@
|
| #include "base/scoped_ptr.h"
|
| #include "net/base/cert_verify_result.h"
|
| #include "net/base/completion_callback.h"
|
| +#include "net/base/host_port_pair.h"
|
| #include "net/base/net_log.h"
|
| #include "net/base/ssl_config_service.h"
|
| #include "net/socket/ssl_client_socket.h"
|
| @@ -27,11 +28,13 @@
|
| class SSLClientSocketMac : public SSLClientSocket {
|
| public:
|
| // Takes ownership of the |transport_socket|, which must already be connected.
|
| - // The given hostname will be compared with the name(s) in the server's
|
| - // certificate during the SSL handshake. ssl_config specifies the SSL
|
| - // settings.
|
| + // The hostname specified in |host_and_port| will be compared with the name(s)
|
| + // in the server's certificate during the SSL handshake. If SSL client
|
| + // authentication is requested, the host_and_port field of SSLCertRequestInfo
|
| + // will be populated with |host_and_port|. |ssl_config| specifies
|
| + // the SSL settings.
|
| SSLClientSocketMac(ClientSocketHandle* transport_socket,
|
| - const std::string& hostname,
|
| + const HostPortPair& host_and_port,
|
| const SSLConfig& ssl_config);
|
| ~SSLClientSocketMac();
|
|
|
| @@ -98,7 +101,7 @@
|
| CompletionCallbackImpl<SSLClientSocketMac> transport_write_callback_;
|
|
|
| scoped_ptr<ClientSocketHandle> transport_;
|
| - std::string hostname_;
|
| + HostPortPair host_and_port_;
|
| SSLConfig ssl_config_;
|
|
|
| CompletionCallback* user_connect_callback_;
|
|
|