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 <openssl/base.h> | 8 #include <openssl/base.h> |
9 #include <openssl/ssl.h> | 9 #include <openssl/ssl.h> |
10 #include <stddef.h> | 10 #include <stddef.h> |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 std::vector<uint8_t>* out) override; | 80 std::vector<uint8_t>* out) override; |
81 crypto::ECPrivateKey* GetChannelIDKey() const override; | 81 crypto::ECPrivateKey* GetChannelIDKey() const override; |
82 SSLFailureState GetSSLFailureState() const override; | 82 SSLFailureState GetSSLFailureState() const override; |
83 | 83 |
84 // SSLSocket implementation. | 84 // SSLSocket implementation. |
85 int ExportKeyingMaterial(const base::StringPiece& label, | 85 int ExportKeyingMaterial(const base::StringPiece& label, |
86 bool has_context, | 86 bool has_context, |
87 const base::StringPiece& context, | 87 const base::StringPiece& context, |
88 unsigned char* out, | 88 unsigned char* out, |
89 unsigned int outlen) override; | 89 unsigned int outlen) override; |
90 int GetTLSUniqueChannelBinding(std::string* out) override; | |
91 | 90 |
92 // StreamSocket implementation. | 91 // StreamSocket implementation. |
93 int Connect(const CompletionCallback& callback) override; | 92 int Connect(const CompletionCallback& callback) override; |
94 void Disconnect() override; | 93 void Disconnect() override; |
95 bool IsConnected() const override; | 94 bool IsConnected() const override; |
96 bool IsConnectedAndIdle() const override; | 95 bool IsConnectedAndIdle() const override; |
97 int GetPeerAddress(IPEndPoint* address) const override; | 96 int GetPeerAddress(IPEndPoint* address) const override; |
98 int GetLocalAddress(IPEndPoint* address) const override; | 97 int GetLocalAddress(IPEndPoint* address) const override; |
99 const BoundNetLog& NetLog() const override; | 98 const BoundNetLog& NetLog() const override; |
100 void SetSubresourceSpeculation() override; | 99 void SetSubresourceSpeculation() override; |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 // pinning failure. It is a (somewhat) human-readable string. | 366 // pinning failure. It is a (somewhat) human-readable string. |
368 std::string pinning_failure_log_; | 367 std::string pinning_failure_log_; |
369 | 368 |
370 BoundNetLog net_log_; | 369 BoundNetLog net_log_; |
371 base::WeakPtrFactory<SSLClientSocketOpenSSL> weak_factory_; | 370 base::WeakPtrFactory<SSLClientSocketOpenSSL> weak_factory_; |
372 }; | 371 }; |
373 | 372 |
374 } // namespace net | 373 } // namespace net |
375 | 374 |
376 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ | 375 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ |
OLD | NEW |