SSLSession
SSLSession
#include <icy/net/sslsession.h>class SSLSessionDefined in src/net/include/icy/net/sslsession.h:31
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.
List of all members
| Name | Kind | Owner |
|---|---|---|
sslSession | function | Declared here |
SSLSession | function | Declared here |
~SSLSession | function | Declared here |
SSLSession | function | Declared here |
SSLSession | function | Declared here |
operator= | function | Declared here |
SSLSession | function | Declared here |
operator= | function | Declared here |
_ptr | variable | Declared here |
Ptr | typedef | Declared here |
Public Methods
| 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 noexcept | Destroys the Session. | |
SSLSession | Constructs an empty SSLSession with a null session pointer. | |
SSLSession | Deleted constructor. | |
SSLSession | Deleted constructor. |
sslSession
const
SSL_SESSION * sslSession() constDefined in src/net/include/icy/net/sslsession.h:37
Returns the stored OpenSSL SSL_SESSION object.
SSLSession
SSLSession(SSL_SESSION * ptr)Defined in src/net/include/icy/net/sslsession.h:44
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.
Parameters
ptrThe OpenSSL session object to wrap.
~SSLSession
noexcept
~SSLSession() noexceptDefined in src/net/include/icy/net/sslsession.h:50
Destroys the Session.
Calls SSL_SESSION_free() on the stored SSL_SESSION object.
SSLSession
SSLSession()Defined in src/net/include/icy/net/sslsession.h:53
Constructs an empty SSLSession with a null session pointer.
SSLSession
SSLSession(const SSLSession &) = deleteDefined in src/net/include/icy/net/sslsession.h:55
Deleted constructor.
SSLSession
SSLSession(SSLSession &&) = deleteDefined in src/net/include/icy/net/sslsession.h:57
Deleted constructor.
Protected Attributes
| Return | Name | Description |
|---|---|---|
SSL_SESSION * | _ptr |
_ptr
SSL_SESSION * _ptrDefined in src/net/include/icy/net/sslsession.h:61
Public Types
| Name | Description |
|---|---|
Ptr |
Ptr
using Ptr = std::shared_ptr< SSLSession >