FFmpeg
Data Structures | Functions | Variables
tls_libtls.c File Reference
#include "avformat.h"
#include "internal.h"
#include "network.h"
#include "url.h"
#include "tls.h"
#include "libavcodec/internal.h"
#include "libavutil/avutil.h"
#include "libavutil/opt.h"

Go to the source code of this file.

Data Structures

struct  TLSContext
 

Functions

static int ff_tls_close (URLContext *h)
 
static ssize_t tls_read_callback (struct tls *ctx, void *buf, size_t buflen, void *cb_arg)
 
static ssize_t tls_write_callback (struct tls *ctx, const void *buf, size_t buflen, void *cb_arg)
 
static int ff_tls_open (URLContext *h, const char *uri, int flags, AVDictionary **options)
 
static int ff_tls_read (URLContext *h, uint8_t *buf, int size)
 
static int ff_tls_write (URLContext *h, const uint8_t *buf, int size)
 
static int tls_get_file_handle (URLContext *h)
 
static int tls_get_short_seek (URLContext *h)
 

Variables

static const AVOption options []
 
static const AVClass tls_class
 
const URLProtocol ff_tls_protocol
 

Function Documentation

◆ ff_tls_close()

static int ff_tls_close ( URLContext h)
static

Definition at line 40 of file tls_libtls.c.

Referenced by ff_tls_open().

◆ tls_read_callback()

static ssize_t tls_read_callback ( struct tls *  ctx,
void *  buf,
size_t  buflen,
void *  cb_arg 
)
static

Definition at line 51 of file tls_libtls.c.

Referenced by ff_tls_open().

◆ tls_write_callback()

static ssize_t tls_write_callback ( struct tls *  ctx,
const void *  buf,
size_t  buflen,
void *  cb_arg 
)
static

Definition at line 62 of file tls_libtls.c.

Referenced by ff_tls_open().

◆ ff_tls_open()

static int ff_tls_open ( URLContext h,
const char *  uri,
int  flags,
AVDictionary **  options 
)
static

Definition at line 73 of file tls_libtls.c.

◆ ff_tls_read()

static int ff_tls_read ( URLContext h,
uint8_t *  buf,
int  size 
)
static

Definition at line 152 of file tls_libtls.c.

◆ ff_tls_write()

static int ff_tls_write ( URLContext h,
const uint8_t *  buf,
int  size 
)
static

Definition at line 167 of file tls_libtls.c.

◆ tls_get_file_handle()

static int tls_get_file_handle ( URLContext h)
static

Definition at line 182 of file tls_libtls.c.

◆ tls_get_short_seek()

static int tls_get_short_seek ( URLContext h)
static

Definition at line 188 of file tls_libtls.c.

Variable Documentation

◆ options

const AVOption options[]
static
Initial value:
= {
{ NULL }
}

Definition at line 194 of file tls_libtls.c.

Referenced by ff_tls_open().

◆ tls_class

const AVClass tls_class
static
Initial value:
= {
.class_name = "tls",
.item_name = av_default_item_name,
.option = options,
}

Definition at line 199 of file tls_libtls.c.

◆ ff_tls_protocol

const URLProtocol ff_tls_protocol
Initial value:
= {
.name = "tls",
.url_open2 = ff_tls_open,
.url_read = ff_tls_read,
.url_write = ff_tls_write,
.url_close = ff_tls_close,
.url_get_file_handle = tls_get_file_handle,
.url_get_short_seek = tls_get_short_seek,
.priv_data_size = sizeof(TLSContext),
.priv_data_class = &tls_class,
}

Definition at line 206 of file tls_libtls.c.

TLSContext
Definition: tls_gnutls.c:48
URL_PROTOCOL_FLAG_NETWORK
#define URL_PROTOCOL_FLAG_NETWORK
Definition: url.h:33
ff_tls_close
static int ff_tls_close(URLContext *h)
Definition: tls_libtls.c:40
ff_tls_read
static int ff_tls_read(URLContext *h, uint8_t *buf, int size)
Definition: tls_libtls.c:152
TLS_COMMON_OPTIONS
#define TLS_COMMON_OPTIONS(pstruct, options_field)
Definition: tls.h:46
ff_tls_open
static int ff_tls_open(URLContext *h, const char *uri, int flags, AVDictionary **options)
Definition: tls_libtls.c:73
tls_class
static const AVClass tls_class
Definition: tls_libtls.c:199
tls_get_file_handle
static int tls_get_file_handle(URLContext *h)
Definition: tls_libtls.c:182
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
NULL
#define NULL
Definition: coverity.c:32
av_default_item_name
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:237
options
static const AVOption options[]
Definition: tls_libtls.c:194
tls_get_short_seek
static int tls_get_short_seek(URLContext *h)
Definition: tls_libtls.c:188
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:561
ff_tls_write
static int ff_tls_write(URLContext *h, const uint8_t *buf, int size)
Definition: tls_libtls.c:167