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

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: Two header fixes 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
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 1394 matching lines...) Expand 10 before | Expand all | Expand 10 after
1428 if (rv < 0 && rv != ERR_IO_PENDING) { 1429 if (rv < 0 && rv != ERR_IO_PENDING) {
1429 us->write_io_buf_ = NULL; 1430 us->write_io_buf_ = NULL;
1430 return OSStatusFromNetError(rv); 1431 return OSStatusFromNetError(rv);
1431 } 1432 }
1432 1433
1433 // always lie to our caller 1434 // always lie to our caller
1434 return noErr; 1435 return noErr;
1435 } 1436 }
1436 1437
1437 } // namespace net 1438 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698