Index: net/socket/ssl_client_socket_win.cc |
=================================================================== |
--- net/socket/ssl_client_socket_win.cc (revision 69359) |
+++ net/socket/ssl_client_socket_win.cc (working copy) |
@@ -376,7 +376,8 @@ |
SSLClientSocketWin::SSLClientSocketWin(ClientSocketHandle* transport_socket, |
const HostPortPair& host_and_port, |
- const SSLConfig& ssl_config) |
+ const SSLConfig& ssl_config, |
+ CertVerifier* cert_verifier) |
: ALLOW_THIS_IN_INITIALIZER_LIST( |
handshake_io_callback_(this, |
&SSLClientSocketWin::OnHandshakeIOComplete)), |
@@ -393,6 +394,7 @@ |
user_write_callback_(NULL), |
user_write_buf_len_(0), |
next_state_(STATE_NONE), |
+ cert_verifier_(cert_verifier), |
creds_(NULL), |
isc_status_(SEC_E_OK), |
payload_send_buffer_len_(0), |
@@ -1124,7 +1126,7 @@ |
flags |= X509Certificate::VERIFY_REV_CHECKING_ENABLED; |
if (ssl_config_.verify_ev_cert) |
flags |= X509Certificate::VERIFY_EV_CERT; |
- verifier_.reset(new CertVerifier); |
+ verifier_.reset(new SingleRequestCertVerifier(cert_verifier_)); |
return verifier_->Verify(server_cert_, host_and_port_.host(), flags, |
&server_cert_verify_result_, |
&handshake_io_callback_); |