Secure socket layer (SSL) context instance handle.
More...
#include <socket.hpp>
|
|
| SslContext (const SslContext &)=delete |
|
| SslContext (SslContext &&r) noexcept |
|
SslContext & | operator= (SslContext &)=delete |
|
SslContext & | operator= (SslContext &&r) noexcept |
|
| SslContext () noexcept |
| | Creates a new empty socket SSL context.
|
| | SslContext (const char *certificateFilePath, const char *certificatesDirectory=nullptr) |
| | Creates a new public socket SSL context.
|
| | SslContext (const char *certificateFilePath, const char *privateKeyFilePath, bool certificateChain=false) |
| | Creates a new private socket SSL context.
|
| | ~SslContext () |
| | Destroys socket SSL context instance.
|
| void | destroy () noexcept |
| | Destroys socket SSL context instance.
|
|
SslContext_T * | getInstance () const noexcept |
| | Returns socket SSL context view instance.
|
|
| operator bool () const noexcept |
| | Returns true if socket SSL context view is not null.
|
Secure socket layer (SSL) context instance handle.
See the socket.h
◆ SslContext() [1/2]
| SslContext |
( |
const char * | certificateFilePath, |
|
|
const char * | certificatesDirectory = nullptr ) |
|
inline |
Creates a new public socket SSL context.
See the createPublicSslContext().
- Parameters
-
| [in] | certificateFilePath | certificate file path string or nullptr |
| [in] | certificatesDirectory | certificates directory path string or nullptr |
- Exceptions
-
| Error | with a NetsResult string on failure. |
◆ SslContext() [2/2]
| SslContext |
( |
const char * | certificateFilePath, |
|
|
const char * | privateKeyFilePath, |
|
|
bool | certificateChain = false ) |
|
inline |
Creates a new private socket SSL context.
See the createPrivateSslContext().
- Parameters
-
| [in] | certificateFilePath | certificates file path string |
| [in] | privateKeyFilePath | private key file path string |
| certificateChain | file path is certificate chain |
- Exceptions
-
| Error | with a NetsResult string on failure. |
◆ ~SslContext()
◆ destroy()