OLD | NEW |
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2008 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/base/ssl_client_socket_mac.h" | 5 #include "net/base/ssl_client_socket_mac.h" |
6 | 6 |
7 #include "base/singleton.h" | 7 #include "base/singleton.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "net/base/io_buffer.h" |
9 #include "net/base/net_errors.h" | 10 #include "net/base/net_errors.h" |
10 #include "net/base/ssl_info.h" | 11 #include "net/base/ssl_info.h" |
11 | 12 |
12 // Welcome to Mac SSL. We've been waiting for you. | 13 // Welcome to Mac SSL. We've been waiting for you. |
13 // | 14 // |
14 // The Mac SSL implementation is, like the Windows and NSS implementations, a | 15 // The Mac SSL implementation is, like the Windows and NSS implementations, a |
15 // giant state machine. This design constraint is due to the asynchronous nature | 16 // giant state machine. This design constraint is due to the asynchronous nature |
16 // of our underlying transport mechanism. We can call down to read/write on the | 17 // of our underlying transport mechanism. We can call down to read/write on the |
17 // network, but what happens is that either it completes immediately or returns | 18 // network, but what happens is that either it completes immediately or returns |
18 // saying that we'll get a callback sometime in the future. In that case, we | 19 // saying that we'll get a callback sometime in the future. In that case, we |
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
748 | 749 |
749 if (rv < 0 && rv != ERR_IO_PENDING) { | 750 if (rv < 0 && rv != ERR_IO_PENDING) { |
750 return OSStatusFromNetError(rv); | 751 return OSStatusFromNetError(rv); |
751 } | 752 } |
752 | 753 |
753 // always lie to our caller | 754 // always lie to our caller |
754 return noErr; | 755 return noErr; |
755 } | 756 } |
756 | 757 |
757 } // namespace net | 758 } // namespace net |
OLD | NEW |