Header Only Library
TCP Client Openssl
How to use TCP client class with openssl
References
#include "IP/InternetProtocol.hpp"
Syntax
Functions
This class has the same functions from TCPClient
, except for the ones shown below
Get Ssl Context
- Set Ssl extra configuration.
Get Ssl Socket
- Get Ssl socket
Update Ssl Socket
- Update Ssl socket configuration
- Must be called afer change options using
get_ssl_context()
function
Load Private Key Data
- Load the private key from a string.
- If any error occurs, it will trigger the
OnError
event.
Load Private Key File
- Load the private key from file.
- If any error occurs, it will trigger the
OnError
event. - Relative path.
Load Certificate Data
- Load the certificate from a string.
- If any error occurs, it will trigger the
OnError
event.
Load Certificate File
- Load the certificate from file.
- If any error occurs, it will trigger the
OnError
event. - Relative path.
Load Certificate Chain Data
- Load the certificate chain from a string.
- If any error occurs, it will trigger the
OnError
event.
Load Certificate Chain File
- Load the certificate chain from file.
- If any error occurs, it will trigger the
OnError
event. - Relative path.
Load Verify File
- Load the certificate from file and verify if it is valid.
- If any error occurs, it will trigger the
OnError
event. - Relative path.