|
Async 1.9.1
|
SSL context meant to be used with TcpConnection and friends. More...
#include <AsyncSslContext.h>
Public Member Functions | |
| SslContext (void) | |
| Default constructor. | |
| SslContext (SSL_CTX *ctx) | |
| Constructor. | |
| SslContext (const SslContext &)=delete | |
| Do not allow copy construction. | |
| SslContext & | operator= (const SslContext &)=delete |
| Do not allow assignment. | |
| ~SslContext (void) | |
| Destructor. | |
| bool | setCertificateFiles (const std::string &keyfile, const std::string &crtfile) |
| Set which key and certificate file to use for connections. | |
| bool | caCertificateFileIsSet (void) const |
| Find out if the CA certificate file is set. | |
| bool | setCaCertificateFile (const std::string &cafile) |
| Set which CA certificate file to use for verifying certificates. | |
| operator SSL_CTX * (void) | |
| Cast to pointer to SSL_CTX. | |
| operator const SSL_CTX * (void) const | |
Static Public Member Functions | |
| static void | sslPrintErrors (const std::string &fname) |
| Print the latest SSL errors. | |
SSL context meant to be used with TcpConnection and friends.
Definition at line 116 of file AsyncSslContext.h.
|
inline |
Default constructor.
Definition at line 133 of file AsyncSslContext.h.
Referenced by operator=(), and SslContext().
|
inline |
Constructor.
| ctx | Use this existing context |
Definition at line 159 of file AsyncSslContext.h.
|
delete |
Do not allow copy construction.
References SslContext().
|
inline |
Destructor.
Definition at line 174 of file AsyncSslContext.h.
|
inline |
Find out if the CA certificate file is set.
Definition at line 224 of file AsyncSslContext.h.
|
inline |
Definition at line 243 of file AsyncSslContext.h.
|
inline |
Cast to pointer to SSL_CTX.
Definition at line 242 of file AsyncSslContext.h.
|
delete |
Do not allow assignment.
References SslContext().
|
inline |
Set which CA certificate file to use for verifying certificates.
| cafile | The path to the CA file |
Definition at line 231 of file AsyncSslContext.h.
|
inline |
Set which key and certificate file to use for connections.
| keyfile | The path to the key file |
| crtfile | The path to the certificate file |
Definition at line 186 of file AsyncSslContext.h.
References sslPrintErrors().
|
inlinestatic |
Print the latest SSL errors.
| fname | The name of the last called function |
Definition at line 123 of file AsyncSslContext.h.
Referenced by setCertificateFiles().