#include <ssl.h>
Public Member Functions | |
| ~SSLInfo () | |
| Destructor. | |
| bool | assign (int fd) |
| Transforms the given socket file descriptor into a SSL connection. | |
| ssize_t | read (void *buf, size_t len) |
| Reads data from the SSL connection. | |
| ssize_t | write (void const *buf, size_t len) |
| Writes data to the SSL connection. | |
| int | shutdown () |
| Sends the close-notify alert to the peer. | |
| bool | got_shutdown () const |
| Did we get the close-alert? | |
| bool | sent_shutdown () const |
| Did we send the close alert? | |
| char const * | version () const |
| Returns the version of this SSL connection protocol. | |
| char const * | cipher_version () const |
| Returns the cipher version. | |
| char const * | cipher_name () const |
| Returns the cipher name. | |
| char const * | cipher_desc () const |
| Returns the cipher description. | |
| char const * | peer_cert_key () const |
| Returns the peer certificate key info. | |
| SSLContext & | context () const |
| Returns the context associated with this object. | |
| TCPClient & | client () const |
| Returns the client associated with this object. | |
Friends | |
| class | SSLContext |
| Add SSLContext as a friend. | |
| bool sockets::SSLInfo::assign | ( | int | fd | ) |
Transforms the given socket file descriptor into a SSL connection.
| [in] | fd | The socket file descriptor |
| ssize_t sockets::SSLInfo::read | ( | void * | buf, | |
| size_t | len | |||
| ) |
Reads data from the SSL connection.
| [in] | buf | The buffer that receives the data. |
| [in] | len | The length of the buffer, in bytes. |
| ssize_t sockets::SSLInfo::write | ( | void const * | buf, | |
| size_t | len | |||
| ) |
Writes data to the SSL connection.
| [in] | buf | The buffer to write. |
| [in] | len | The length of the buffer, in bytes. |
| int sockets::SSLInfo::shutdown | ( | ) |
Sends the close-notify alert to the peer. See SSL_shutdown(3) for more information.
This method automatically clears the ssReadable or ssWritable flag of the socket and calls Socket::watch() if needed.
1.5.3