proxygen
|
#include <AsyncSSLSocketTest.h>
Public Member Functions | |
SNIClient (AsyncSSLSocket::UniquePtr socket) | |
Public Attributes | |
bool | serverNameMatch |
Private Member Functions | |
void | handshakeSuc (AsyncSSLSocket *) noexceptoverride |
void | handshakeErr (AsyncSSLSocket *, const AsyncSocketException &ex) noexceptoverride |
void | writeSuccess () noexceptoverride |
void | writeErr (size_t bytesWritten, const AsyncSocketException &ex) noexceptoverride |
Private Member Functions inherited from folly::AsyncSSLSocket::HandshakeCB | |
virtual | ~HandshakeCB ()=default |
virtual bool | handshakeVer (AsyncSSLSocket *, bool preverifyOk, X509_STORE_CTX *) noexcept |
Private Member Functions inherited from folly::AsyncWriter::WriteCallback | |
virtual | ~WriteCallback ()=default |
Private Attributes | |
AsyncSSLSocket::UniquePtr | socket_ |
Definition at line 1029 of file AsyncSSLSocketTest.h.
|
inlineexplicit |
Definition at line 1032 of file AsyncSSLSocketTest.h.
References folly::SendMsgParamsCallbackBase::socket_.
|
inlineoverrideprivatevirtualnoexcept |
handshakeErr() is called if an error occurs while establishing the SSL connection.
The HandshakeCB will be uninstalled before handshakeErr() is called.
sock | SSL socket on which the handshake was initiated |
ex | An exception representing the error. |
Implements folly::AsyncSSLSocket::HandshakeCB.
Definition at line 1043 of file AsyncSSLSocketTest.h.
References ADD_FAILURE.
|
inlineoverrideprivatevirtualnoexcept |
handshakeSuc() is called when a new SSL connection is established, i.e., after SSL_accept/connect() returns successfully.
The HandshakeCB will be uninstalled before handshakeSuc() is called.
sock | SSL socket on which the handshake was initiated |
Implements folly::AsyncSSLSocket::HandshakeCB.
Definition at line 1040 of file AsyncSSLSocketTest.h.
References folly::SendMsgParamsCallbackBase::socket_.
|
inlineoverrideprivatevirtualnoexcept |
writeError() will be invoked if an error occurs writing the data.
bytesWritten | The number of bytes that were successfull |
ex | An exception describing the error that occurred. |
Implements folly::AsyncWriter::WriteCallback.
Definition at line 1051 of file AsyncSSLSocketTest.h.
References ADD_FAILURE.
|
inlineoverrideprivatevirtualnoexcept |
writeSuccess() will be invoked when all of the data has been successfully written.
Note that this mainly signals that the buffer containing the data to write is no longer needed and may be freed or re-used. It does not guarantee that the data has been fully transmitted to the remote endpoint. For example, on socket-based transports, writeSuccess() only indicates that the data has been given to the kernel for eventual transmission.
Implements folly::AsyncWriter::WriteCallback.
Definition at line 1048 of file AsyncSSLSocketTest.h.
References folly::SendMsgParamsCallbackBase::socket_.
bool folly::SNIClient::serverNameMatch |
Definition at line 1037 of file AsyncSSLSocketTest.h.
Referenced by folly::TEST().
|
private |
Definition at line 1058 of file AsyncSSLSocketTest.h.