![]() |
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>
Collaboration diagram for dpp::detail::wrapped_ssl_ctx:Public Member Functions | |
| wrapped_ssl_ctx (bool is_server=false) | |
| Create a wrapped SSL context. | |
| wrapped_ssl_ctx (const wrapped_ssl_ctx &)=delete | |
| Copy constructor. | |
| wrapped_ssl_ctx (wrapped_ssl_ctx &&other) noexcept | |
| Move constructor. | |
| ~wrapped_ssl_ctx () | |
| std::string | get_ssl_error () |
| Get last SSL error message. | |
| wrapped_ssl_ctx & | operator= (const wrapped_ssl_ctx &)=delete |
| Copy assignment operator. | |
| wrapped_ssl_ctx & | operator= (wrapped_ssl_ctx &&other) noexcept |
| Move assignment operator. | |
Public Attributes | |
| SSL_CTX * | context {nullptr} |
| SSL_CTX pointer, raw C pointer nastiness. | |
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 |