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

Side by Side Diff: net/socket/ssl_client_socket_mac.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/proxy/proxy_script_fetcher_impl_unittest.cc ('k') | net/socket/ssl_client_socket_nss.cc » ('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_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>
11 11
12 #include <algorithm> 12 #include <algorithm>
13 13
14 #include "base/bind.h" 14 #include "base/bind.h"
15 #include "base/lazy_instance.h" 15 #include "base/lazy_instance.h"
16 #include "base/mac/mac_logging.h" 16 #include "base/mac/mac_logging.h"
17 #include "base/mac/scoped_cftyperef.h" 17 #include "base/mac/scoped_cftyperef.h"
18 #include "base/string_util.h" 18 #include "base/string_util.h"
19 #include "net/base/address_list.h" 19 #include "net/base/address_list.h"
20 #include "net/base/cert_verifier.h" 20 #include "net/base/cert_verifier.h"
21 #include "net/base/io_buffer.h" 21 #include "net/base/io_buffer.h"
22 #include "net/base/net_errors.h" 22 #include "net/base/net_errors.h"
23 #include "net/base/net_log.h" 23 #include "net/base/net_log.h"
24 #include "net/base/single_request_cert_verifier.h"
24 #include "net/base/ssl_cert_request_info.h" 25 #include "net/base/ssl_cert_request_info.h"
25 #include "net/base/ssl_connection_status_flags.h" 26 #include "net/base/ssl_connection_status_flags.h"
26 #include "net/base/ssl_info.h" 27 #include "net/base/ssl_info.h"
27 #include "net/base/x509_certificate_net_log_param.h" 28 #include "net/base/x509_certificate_net_log_param.h"
28 #include "net/socket/client_socket_handle.h" 29 #include "net/socket/client_socket_handle.h"
29 #include "net/socket/ssl_error_params.h" 30 #include "net/socket/ssl_error_params.h"
30 31
31 // Welcome to Mac SSL. We've been waiting for you. 32 // Welcome to Mac SSL. We've been waiting for you.
32 // 33 //
33 // The Mac SSL implementation is, like the Windows and NSS implementations, a 34 // The Mac SSL implementation is, like the Windows and NSS implementations, a
(...skipping 1397 matching lines...) Expand 10 before | Expand all | Expand 10 after
1431 if (rv < 0 && rv != ERR_IO_PENDING) { 1432 if (rv < 0 && rv != ERR_IO_PENDING) {
1432 us->write_io_buf_ = NULL; 1433 us->write_io_buf_ = NULL;
1433 return OSStatusFromNetError(rv); 1434 return OSStatusFromNetError(rv);
1434 } 1435 }
1435 1436
1436 // always lie to our caller 1437 // always lie to our caller
1437 return noErr; 1438 return noErr;
1438 } 1439 }
1439 1440
1440 } // namespace net 1441 } // namespace net
OLDNEW
« no previous file with comments | « net/proxy/proxy_script_fetcher_impl_unittest.cc ('k') | net/socket/ssl_client_socket_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698