![]() |
D++ (DPP)
C++ Discord API Bot Library
|
This class wraps a raw SSL_CTX pointer, managing moving, creation, and RAII destruction. More...
Collaboration diagram for dpp::detail::wrapped_ssl_ctx: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 (wrapped_ssl_ctx &&other) noexcept | |
| Move constructor. More... | |
| ~wrapped_ssl_ctx () | |
| std::string | get_ssl_error () |
| Get last SSL error message. More... | |
| wrapped_ssl_ctx & | operator= (const wrapped_ssl_ctx &)=delete |
| Copy assignment operator. More... | |
| wrapped_ssl_ctx & | operator= (wrapped_ssl_ctx &&other) noexcept |
| Move assignment operator. More... | |
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 |
|
inline |
Get last SSL error message.
|
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.