tls.c File Reference
#include "avformat.h"
#include "url.h"
#include "libavutil/avstring.h"
#include "libavutil/parseutils.h"
#include "network.h"
#include "os_support.h"
#include "internal.h"
Include dependency graph for tls.c:

Go to the source code of this file.

Data Structures

struct  TLSContext
 

Functions

static int do_tls_poll (URLContext *h, int ret)
 
static void set_options (URLContext *h, const char *uri)
 
static int tls_open (URLContext *h, const char *uri, int flags)
 
static int tls_read (URLContext *h, uint8_t *buf, int size)
 
static int tls_write (URLContext *h, const uint8_t *buf, int size)
 
static int tls_close (URLContext *h)
 

Variables

URLProtocol ff_tls_protocol
 

Function Documentation

static int do_tls_poll ( URLContext h,
int  ret 
)
static

Definition at line 71 of file tls.c.

Referenced by tls_open(), tls_read(), and tls_write().

static void set_options ( URLContext h,
const char *  uri 
)
static

Definition at line 107 of file tls.c.

Referenced by tls_open().

static int tls_close ( URLContext h)
static

Definition at line 291 of file tls.c.

static int tls_open ( URLContext h,
const char *  uri,
int  flags 
)
static

Definition at line 158 of file tls.c.

static int tls_read ( URLContext h,
uint8_t buf,
int  size 
)
static

Definition at line 261 of file tls.c.

static int tls_write ( URLContext h,
const uint8_t buf,
int  size 
)
static

Definition at line 276 of file tls.c.

Variable Documentation

URLProtocol ff_tls_protocol
Initial value:
= {
.name = "tls",
.url_open = tls_open,
.url_read = tls_read,
.url_write = tls_write,
.url_close = tls_close,
.priv_data_size = sizeof(TLSContext),
}
Definition: tls.c:58
#define URL_PROTOCOL_FLAG_NETWORK
Definition: url.h:35
static int tls_read(URLContext *h, uint8_t *buf, int size)
Definition: tls.c:261
static int tls_open(URLContext *h, const char *uri, int flags)
Definition: tls.c:158
static int tls_close(URLContext *h)
Definition: tls.c:291
static int flags
Definition: cpu.c:23
static int tls_write(URLContext *h, const uint8_t *buf, int size)
Definition: tls.c:276

Definition at line 301 of file tls.c.