OLD | NEW |
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 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_WIN_H_ | 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_WIN_H_ |
6 #define NET_SOCKET_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> |
(...skipping 26 matching lines...) Expand all Loading... |
37 // in the server's certificate during the SSL handshake. If SSL client | 37 // in the server's certificate during the SSL handshake. If SSL client |
38 // authentication is requested, the host_and_port field of SSLCertRequestInfo | 38 // authentication is requested, the host_and_port field of SSLCertRequestInfo |
39 // will be populated with |host_and_port|. |ssl_config| specifies | 39 // will be populated with |host_and_port|. |ssl_config| specifies |
40 // the SSL settings. | 40 // the SSL settings. |
41 SSLClientSocketWin(ClientSocketHandle* transport_socket, | 41 SSLClientSocketWin(ClientSocketHandle* transport_socket, |
42 const HostPortPair& host_and_port, | 42 const HostPortPair& host_and_port, |
43 const SSLConfig& ssl_config, | 43 const SSLConfig& ssl_config, |
44 const SSLClientSocketContext& context); | 44 const SSLClientSocketContext& context); |
45 ~SSLClientSocketWin(); | 45 ~SSLClientSocketWin(); |
46 | 46 |
47 // SSLClientSocket implementation. | 47 // SSLSocket implementation. |
48 virtual void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info); | |
49 virtual int ExportKeyingMaterial(const base::StringPiece& label, | 48 virtual int ExportKeyingMaterial(const base::StringPiece& label, |
50 bool has_context, | 49 bool has_context, |
51 const base::StringPiece& context, | 50 const base::StringPiece& context, |
52 unsigned char* out, | 51 unsigned char* out, |
53 unsigned int outlen); | 52 unsigned int outlen); |
| 53 virtual int GetTlsUniqueChannelBinding(unsigned char* out, |
| 54 unsigned int *outlen, |
| 55 unsigned int outlen_max) OVERRIDE; |
| 56 |
| 57 // SSLClientSocket implementation. |
| 58 virtual void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info); |
54 virtual NextProtoStatus GetNextProto(std::string* proto, | 59 virtual NextProtoStatus GetNextProto(std::string* proto, |
55 std::string* server_protos); | 60 std::string* server_protos); |
56 virtual ServerBoundCertService* GetServerBoundCertService() const OVERRIDE; | 61 virtual ServerBoundCertService* GetServerBoundCertService() const OVERRIDE; |
57 | 62 |
58 // StreamSocket implementation. | 63 // StreamSocket implementation. |
59 virtual int Connect(const CompletionCallback& callback) OVERRIDE; | 64 virtual int Connect(const CompletionCallback& callback) OVERRIDE; |
60 virtual void Disconnect() OVERRIDE; | 65 virtual void Disconnect() OVERRIDE; |
61 virtual bool IsConnected() const OVERRIDE; | 66 virtual bool IsConnected() const OVERRIDE; |
62 virtual bool IsConnectedAndIdle() const OVERRIDE; | 67 virtual bool IsConnectedAndIdle() const OVERRIDE; |
63 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; | 68 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 | 206 |
202 // True when the decrypter needs more data in order to decrypt. | 207 // True when the decrypter needs more data in order to decrypt. |
203 bool need_more_data_; | 208 bool need_more_data_; |
204 | 209 |
205 BoundNetLog net_log_; | 210 BoundNetLog net_log_; |
206 }; | 211 }; |
207 | 212 |
208 } // namespace net | 213 } // namespace net |
209 | 214 |
210 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_WIN_H_ | 215 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_WIN_H_ |
OLD | NEW |