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_OPENSSL_H_ | 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ |
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ | 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 // a certificate for this client. | 50 // a certificate for this client. |
51 int ClientCertRequestCallback(SSL* ssl, X509** x509, EVP_PKEY** pkey); | 51 int ClientCertRequestCallback(SSL* ssl, X509** x509, EVP_PKEY** pkey); |
52 | 52 |
53 // Callback from the SSL layer to check which NPN protocol we are supporting | 53 // Callback from the SSL layer to check which NPN protocol we are supporting |
54 int SelectNextProtoCallback(unsigned char** out, unsigned char* outlen, | 54 int SelectNextProtoCallback(unsigned char** out, unsigned char* outlen, |
55 const unsigned char* in, unsigned int inlen); | 55 const unsigned char* in, unsigned int inlen); |
56 | 56 |
57 // SSLClientSocket implementation. | 57 // SSLClientSocket implementation. |
58 virtual void GetSSLCertRequestInfo( | 58 virtual void GetSSLCertRequestInfo( |
59 SSLCertRequestInfo* cert_request_info) OVERRIDE; | 59 SSLCertRequestInfo* cert_request_info) OVERRIDE; |
| 60 virtual NextProtoStatus GetNextProto(std::string* proto, |
| 61 std::string* server_protos) OVERRIDE; |
| 62 virtual ServerBoundCertService* GetServerBoundCertService() const OVERRIDE; |
| 63 |
| 64 // SSLSocket implementation. |
60 virtual int ExportKeyingMaterial(const base::StringPiece& label, | 65 virtual int ExportKeyingMaterial(const base::StringPiece& label, |
61 bool has_context, | 66 bool has_context, |
62 const base::StringPiece& context, | 67 const base::StringPiece& context, |
63 unsigned char* out, | 68 unsigned char* out, |
64 unsigned int outlen) OVERRIDE; | 69 unsigned int outlen) OVERRIDE; |
65 virtual NextProtoStatus GetNextProto(std::string* proto, | 70 virtual int GetTLSUniqueChannelBinding(std::string* out) OVERRIDE; |
66 std::string* server_protos) OVERRIDE; | |
67 virtual ServerBoundCertService* GetServerBoundCertService() const OVERRIDE; | |
68 | 71 |
69 // StreamSocket implementation. | 72 // StreamSocket implementation. |
70 virtual int Connect(const CompletionCallback& callback) OVERRIDE; | 73 virtual int Connect(const CompletionCallback& callback) OVERRIDE; |
71 virtual void Disconnect() OVERRIDE; | 74 virtual void Disconnect() OVERRIDE; |
72 virtual bool IsConnected() const OVERRIDE; | 75 virtual bool IsConnected() const OVERRIDE; |
73 virtual bool IsConnectedAndIdle() const OVERRIDE; | 76 virtual bool IsConnectedAndIdle() const OVERRIDE; |
74 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; | 77 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; |
75 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; | 78 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; |
76 virtual const BoundNetLog& NetLog() const OVERRIDE; | 79 virtual const BoundNetLog& NetLog() const OVERRIDE; |
77 virtual void SetSubresourceSpeculation() OVERRIDE; | 80 virtual void SetSubresourceSpeculation() OVERRIDE; |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 State next_handshake_state_; | 177 State next_handshake_state_; |
175 NextProtoStatus npn_status_; | 178 NextProtoStatus npn_status_; |
176 std::string npn_proto_; | 179 std::string npn_proto_; |
177 std::string server_protos_; | 180 std::string server_protos_; |
178 BoundNetLog net_log_; | 181 BoundNetLog net_log_; |
179 }; | 182 }; |
180 | 183 |
181 } // namespace net | 184 } // namespace net |
182 | 185 |
183 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ | 186 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ |
OLD | NEW |