OLD | NEW |
1 // Copyright (c) 2006-2008 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_H_ | 5 #ifndef NET_BASE_SSL_CLIENT_SOCKET_H_ |
6 #define NET_BASE_SSL_CLIENT_SOCKET_H_ | 6 #define NET_BASE_SSL_CLIENT_SOCKET_H_ |
7 | 7 |
8 #include "net/base/client_socket.h" | 8 #include "net/base/client_socket.h" |
9 | 9 |
10 namespace net { | 10 namespace net { |
11 | 11 |
| 12 class SSLCertRequestInfo; |
12 class SSLInfo; | 13 class SSLInfo; |
13 | 14 |
14 // A client socket that uses SSL as the transport layer. | 15 // A client socket that uses SSL as the transport layer. |
15 // | 16 // |
16 // NOTE: The SSL handshake occurs within the Connect method after a TCP | 17 // NOTE: The SSL handshake occurs within the Connect method after a TCP |
17 // connection is established. If a SSL error occurs during the handshake, | 18 // connection is established. If a SSL error occurs during the handshake, |
18 // Connect will fail. | 19 // Connect will fail. |
19 // | 20 // |
20 class SSLClientSocket : public ClientSocket { | 21 class SSLClientSocket : public ClientSocket { |
21 public: | 22 public: |
22 // Gets the SSL connection information of the socket. | 23 // Gets the SSL connection information of the socket. |
23 virtual void GetSSLInfo(SSLInfo* ssl_info) = 0; | 24 virtual void GetSSLInfo(SSLInfo* ssl_info) = 0; |
| 25 |
| 26 // Gets the SSL CertificateRequest info of the socket after Connect failed |
| 27 // with ERR_SSL_CLIENT_AUTH_CERT_NEEDED. |
| 28 virtual void GetSSLCertRequestInfo( |
| 29 SSLCertRequestInfo* cert_request_info) = 0; |
24 }; | 30 }; |
25 | 31 |
26 } // namespace net | 32 } // namespace net |
27 | 33 |
28 #endif // NET_BASE_SSL_CLIENT_SOCKET_H_ | 34 #endif // NET_BASE_SSL_CLIENT_SOCKET_H_ |
OLD | NEW |