|
FFmpeg
|
Go to the source code of this file.
Data Structures | |
| struct | TLSShared |
Macros | |
| #define | MAX_CERTIFICATE_SIZE 8192 |
| Maximum size limit of a certificate and private key size. More... | |
| #define | DTLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC 20 |
| The DTLS content type. More... | |
| #define | DTLS_RECORD_LAYER_HEADER_LEN 13 |
| The DTLS record layer header has a total size of 13 bytes, consisting of ContentType (1 byte), ProtocolVersion (2 bytes), Epoch (2 bytes), SequenceNumber (6 bytes), and Length (2 bytes). More... | |
| #define | DTLS_VERSION_10 0xfeff |
| The DTLS version number, which is 0xfeff for DTLS 1.0, or 0xfefd for DTLS 1.2. More... | |
| #define | DTLS_VERSION_12 0xfefd |
| #define | TLS_OPTFL (AV_OPT_FLAG_DECODING_PARAM | AV_OPT_FLAG_ENCODING_PARAM) |
| #define | TLS_VERIFY_DEFAULT 0 |
| #define | FF_TLS_CLIENT_OPTIONS(pstruct, options_field) |
| #define | TLS_COMMON_OPTIONS(pstruct, options_field) |
Functions | |
| 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. More... | |
| int | ff_tls_set_external_socket (URLContext *h, URLContext *sock) |
| int | ff_dtls_export_materials (URLContext *h, char *dtls_srtp_materials, size_t materials_sz) |
| int | ff_ssl_read_key_cert (char *key_url, char *cert_url, char *key_buf, size_t key_sz, char *cert_buf, size_t cert_sz, char **fingerprint) |
| int | ff_ssl_gen_key_cert (char *key_buf, size_t key_sz, char *cert_buf, size_t cert_sz, char **fingerprint) |
| void | ff_gnutls_init (void) |
| void | ff_gnutls_deinit (void) |
| int | ff_openssl_init (void) |
| void | ff_openssl_deinit (void) |
| 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. More... | |
| #define MAX_CERTIFICATE_SIZE 8192 |
| #define DTLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC 20 |
The DTLS content type.
See https://tools.ietf.org/html/rfc2246#section-6.2.1 change_cipher_spec(20), alert(21), handshake(22), application_data(23)
| #define DTLS_RECORD_LAYER_HEADER_LEN 13 |
The DTLS record layer header has a total size of 13 bytes, consisting of ContentType (1 byte), ProtocolVersion (2 bytes), Epoch (2 bytes), SequenceNumber (6 bytes), and Length (2 bytes).
| #define DTLS_VERSION_10 0xfeff |
The DTLS version number, which is 0xfeff for DTLS 1.0, or 0xfefd for DTLS 1.2.
See https://datatracker.ietf.org/doc/html/rfc9147#name-the-dtls-record-layer
| #define TLS_OPTFL (AV_OPT_FLAG_DECODING_PARAM | AV_OPT_FLAG_ENCODING_PARAM) |
| #define FF_TLS_CLIENT_OPTIONS | ( | pstruct, | |
| options_field | |||
| ) |
| #define TLS_COMMON_OPTIONS | ( | pstruct, | |
| options_field | |||
| ) |
| int ff_tls_open_underlying | ( | TLSShared * | c, |
| URLContext * | parent, | ||
| const char * | uri, | ||
| AVDictionary ** | options | ||
| ) |
Definition at line 35 of file tls.c.
Referenced by dtls_start(), ff_tls_open(), and tls_open().
| 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 117 of file tls.c.
Referenced by ff_ssl_read_key_cert(), and tls_load_key_cert().
| int ff_tls_set_external_socket | ( | URLContext * | h, |
| URLContext * | sock | ||
| ) |
Definition at line 363 of file tls_gnutls.c.
Referenced by dtls_initialize().
| int ff_dtls_export_materials | ( | URLContext * | h, |
| char * | dtls_srtp_materials, | ||
| size_t | materials_sz | ||
| ) |
Definition at line 376 of file tls_gnutls.c.
Referenced by setup_srtp().
| int ff_ssl_read_key_cert | ( | char * | key_url, |
| char * | cert_url, | ||
| char * | key_buf, | ||
| size_t | key_sz, | ||
| char * | cert_buf, | ||
| size_t | cert_sz, | ||
| char ** | fingerprint | ||
| ) |
Definition at line 112 of file tls_gnutls.c.
Referenced by certificate_key_init().
| int ff_ssl_gen_key_cert | ( | char * | key_buf, |
| size_t | key_sz, | ||
| char * | cert_buf, | ||
| size_t | cert_sz, | ||
| char ** | fingerprint | ||
| ) |
Definition at line 296 of file tls_gnutls.c.
Referenced by certificate_key_init().
| void ff_gnutls_init | ( | void | ) |
Definition at line 345 of file tls_gnutls.c.
Referenced by ff_tls_init(), and tls_open().
| void ff_gnutls_deinit | ( | void | ) |
Definition at line 356 of file tls_gnutls.c.
Referenced by ff_tls_deinit(), and tls_close().
| int ff_openssl_init | ( | void | ) |
| void ff_openssl_deinit | ( | void | ) |
| 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 156 of file tls.c.
Referenced by ice_dtls_handshake(), mbedtls_recv(), and whip_write_packet().
1.8.17