| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef NET_BASE_SSL_CLIENT_SOCKET_H_ | |
| 6 #define NET_BASE_SSL_CLIENT_SOCKET_H_ | |
| 7 | |
| 8 #include "net/base/client_socket.h" | |
| 9 | |
| 10 namespace net { | |
| 11 | |
| 12 class SSLCertRequestInfo; | |
| 13 class SSLInfo; | |
| 14 | |
| 15 // A client socket that uses SSL as the transport layer. | |
| 16 // | |
| 17 // NOTE: The SSL handshake occurs within the Connect method after a TCP | |
| 18 // connection is established. If a SSL error occurs during the handshake, | |
| 19 // Connect will fail. | |
| 20 // | |
| 21 class SSLClientSocket : public ClientSocket { | |
| 22 public: | |
| 23 // Gets the SSL connection information of the socket. | |
| 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; | |
| 30 }; | |
| 31 | |
| 32 } // namespace net | |
| 33 | |
| 34 #endif // NET_BASE_SSL_CLIENT_SOCKET_H_ | |
| OLD | NEW |