FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
tls_gnutls.c File Reference
#include <errno.h>
#include <gnutls/gnutls.h>
#include <gnutls/x509.h>
#include "avformat.h"
#include "internal.h"
#include "network.h"
#include "os_support.h"
#include "url.h"
#include "tls.h"
#include "libavcodec/internal.h"
#include "libavutil/avstring.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"

Go to the source code of this file.

Data Structures

struct  TLSContext
 

Functions

void ff_gnutls_init (void)
 
void ff_gnutls_deinit (void)
 
static int print_tls_error (URLContext *h, int ret)
 
static int tls_close (URLContext *h)
 
static ssize_t gnutls_url_pull (gnutls_transport_ptr_t transport, void *buf, size_t len)
 
static ssize_t gnutls_url_push (gnutls_transport_ptr_t transport, const void *buf, size_t len)
 
static int tls_open (URLContext *h, const char *uri, int flags, AVDictionary **options)
 
static int tls_read (URLContext *h, uint8_t *buf, int size)
 
static int tls_write (URLContext *h, const uint8_t *buf, int size)
 

Variables

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

Function Documentation

void ff_gnutls_init ( void  )

Definition at line 52 of file tls_gnutls.c.

Referenced by ff_tls_init(), and tls_open().

void ff_gnutls_deinit ( void  )

Definition at line 63 of file tls_gnutls.c.

Referenced by ff_tls_deinit(), and tls_close().

static int print_tls_error ( URLContext h,
int  ret 
)
static

Definition at line 70 of file tls_gnutls.c.

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

static int tls_close ( URLContext h)
static

Definition at line 86 of file tls_gnutls.c.

Referenced by tls_open().

static ssize_t gnutls_url_pull ( gnutls_transport_ptr_t  transport,
void buf,
size_t  len 
)
static

Definition at line 101 of file tls_gnutls.c.

Referenced by tls_open().

static ssize_t gnutls_url_push ( gnutls_transport_ptr_t  transport,
const void buf,
size_t  len 
)
static

Definition at line 114 of file tls_gnutls.c.

Referenced by tls_open().

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

Definition at line 127 of file tls_gnutls.c.

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

Definition at line 216 of file tls_gnutls.c.

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

Definition at line 227 of file tls_gnutls.c.

Variable Documentation

const AVOption options[]
static
Initial value:
= {
{ NULL }
}
#define NULL
Definition: coverity.c:32
#define TLS_COMMON_OPTIONS(pstruct, options_field)
Definition: tls.h:47

Definition at line 238 of file tls_gnutls.c.

const AVClass tls_class
static
Initial value:
= {
.class_name = "tls",
.item_name = av_default_item_name,
.option = options,
}
#define LIBAVUTIL_VERSION_INT
Definition: version.h:62
av_default_item_name
static const AVOption options[]
Definition: tls_gnutls.c:238

Definition at line 243 of file tls_gnutls.c.

URLProtocol ff_tls_gnutls_protocol
Initial value:
= {
.name = "tls",
.url_open2 = tls_open,
.url_read = tls_read,
.url_write = tls_write,
.url_close = tls_close,
.priv_data_size = sizeof(TLSContext),
.priv_data_class = &tls_class,
}
#define URL_PROTOCOL_FLAG_NETWORK
Definition: url.h:35
static const AVClass tls_class
Definition: tls_gnutls.c:243
static int tls_read(URLContext *h, uint8_t *buf, int size)
Definition: tls_gnutls.c:216
static int tls_close(URLContext *h)
Definition: tls_gnutls.c:86
static int flags
Definition: cpu.c:47
static int tls_open(URLContext *h, const char *uri, int flags, AVDictionary **options)
Definition: tls_gnutls.c:127
static int tls_write(URLContext *h, const uint8_t *buf, int size)
Definition: tls_gnutls.c:227

Definition at line 250 of file tls_gnutls.c.