VLC  3.0.21
Data Structures | Typedefs | Functions
tunnel.c File Reference
Include dependency graph for tunnel.c:

Data Structures

struct  vlc_tls_proxy
 

Typedefs

typedef struct vlc_tls_proxy vlc_tls_proxy_t
 

Functions

static char * vlc_http_authority (const char *host, unsigned port)
 
static struct vlc_http_msgvlc_http_tunnel_open (struct vlc_http_conn *conn, const char *hostname, unsigned port, const char *username, const char *password)
 
static int vlc_tls_ProxyGetFD (vlc_tls_t *tls)
 
static ssize_t vlc_tls_ProxyRead (vlc_tls_t *tls, struct iovec *iov, unsigned count)
 
static ssize_t vlc_tls_ProxyWrite (vlc_tls_t *tls, const struct iovec *iov, unsigned count)
 
static int vlc_tls_ProxyShutdown (vlc_tls_t *tls, bool duplex)
 
static void vlc_tls_ProxyClose (vlc_tls_t *tls)
 
vlc_tls_tvlc_https_connect_proxy (void *ctx, vlc_tls_creds_t *creds, const char *hostname, unsigned port, bool *restrict two, const char *proxy)
 

Typedef Documentation

◆ vlc_tls_proxy_t

Function Documentation

◆ vlc_http_authority()

static char* vlc_http_authority ( const char *  host,
unsigned  port 
)
static

References asprintf(), and unlikely.

Referenced by vlc_http_tunnel_open().

◆ vlc_http_tunnel_open()

static struct vlc_http_msg* vlc_http_tunnel_open ( struct vlc_http_conn conn,
const char *  hostname,
unsigned  port,
const char *  username,
const char *  password 
)
static

◆ vlc_https_connect_proxy()

vlc_tls_t* vlc_https_connect_proxy ( void *  ctx,
vlc_tls_creds_t creds,
const char *  hostname,
unsigned  port,
bool *restrict  two,
const char *  proxy 
)

◆ vlc_tls_ProxyClose()

static void vlc_tls_ProxyClose ( vlc_tls_t tls)
static

Referenced by vlc_https_connect_proxy().

◆ vlc_tls_ProxyGetFD()

static int vlc_tls_ProxyGetFD ( vlc_tls_t tls)
static

◆ vlc_tls_ProxyRead()

static ssize_t vlc_tls_ProxyRead ( vlc_tls_t tls,
struct iovec *  iov,
unsigned  count 
)
static

◆ vlc_tls_ProxyShutdown()

static int vlc_tls_ProxyShutdown ( vlc_tls_t tls,
bool  duplex 
)
static

◆ vlc_tls_ProxyWrite()

static ssize_t vlc_tls_ProxyWrite ( vlc_tls_t tls,
const struct iovec *  iov,
unsigned  count 
)
static