FFmpeg
Loading...
Searching...
No Matches
tls.c File Reference
#include "avformat.h"
#include "internal.h"
#include "network.h"
#include "os_support.h"
#include "url.h"
#include "tls.h"
#include "libavutil/avstring.h"
#include "libavutil/getenv_utf8.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "libavutil/parseutils.h"

Go to the source code of this file.

Functions

int ff_tls_parse_host (TLSShared *s, char *hostname, int hostname_size, int *port_ptr, const char *uri)
 
int ff_tls_open_underlying (TLSShared *c, URLContext *parent, const char *uri, AVDictionary **options)
 
int ff_url_read_all (const char *url, AVBPrint *bp)
 Read all data from the given URL url and store it in the given buffer bp.
 
int ff_is_dtls_packet (const uint8_t *buf, int size)
 Whether the packet is a DTLS packet, as defined by RFC 5764 Section 5.1.2.
 

Function Documentation

◆ ff_tls_parse_host()

int ff_tls_parse_host ( TLSShared * s,
char * hostname,
int hostname_size,
int * port_ptr,
const char * uri )

Definition at line 35 of file tls.c.

Referenced by ff_tls_open_underlying(), tls_open(), tls_open(), and tls_open().

◆ ff_tls_open_underlying()

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

Definition at line 54 of file tls.c.

Referenced by ff_tls_open(), tls_open(), tls_open(), tls_open(), tls_open(), and tls_open().

◆ ff_url_read_all()

int ff_url_read_all ( const char * url,
AVBPrint * bp )

Read all data from the given URL url and store it in the given buffer bp.

Definition at line 128 of file tls.c.

Referenced by ff_ssl_read_key_cert(), and tls_load_key_cert().

◆ ff_is_dtls_packet()

int ff_is_dtls_packet ( const uint8_t * buf,
int size )

Whether the packet is a DTLS packet, as defined by RFC 5764 Section 5.1.2.

Definition at line 167 of file tls.c.

Referenced by ice_dtls_handshake(), mbedtls_recv(), and whip_write_packet().