| 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 | 10 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 const HostPortPair& host_and_port, | 46 const HostPortPair& host_and_port, |
| 47 const SSLConfig& ssl_config, | 47 const SSLConfig& ssl_config, |
| 48 const SSLClientSocketContext& context); | 48 const SSLClientSocketContext& context); |
| 49 ~SSLClientSocketOpenSSL() override; | 49 ~SSLClientSocketOpenSSL() override; |
| 50 | 50 |
| 51 const HostPortPair& host_and_port() const { return host_and_port_; } | 51 const HostPortPair& host_and_port() const { return host_and_port_; } |
| 52 const std::string& ssl_session_cache_shard() const { | 52 const std::string& ssl_session_cache_shard() const { |
| 53 return ssl_session_cache_shard_; | 53 return ssl_session_cache_shard_; |
| 54 } | 54 } |
| 55 | 55 |
| 56 // Export ssl key log files if env variable is not set. |
| 57 static void SetSSLKeyLogFile(const std::string& ssl_keylog_file); |
| 58 |
| 56 // SSLClientSocket implementation. | 59 // SSLClientSocket implementation. |
| 57 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; | 60 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; |
| 58 NextProtoStatus GetNextProto(std::string* proto) const override; | 61 NextProtoStatus GetNextProto(std::string* proto) const override; |
| 59 ChannelIDService* GetChannelIDService() const override; | 62 ChannelIDService* GetChannelIDService() const override; |
| 60 SSLFailureState GetSSLFailureState() const override; | 63 SSLFailureState GetSSLFailureState() const override; |
| 61 | 64 |
| 62 // SSLSocket implementation. | 65 // SSLSocket implementation. |
| 63 int ExportKeyingMaterial(const base::StringPiece& label, | 66 int ExportKeyingMaterial(const base::StringPiece& label, |
| 64 bool has_context, | 67 bool has_context, |
| 65 const base::StringPiece& context, | 68 const base::StringPiece& context, |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 // pinning failure. It is a (somewhat) human-readable string. | 335 // pinning failure. It is a (somewhat) human-readable string. |
| 333 std::string pinning_failure_log_; | 336 std::string pinning_failure_log_; |
| 334 | 337 |
| 335 BoundNetLog net_log_; | 338 BoundNetLog net_log_; |
| 336 base::WeakPtrFactory<SSLClientSocketOpenSSL> weak_factory_; | 339 base::WeakPtrFactory<SSLClientSocketOpenSSL> weak_factory_; |
| 337 }; | 340 }; |
| 338 | 341 |
| 339 } // namespace net | 342 } // namespace net |
| 340 | 343 |
| 341 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ | 344 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ |
| OLD | NEW |