Utilities for the OpenSSL library.
More...
#include <tsOpenSSL.h>
Utilities for the OpenSSL library.
Note that since OpenSSL 1.1.0, no explicit initialization or cleanup is required.
◆ Version()
static UString ts::OpenSSL::Version |
( |
| ) |
|
|
static |
Get a full version string for the OpenSSL library.
- Returns
- The version string.
◆ GetErrors()
static void ts::OpenSSL::GetErrors |
( |
UStringList & |
errors | ) |
|
|
static |
Get last errors from the OpenSSL library.
The error messages are removed from the OpenSSL error message queue.
- Parameters
-
[out] | errors | List of error messages. |
◆ ReportErrors()
Report last errors from the OpenSSL library.
The error messages are removed from the OpenSSL error message queue.
- Parameters
-
[out] | report | Where to report error messages. |
[in] | severity | Severity level. |
◆ Debug()
static bool ts::OpenSSL::Debug |
( |
| ) |
|
|
static |
Check if environment variable TS_DEBUG_OPENSSL is defined.
- Returns
- True if environment variable TS_DEBUG_OPENSSL is defined.
◆ CreateContext()
static SSL_CTX * ts::OpenSSL::CreateContext |
( |
bool |
server, |
|
|
bool |
verify_peer, |
|
|
Report & |
report |
|
) |
| |
|
static |
Create and configure a SSL_CTX context.
- Parameters
-
[in] | server | True for server side, false for client side. |
[in] | verify_peer | Verify the certificate of the peer. |
[in,out] | report | Where to report errors. |
- Returns
- The new SSL_CTX, nullptr on error.
The documentation for this class was generated from the following file: