| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 #ifndef NET_BASE_SSL_CLIENT_SOCKET_WIN_H_ | 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_WIN_H_ |
| 6 #define NET_BASE_SSL_CLIENT_SOCKET_WIN_H_ | 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_WIN_H_ |
| 7 | 7 |
| 8 #define SECURITY_WIN32 // Needs to be defined before including security.h | 8 #define SECURITY_WIN32 // Needs to be defined before including security.h |
| 9 | 9 |
| 10 #include <windows.h> | 10 #include <windows.h> |
| 11 #include <wincrypt.h> | 11 #include <wincrypt.h> |
| 12 #include <security.h> | 12 #include <security.h> |
| 13 | 13 |
| 14 #include <string> | 14 #include <string> |
| 15 | 15 |
| 16 #include "base/scoped_ptr.h" | 16 #include "base/scoped_ptr.h" |
| 17 #include "net/base/cert_verifier.h" | 17 #include "net/base/cert_verifier.h" |
| 18 #include "net/base/cert_verify_result.h" | 18 #include "net/base/cert_verify_result.h" |
| 19 #include "net/base/completion_callback.h" | 19 #include "net/base/completion_callback.h" |
| 20 #include "net/base/ssl_client_socket.h" | |
| 21 #include "net/base/ssl_config_service.h" | 20 #include "net/base/ssl_config_service.h" |
| 21 #include "net/socket/ssl_client_socket.h" |
| 22 | 22 |
| 23 namespace net { | 23 namespace net { |
| 24 | 24 |
| 25 // An SSL client socket implemented with the Windows Schannel. | 25 // An SSL client socket implemented with the Windows Schannel. |
| 26 class SSLClientSocketWin : public SSLClientSocket { | 26 class SSLClientSocketWin : public SSLClientSocket { |
| 27 public: | 27 public: |
| 28 // Takes ownership of the transport_socket, which may already be connected. | 28 // Takes ownership of the transport_socket, which may already be connected. |
| 29 // The given hostname will be compared with the name(s) in the server's | 29 // The given hostname will be compared with the name(s) in the server's |
| 30 // certificate during the SSL handshake. ssl_config specifies the SSL | 30 // certificate during the SSL handshake. ssl_config specifies the SSL |
| 31 // settings. | 31 // settings. |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 // We have to pass a 'result' of OK to the DoLoop method, and don't want it | 147 // We have to pass a 'result' of OK to the DoLoop method, and don't want it |
| 148 // to be interpreted as EOF. | 148 // to be interpreted as EOF. |
| 149 bool ignore_ok_result_; | 149 bool ignore_ok_result_; |
| 150 | 150 |
| 151 // Renegotiation is in progress. | 151 // Renegotiation is in progress. |
| 152 bool renegotiating_; | 152 bool renegotiating_; |
| 153 }; | 153 }; |
| 154 | 154 |
| 155 } // namespace net | 155 } // namespace net |
| 156 | 156 |
| 157 #endif // NET_BASE_SSL_CLIENT_SOCKET_WIN_H_ | 157 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_WIN_H_ |
| OLD | NEW |