OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/socket/ssl_client_socket_mac.h" | 5 #include "net/socket/ssl_client_socket_mac.h" |
6 | 6 |
7 #include <CoreServices/CoreServices.h> | 7 #include <CoreServices/CoreServices.h> |
8 #include <netdb.h> | 8 #include <netdb.h> |
9 #include <sys/socket.h> | 9 #include <sys/socket.h> |
10 #include <sys/types.h> | 10 #include <sys/types.h> |
(...skipping 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1151 } | 1151 } |
1152 | 1152 |
1153 int flags = 0; | 1153 int flags = 0; |
1154 if (ssl_config_.rev_checking_enabled) | 1154 if (ssl_config_.rev_checking_enabled) |
1155 flags |= X509Certificate::VERIFY_REV_CHECKING_ENABLED; | 1155 flags |= X509Certificate::VERIFY_REV_CHECKING_ENABLED; |
1156 if (ssl_config_.verify_ev_cert) | 1156 if (ssl_config_.verify_ev_cert) |
1157 flags |= X509Certificate::VERIFY_EV_CERT; | 1157 flags |= X509Certificate::VERIFY_EV_CERT; |
1158 verifier_.reset(new SingleRequestCertVerifier(cert_verifier_)); | 1158 verifier_.reset(new SingleRequestCertVerifier(cert_verifier_)); |
1159 return verifier_->Verify( | 1159 return verifier_->Verify( |
1160 server_cert_, host_and_port_.host(), flags, | 1160 server_cert_, host_and_port_.host(), flags, |
| 1161 NULL /* no CRL set */, |
1161 &server_cert_verify_result_, | 1162 &server_cert_verify_result_, |
1162 base::Bind(&SSLClientSocketMac::OnHandshakeIOComplete, | 1163 base::Bind(&SSLClientSocketMac::OnHandshakeIOComplete, |
1163 base::Unretained(this)), | 1164 base::Unretained(this)), |
1164 net_log_); | 1165 net_log_); |
1165 } | 1166 } |
1166 | 1167 |
1167 int SSLClientSocketMac::DoVerifyCertComplete(int result) { | 1168 int SSLClientSocketMac::DoVerifyCertComplete(int result) { |
1168 DCHECK(verifier_.get()); | 1169 DCHECK(verifier_.get()); |
1169 verifier_.reset(); | 1170 verifier_.reset(); |
1170 | 1171 |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1418 if (rv < 0 && rv != ERR_IO_PENDING) { | 1419 if (rv < 0 && rv != ERR_IO_PENDING) { |
1419 us->write_io_buf_ = NULL; | 1420 us->write_io_buf_ = NULL; |
1420 return OSStatusFromNetError(rv); | 1421 return OSStatusFromNetError(rv); |
1421 } | 1422 } |
1422 | 1423 |
1423 // always lie to our caller | 1424 // always lie to our caller |
1424 return noErr; | 1425 return noErr; |
1425 } | 1426 } |
1426 | 1427 |
1427 } // namespace net | 1428 } // namespace net |
OLD | NEW |