|
vlc_tls_creds_t * | vlc_tls_ClientCreate (vlc_object_t *) |
| Allocates TLS credentials for a client. More...
|
|
vlc_tls_creds_t * | vlc_tls_ServerCreate (vlc_object_t *, const char *cert, const char *key) |
| Allocates server TLS credentials. More...
|
|
static int | vlc_tls_SessionHandshake (vlc_tls_creds_t *crd, vlc_tls_t *tls) |
|
void | vlc_tls_Delete (vlc_tls_creds_t *) |
| Releases TLS credentials. More...
|
|
vlc_tls_t * | vlc_tls_ClientSessionCreate (vlc_tls_creds_t *creds, vlc_tls_t *sock, const char *host, const char *service, const char *const *alpn, char **alp) |
| Initiates a client TLS session. More...
|
|
vlc_tls_t * | vlc_tls_ServerSessionCreate (vlc_tls_creds_t *creds, vlc_tls_t *sock, const char *const *alpn) |
| Creates a TLS server session. More...
|
|
void | vlc_tls_SessionDelete (vlc_tls_t *) |
| Destroys a TLS session down. More...
|
|
static int | vlc_tls_GetFD (vlc_tls_t *tls) |
|
ssize_t | vlc_tls_Read (vlc_tls_t *, void *buf, size_t len, bool waitall) |
| Receives data through a socket. More...
|
|
char * | vlc_tls_GetLine (vlc_tls_t *) |
| Receives a text line through a socket. More...
|
|
ssize_t | vlc_tls_Write (vlc_tls_t *, const void *buf, size_t len) |
| Sends data through a socket. More...
|
|
static int | vlc_tls_Shutdown (vlc_tls_t *tls, bool duplex) |
| Shuts a connection down. More...
|
|
static void | vlc_tls_Close (vlc_tls_t *session) |
| Closes a connection and its underlying resources. More...
|
|
vlc_tls_t * | vlc_tls_SocketOpen (int fd) |
| Creates a transport-layer stream from a socket. More...
|
|
int | vlc_tls_SocketPair (int family, int protocol, vlc_tls_t *[2]) |
| Creates a connected pair of transport-layer sockets. More...
|
|
vlc_tls_t * | vlc_tls_SocketOpenAddrInfo (const struct addrinfo *ai, bool defer_connect) |
| Creates a transport-layer stream from a struct addrinfo. More...
|
|
vlc_tls_t * | vlc_tls_SocketOpenTCP (vlc_object_t *obj, const char *hostname, unsigned port) |
| Creates a transport-layer TCP stream from a name and port. More...
|
|
vlc_tls_t * | vlc_tls_SocketOpenTLS (vlc_tls_creds_t *crd, const char *hostname, unsigned port, const char *service, const char *const *alpn, char **alp) |
| Initiates a TLS session over TCP. More...
|
|
static vlc_tls_t * | vlc_tls_ClientSessionCreateFD (vlc_tls_creds_t *crd, int fd, const char *host, const char *srv, const char *const *lp, char **p) |
|
Transport layer functions