#include <icy/net/sslsession.h>Cached SSL/TLS session wrapper used for client-side resumption.
For session caching to work, a client must save the session object from an existing connection, if it wants to reuse it with a future connection.
| Return | Name | Description |
|---|---|---|
SSL_SESSION * | sslSession const | Returns the stored OpenSSL SSL_SESSION object. |
SSLSession | Creates a new SSLSession wrapping the given OpenSSL session object. | |
~SSLSession | Destroys the Session. | |
SSLSession | Constructs an empty SSLSession with a null session pointer. | |
SSLSession | Deleted constructor. | |
SSLSession | Deleted constructor. |
const
SSL_SESSION * sslSession() constReturns the stored OpenSSL SSL_SESSION object.
SSLSession(SSL_SESSION * ptr)Creates a new SSLSession wrapping the given OpenSSL session object.
The SSL_SESSION's reference count is not incremented; the SSLSession takes ownership and will call SSL_SESSION_free() on destruction.
ptr The OpenSSL session object to wrap.~SSLSession() noexceptDestroys the Session.
Calls SSL_SESSION_free() on the stored SSL_SESSION object.
SSLSession()Constructs an empty SSLSession with a null session pointer.
SSLSession(const SSLSession &) = deleteDeleted constructor.
SSLSession(SSLSession &&) = deleteDeleted constructor.
| Return | Name | Description |
|---|---|---|
SSL_SESSION * | _ptr |
SSL_SESSION * _ptr| Name | Description |
|---|---|
Ptr |
std::shared_ptr< SSLSession > Ptr()