Index: net/socket/ssl_client_socket_impl.h |
diff --git a/net/socket/ssl_client_socket_impl.h b/net/socket/ssl_client_socket_impl.h |
index ccb780b5142879b6fe127fb85278388a33c8d9f3..b2e3f20525375b3f8b6dfad6539fb3c2fecad549 100644 |
--- a/net/socket/ssl_client_socket_impl.h |
+++ b/net/socket/ssl_client_socket_impl.h |
@@ -37,6 +37,10 @@ class FilePath; |
class SequencedTaskRunner; |
} |
+namespace crypto { |
+class OpenSSLErrStackTracer; |
+} |
+ |
namespace net { |
class CertVerifier; |
@@ -251,6 +255,12 @@ class SSLClientSocketImpl : public SSLClientSocket { |
// Returns whether TLS channel ID is enabled. |
bool IsChannelIDEnabled() const; |
+ // Returns the net error corresponding to the most recent OpenSSL |
+ // error. ssl_error is the output of SSL_get_error. |
+ int MapLastOpenSSLError(int ssl_error, |
+ const crypto::OpenSSLErrStackTracer& tracer, |
+ OpenSSLErrorInfo* info); |
+ |
bool transport_send_busy_; |
bool transport_recv_busy_; |
@@ -366,6 +376,8 @@ class SSLClientSocketImpl : public SSLClientSocket { |
ScopedSSL_SESSION pending_session_; |
// True if the initial handshake's certificate has been verified. |
bool certificate_verified_; |
+ // Set to true if a CertificateRequest was received. |
+ bool certificate_requested_; |
// The request handle for |channel_id_service_|. |
ChannelIDService::Request channel_id_request_; |