#include <sslbase.hh>
Public Member Functions | ||||
| ssl_ctx (void) | ||||
| Constructor. | ||||
| virtual | ~ssl_ctx (void) | |||
| Destructor. | ||||
| void | secure (const std::string &certpath, const std::string &keypath, const std::string &pass) | |||
| Secure context. | ||||
| bio_st * | new_ssl (void) | |||
| Construct a bio. | ||||
| ssl_ctx_st & | ref_ctx (void) | |||
| Reference the context. | ||||
Static Public Member Functions | ||||
| static void | error (const std::string &err) | |||
Throw an SSL error exception.
| ||||
OpenSSL context wrapper.
| sends::ssl_ctx::ssl_ctx | ( | void | ) |
Constructor.
Construct a new OpenSSL context.
| virtual sends::ssl_ctx::~ssl_ctx | ( | void | ) | [virtual] |
Destructor.
Release and free an OpenSSL context.
| static void sends::ssl_ctx::error | ( | const std::string & | err | ) | [static] |
Throw an SSL error exception.
| runtime_error | with specified text. |
Throw an exception with the specified text and the OpenSSL error text for the most recent error.
| err | Caller specified message text. |
| void sends::ssl_ctx::secure | ( | const std::string & | certpath, | |
| const std::string & | keypath, | |||
| const std::string & | pass | |||
| ) |
Secure context.
Secure the context with the specified certificate and key.
| certpath | Path to certificate file. | |
| keypath | Path to private key file. | |
| pass | Password to decrypt private key. |
| bio_st* sends::ssl_ctx::new_ssl | ( | void | ) |
Construct a bio.
Construct a new OpenSSL Bio structure.
| ssl_ctx_st & sends::ssl_ctx::ref_ctx | ( | void | ) | [inline] |
Reference the context.
Return a reference to the wrapped context structure.
1.5.5