![]() |
SCTC
the soundcloud.com terminal client
|
Exported functions required for handling encrypted (TLS) TCP/IP connections. More...
Go to the source code of this file.
Functions | |
| bool | tls_init () |
| Global initialization of TLS. More... | |
| struct network_conn * | tls_connect (char *server, int port) |
| Connect an encrypted TCP/IP socket to server:port. More... | |
| bool | tls_finalize () |
| Free previous global initialization of TLS. More... | |
Exported functions required for handling encrypted (TLS) TCP/IP connections.
| struct network_conn* tls_connect | ( | char * | server, |
| int | port | ||
| ) |
Connect an encrypted TCP/IP socket to server:port.
| server | The server to connect to, either an IP or a hostname. |
| port | The servers port (0 <= port <= 65536) |
| bool tls_finalize | ( | ) |
Free previous global initialization of TLS.
| bool tls_init | ( | ) |
Global initialization of TLS.
This function is required to be called prior to the first call tls_connect(). Global initialization, such as loading the list of trusted CAs is performed here.
1.8.9.1