VLC  4.0.0-dev
Macros | Functions

Transport Layer Session protocol API. More...

Include dependency graph for tls.c:

Macros

#define SOL_TCP   IPPROTO_TCP
 

Functions

static int tls_server_load (void *func, bool forced, va_list ap)
 
static int tls_client_load (void *func, bool forced, va_list ap)
 
vlc_tls_server_tvlc_tls_ServerCreate (vlc_object_t *obj, const char *cert_path, const char *key_path)
 Allocates server TLS credentials. More...
 
void vlc_tls_ServerDelete (vlc_tls_server_t *crd)
 Releases server-side TLS credentials. More...
 
vlc_tls_client_tvlc_tls_ClientCreate (vlc_object_t *obj)
 Allocates TLS client-side credentials. More...
 
void vlc_tls_ClientDelete (vlc_tls_client_t *crd)
 Releases TLS client-side credentials. More...
 
void vlc_tls_SessionDelete (vlc_tls_t *session)
 Destroys a TLS session. More...
 
static void cleanup_tls (void *data)
 
vlc_tls_tvlc_tls_ClientSessionCreate (vlc_tls_client_t *crd, vlc_tls_t *sock, const char *host, const char *service, const char *const *alpn, char **alp)
 Initiates a client TLS session. More...
 
vlc_tls_tvlc_tls_ServerSessionCreate (vlc_tls_server_t *crd, vlc_tls_t *sock, const char *const *alpn)
 Creates a TLS server session. More...
 
vlc_tls_tvlc_tls_SocketOpenTLS (vlc_tls_client_t *creds, const char *name, unsigned port, const char *service, const char *const *alpn, char **alp)
 Initiates a TLS session over TCP. More...
 

Detailed Description

Transport Layer Session protocol API.

Macro Definition Documentation

◆ SOL_TCP

#define SOL_TCP   IPPROTO_TCP

Function Documentation

◆ cleanup_tls()

static void cleanup_tls ( void *  data)
static

◆ tls_client_load()

static int tls_client_load ( void *  func,
bool  forced,
va_list  ap 
)
static

References VLC_OBJECT, and vlc_objres_clear().

Referenced by vlc_tls_ClientCreate().

◆ tls_server_load()

static int tls_server_load ( void *  func,
bool  forced,
va_list  ap 
)
static

References VLC_OBJECT, and vlc_objres_clear().

Referenced by vlc_tls_ServerCreate().