![]() |
TSDuck v3.46-4964
MPEG Transport Stream Toolkit
|
#include <tsTLSConnectionBase.h>

Public Member Functions | |
| virtual | ~TLSConnectionBase () |
| const UStringList & | additionalServerNames () const |
| void | addVerifyServer (const UString &name) |
| const UString & | serverName () const |
| void | setArgs (const TLSArgs &args) |
| void | setServerName (const UString &server_name) |
| void | setVerifyPeer (bool on) |
| bool | verifyPeer () const |
Protected Member Functions | |
| TLSConnectionBase ()=default | |
Common properties for all forms of SSL/TLS connected sockets.
|
virtual |
Virtual destructor.
|
protecteddefault |
Constructor is accessible to subclasses only.
| void ts::TLSConnectionBase::setArgs | ( | const TLSArgs & | args | ) |
Set command line arguments for the client.
| [in] | args | TLS arguments. |
|
inline |
Define if the peer's certificate shall be verified.
| [in] | on | If true, the peer's certificate will be verified. |
|
inline |
Check if the peer's certificate shall be verified.
| void ts::TLSConnectionBase::setServerName | ( | const UString & | server_name | ) |
For a client connection, specify the server name to be used in SNI (Server Name Indication).
| [in] | server_name | Main server name, as specified in SNI (Server Name Indication). Also used to verify the server's certificate when setVerifyPeer() is true. |
|
inline |
For a client connection, get the server name to be used in SNI (Server Name Indication).
| void ts::TLSConnectionBase::addVerifyServer | ( | const UString & | name | ) |
For a client connection, add another accepted host name for the server's certificate verification during connect(). The list is reset by setServerName().
| [in] | name | Additional accepted host name used to verify the server's certificate. |
|
inline |
For a client connection, get all addition host names for the server's certificate verification during connect().