Net module

SSLSession

Cached SSL/TLS session wrapper used for client-side resumption.

SSLSession

#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.

Public Methods

ReturnNameDescription
SSL_SESSION *sslSession constReturns the stored OpenSSL SSL_SESSION object.
SSLSessionCreates a new SSLSession wrapping the given OpenSSL session object.
~SSLSessionDestroys the Session.
SSLSessionConstructs an empty SSLSession with a null session pointer.
SSLSessionDeleted constructor.
SSLSessionDeleted constructor.

sslSession

const

SSL_SESSION * sslSession() const

Returns the stored OpenSSL SSL_SESSION object.


SSLSession

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.

Parameters

  • ptr The OpenSSL session object to wrap.

~SSLSession

~SSLSession() noexcept

Destroys the Session.

Calls SSL_SESSION_free() on the stored SSL_SESSION object.


SSLSession

SSLSession()

Constructs an empty SSLSession with a null session pointer.


SSLSession

SSLSession(const SSLSession &) = delete

Deleted constructor.


SSLSession

SSLSession(SSLSession &&) = delete

Deleted constructor.

Protected Attributes

ReturnNameDescription
SSL_SESSION *_ptr

_ptr

SSL_SESSION * _ptr

Public Types

NameDescription
Ptr

Ptr

std::shared_ptr< SSLSession > Ptr()