OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_win.h" | 5 #include "net/socket/ssl_client_socket_win.h" |
6 | 6 |
7 #include <schnlsp.h> | 7 #include <schnlsp.h> |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/lazy_instance.h" | 12 #include "base/lazy_instance.h" |
13 #include "base/stl_util.h" | 13 #include "base/stl_util.h" |
14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
15 #include "base/synchronization/lock.h" | 15 #include "base/synchronization/lock.h" |
16 #include "base/utf_string_conversions.h" | 16 #include "base/utf_string_conversions.h" |
17 #include "net/base/cert_verifier.h" | 17 #include "net/base/cert_verifier.h" |
18 #include "net/base/connection_type_histograms.h" | 18 #include "net/base/connection_type_histograms.h" |
19 #include "net/base/host_port_pair.h" | 19 #include "net/base/host_port_pair.h" |
20 #include "net/base/io_buffer.h" | 20 #include "net/base/io_buffer.h" |
21 #include "net/base/net_log.h" | 21 #include "net/base/net_log.h" |
22 #include "net/base/net_errors.h" | 22 #include "net/base/net_errors.h" |
| 23 #include "net/base/single_request_cert_verifier.h" |
23 #include "net/base/ssl_cert_request_info.h" | 24 #include "net/base/ssl_cert_request_info.h" |
24 #include "net/base/ssl_connection_status_flags.h" | 25 #include "net/base/ssl_connection_status_flags.h" |
25 #include "net/base/ssl_info.h" | 26 #include "net/base/ssl_info.h" |
26 #include "net/base/x509_certificate_net_log_param.h" | 27 #include "net/base/x509_certificate_net_log_param.h" |
27 #include "net/socket/client_socket_handle.h" | 28 #include "net/socket/client_socket_handle.h" |
28 | 29 |
29 #pragma comment(lib, "secur32.lib") | 30 #pragma comment(lib, "secur32.lib") |
30 | 31 |
31 namespace net { | 32 namespace net { |
32 | 33 |
(...skipping 1536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1569 UpdateConnectionTypeHistograms(CONNECTION_SSL_MD2_CA); | 1570 UpdateConnectionTypeHistograms(CONNECTION_SSL_MD2_CA); |
1570 } | 1571 } |
1571 | 1572 |
1572 void SSLClientSocketWin::FreeSendBuffer() { | 1573 void SSLClientSocketWin::FreeSendBuffer() { |
1573 SECURITY_STATUS status = FreeContextBuffer(send_buffer_.pvBuffer); | 1574 SECURITY_STATUS status = FreeContextBuffer(send_buffer_.pvBuffer); |
1574 DCHECK(status == SEC_E_OK); | 1575 DCHECK(status == SEC_E_OK); |
1575 memset(&send_buffer_, 0, sizeof(send_buffer_)); | 1576 memset(&send_buffer_, 0, sizeof(send_buffer_)); |
1576 } | 1577 } |
1577 | 1578 |
1578 } // namespace net | 1579 } // namespace net |
OLD | NEW |