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

Side by Side Diff: net/socket/ssl_client_socket_win.cc

Issue 9476035: Make CertVerifier a pure virtual interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win shared fix Created 8 years, 9 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/socket/ssl_client_socket_unittest.cc ('k') | net/socket/ssl_host_info.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <map> 10 #include <map>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/lazy_instance.h" 14 #include "base/lazy_instance.h"
15 #include "base/stl_util.h" 15 #include "base/stl_util.h"
16 #include "base/string_util.h" 16 #include "base/string_util.h"
17 #include "base/synchronization/lock.h" 17 #include "base/synchronization/lock.h"
18 #include "base/utf_string_conversions.h" 18 #include "base/utf_string_conversions.h"
19 #include "net/base/cert_verifier.h" 19 #include "net/base/cert_verifier.h"
20 #include "net/base/connection_type_histograms.h" 20 #include "net/base/connection_type_histograms.h"
21 #include "net/base/host_port_pair.h" 21 #include "net/base/host_port_pair.h"
22 #include "net/base/io_buffer.h" 22 #include "net/base/io_buffer.h"
23 #include "net/base/net_log.h" 23 #include "net/base/net_log.h"
24 #include "net/base/net_errors.h" 24 #include "net/base/net_errors.h"
25 #include "net/base/single_request_cert_verifier.h"
25 #include "net/base/ssl_cert_request_info.h" 26 #include "net/base/ssl_cert_request_info.h"
26 #include "net/base/ssl_connection_status_flags.h" 27 #include "net/base/ssl_connection_status_flags.h"
27 #include "net/base/ssl_info.h" 28 #include "net/base/ssl_info.h"
28 #include "net/base/x509_certificate_net_log_param.h" 29 #include "net/base/x509_certificate_net_log_param.h"
29 #include "net/socket/client_socket_handle.h" 30 #include "net/socket/client_socket_handle.h"
30 31
31 #pragma comment(lib, "secur32.lib") 32 #pragma comment(lib, "secur32.lib")
32 33
33 namespace net { 34 namespace net {
34 35
(...skipping 1557 matching lines...) Expand 10 before | Expand all | Expand 10 after
1592 UpdateConnectionTypeHistograms(CONNECTION_SSL_MD2_CA); 1593 UpdateConnectionTypeHistograms(CONNECTION_SSL_MD2_CA);
1593 } 1594 }
1594 1595
1595 void SSLClientSocketWin::FreeSendBuffer() { 1596 void SSLClientSocketWin::FreeSendBuffer() {
1596 SECURITY_STATUS status = FreeContextBuffer(send_buffer_.pvBuffer); 1597 SECURITY_STATUS status = FreeContextBuffer(send_buffer_.pvBuffer);
1597 DCHECK(status == SEC_E_OK); 1598 DCHECK(status == SEC_E_OK);
1598 memset(&send_buffer_, 0, sizeof(send_buffer_)); 1599 memset(&send_buffer_, 0, sizeof(send_buffer_));
1599 } 1600 }
1600 1601
1601 } // namespace net 1602 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_unittest.cc ('k') | net/socket/ssl_host_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698