This class wraps a raw SSL_CTX pointer, managing moving, creation, and RAII destruction.
More...
#include <wrapped_ssl_ctx.h>
|
| 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.
◆ wrapped_ssl_ctx() [1/3]
| dpp::detail::wrapped_ssl_ctx::wrapped_ssl_ctx |
( |
bool | is_server = false | ) |
|
|
inlineexplicit |
Create a wrapped SSL context.
- Parameters
-
| is_server | true to create a server context, false to create a client context |
- Exceptions
-
◆ wrapped_ssl_ctx() [2/3]
| dpp::detail::wrapped_ssl_ctx::wrapped_ssl_ctx |
( |
const wrapped_ssl_ctx & | | ) |
|
|
delete |
Copy constructor.
- Note
- Intentionally deleted
◆ wrapped_ssl_ctx() [3/3]
| dpp::detail::wrapped_ssl_ctx::wrapped_ssl_ctx |
( |
wrapped_ssl_ctx && | other | ) |
|
|
inlinenoexcept |
Move constructor.
- Parameters
-
◆ ~wrapped_ssl_ctx()
| dpp::detail::wrapped_ssl_ctx::~wrapped_ssl_ctx |
( |
| ) |
|
|
inline |
◆ get_ssl_error()
| std::string dpp::detail::wrapped_ssl_ctx::get_ssl_error |
( |
| ) |
|
|
inline |
Get last SSL error message.
- Returns
- SSL error message
◆ operator=() [1/2]
Copy assignment operator.
- Note
- Intentionally deleted
◆ operator=() [2/2]
Move assignment operator.
- Parameters
-
- Returns
- self
◆ context
| SSL_CTX* dpp::detail::wrapped_ssl_ctx::context {nullptr} |
SSL_CTX pointer, raw C pointer nastiness.