FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
tls.h File Reference
#include "libavutil/opt.h"
#include "url.h"

Go to the source code of this file.

Data Structures

struct  TLSShared
 

Macros

#define TLS_OPTFL   (AV_OPT_FLAG_DECODING_PARAM | AV_OPT_FLAG_ENCODING_PARAM)
 
#define TLS_COMMON_OPTIONS(pstruct, options_field)
 

Functions

int ff_tls_open_underlying (TLSShared *c, URLContext *parent, const char *uri, AVDictionary **options)
 
void ff_gnutls_init (void)
 
void ff_gnutls_deinit (void)
 
int ff_openssl_init (void)
 
void ff_openssl_deinit (void)
 

Macro Definition Documentation

Definition at line 44 of file tls.h.

#define TLS_COMMON_OPTIONS (   pstruct,
  options_field 
)
Value:
{"ca_file", "Certificate Authority database file", offsetof(pstruct, options_field . ca_file), AV_OPT_TYPE_STRING, .flags = TLS_OPTFL }, \
{"cafile", "Certificate Authority database file", offsetof(pstruct, options_field . ca_file), AV_OPT_TYPE_STRING, .flags = TLS_OPTFL }, \
{"tls_verify", "Verify the peer certificate", offsetof(pstruct, options_field . verify), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 1, .flags = TLS_OPTFL }, \
{"cert_file", "Certificate file", offsetof(pstruct, options_field . cert_file), AV_OPT_TYPE_STRING, .flags = TLS_OPTFL }, \
{"key_file", "Private key file", offsetof(pstruct, options_field . key_file), AV_OPT_TYPE_STRING, .flags = TLS_OPTFL }, \
{"listen", "Listen for incoming connections", offsetof(pstruct, options_field . listen), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 1, .flags = TLS_OPTFL }, \
{"verifyhost", "Verify against a specific hostname", offsetof(pstruct, options_field . host), AV_OPT_TYPE_STRING, .flags = TLS_OPTFL }
#define TLS_OPTFL
Definition: tls.h:44

Definition at line 45 of file tls.h.

Function Documentation

int ff_tls_open_underlying ( TLSShared c,
URLContext parent,
const char *  uri,
AVDictionary **  options 
)

Definition at line 56 of file tls.c.

Referenced by ff_tls_open(), and tls_open().

void ff_gnutls_init ( void  )

Definition at line 56 of file tls_gnutls.c.

Referenced by ff_tls_init(), and tls_open().

void ff_gnutls_deinit ( void  )

Definition at line 67 of file tls_gnutls.c.

Referenced by ff_tls_deinit(), and tls_close().

int ff_openssl_init ( void  )

Definition at line 69 of file tls_openssl.c.

Referenced by ff_tls_init(), and tls_open().

void ff_openssl_deinit ( void  )

Definition at line 99 of file tls_openssl.c.

Referenced by ff_tls_deinit(), and tls_close().