Net module

SSLSession

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

#include <icy/net/sslsession.h>

class SSLSession

Defined in src/net/include/icy/net/sslsession.h:31

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.
~SSLSession noexceptDestroys the Session.
SSLSessionConstructs an empty SSLSession with a null session pointer.
SSLSessionDeleted constructor.
SSLSession &operator=Deleted assignment operator.
SSLSessionDeleted constructor.
SSLSession &operator=Deleted assignment operator.

sslSession

const

SSL_SESSION * sslSession() const

Defined 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

ParameterTypeDescription
ptrSSL_SESSION *The OpenSSL session object to wrap.

~SSLSession

noexcept

~SSLSession() noexcept

Defined 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 &) = delete

Defined in src/net/include/icy/net/sslsession.h:55

Deleted constructor.


operator=

SSLSession & operator=(const SSLSession &) = delete

Defined in src/net/include/icy/net/sslsession.h:56

Deleted assignment operator.


SSLSession

SSLSession(SSLSession &&) = delete

Defined in src/net/include/icy/net/sslsession.h:57

Deleted constructor.


operator=

SSLSession & operator=(SSLSession &&) = delete

Defined in src/net/include/icy/net/sslsession.h:58

Deleted assignment operator.

Protected Attributes

ReturnNameDescription
SSL_SESSION *_ptr

_ptr

SSL_SESSION * _ptr

Defined in src/net/include/icy/net/sslsession.h:61

Public Types

NameDescription
Ptr

Ptr

using Ptr = std::shared_ptr< SSLSession >

Type: std::shared_ptr< SSLSession >

Defined in src/net/include/icy/net/sslsession.h:34