![]() |
D++ (DPP)
C++ Discord API Bot Library
|
This class wraps a raw SSL_CTX pointer, managing moving, creation, and RAII destruction. More...
#include <wrapped_ssl_ctx.h>
Public Member Functions | |
wrapped_ssl_ctx (bool is_server=false) | |
Create a wrapped SSL context. More... | |
wrapped_ssl_ctx (const wrapped_ssl_ctx &)=delete | |
Copy constructor. More... | |
wrapped_ssl_ctx & | operator= (const wrapped_ssl_ctx &)=delete |
Copy assignment operator. More... | |
wrapped_ssl_ctx (wrapped_ssl_ctx &&other) noexcept | |
Move constructor. More... | |
wrapped_ssl_ctx & | operator= (wrapped_ssl_ctx &&other) noexcept |
Move assignment operator. More... | |
~wrapped_ssl_ctx () | |
Public Attributes | |
SSL_CTX * | context {nullptr} |
SSL_CTX pointer, raw C pointer nastiness. More... | |
This class wraps a raw SSL_CTX pointer, managing moving, creation, and RAII destruction.
|
inlineexplicit |
Create a wrapped SSL context.
is_server | true to create a server context, false to create a client context |
dpp::connection_exception | if context could not be created |
|
delete |
Copy constructor.
|
inlinenoexcept |
Move constructor.
other | source context |
|
inline |
|
delete |
Copy assignment operator.
|
inlinenoexcept |
Move assignment operator.
other | source context |
SSL_CTX* dpp::detail::wrapped_ssl_ctx::context {nullptr} |
SSL_CTX pointer, raw C pointer nastiness.