Home
Net module

SSLSession

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

SSLSession

#include <icy/net/sslsession.h>
class SSLSession

Defined 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

NameKindOwner
sslSessionfunctionDeclared here
SSLSessionfunctionDeclared here
~SSLSessionfunctionDeclared here
SSLSessionfunctionDeclared here
SSLSessionfunctionDeclared here
operator=functionDeclared here
SSLSessionfunctionDeclared here
operator=functionDeclared here
_ptrvariableDeclared here
PtrtypedefDeclared here

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.
SSLSessionDeleted constructor.

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

  • ptr 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.


SSLSession

SSLSession(SSLSession &&) = delete

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

Deleted constructor.

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 >

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