|
FFmpeg
|
#include <mbedtls/version.h>#include <mbedtls/ctr_drbg.h>#include <mbedtls/entropy.h>#include <mbedtls/net_sockets.h>#include <mbedtls/platform.h>#include <mbedtls/ssl.h>#include <mbedtls/x509_crt.h>#include <mbedtls/debug.h>#include <mbedtls/timing.h>#include "avformat.h"#include "internal.h"#include "network.h"#include "url.h"#include "tls.h"#include "libavutil/mem.h"#include "libavutil/parseutils.h"#include "libavutil/avstring.h"#include "libavutil/random_seed.h"Go to the source code of this file.
Data Structures | |
| struct | dtls_srtp_keys |
| struct | TLSContext |
Macros | |
| #define | OFFSET(x) offsetof(TLSContext, x) |
Functions | |
| static int | mbedtls_x509_fingerprint (char *cert_buf, size_t cert_sz, char **fingerprint) |
| 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) |
| static int | mbedtls_gen_pkey (mbedtls_pk_context *key) |
| static int | mbedtls_gen_x509_cert (mbedtls_pk_context *key, char *cert_buf, size_t cert_sz) |
| int | ff_ssl_gen_key_cert (char *key_buf, size_t key_sz, char *cert_buf, size_t cert_sz, char **fingerprint) |
| 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) |
| static int | tls_close (URLContext *h) |
| static int | handle_transport_error (URLContext *h, const char *func_name, int react_on_eagain, int ret) |
| static int | mbedtls_send (void *ctx, const unsigned char *buf, size_t len) |
| static int | mbedtls_recv (void *ctx, unsigned char *buf, size_t len) |
| static void | mbedtls_debug (void *ctx, int lvl, const char *file, int line, const char *msg) |
| static void | handle_pk_parse_error (URLContext *h, int ret) |
| static void | handle_handshake_error (URLContext *h, int ret) |
| static int | tls_handshake (URLContext *h) |
| static int | tls_open (URLContext *h, const char *uri, int flags, AVDictionary **options) |
| static int | dtls_open (URLContext *h, const char *uri, int flags, AVDictionary **options) |
| static int | handle_tls_error (URLContext *h, const char *func_name, int ret) |
| static int | tls_read (URLContext *h, uint8_t *buf, int size) |
| static int | 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 |
| static const AVClass | dtls_class |
| const URLProtocol | ff_dtls_protocol |
| #define OFFSET | ( | x | ) | offsetof(TLSContext, x) |
Definition at line 327 of file tls_mbedtls.c.
|
static |
Definition at line 45 of file tls_mbedtls.c.
Referenced by ff_ssl_gen_key_cert(), and ff_ssl_read_key_cert().
| 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 74 of file tls_mbedtls.c.
|
static |
See RFC 8827 section 6.5, All implementations MUST support DTLS 1.2 with the TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 cipher suite and the P-256 curve.
Definition at line 111 of file tls_mbedtls.c.
Referenced by ff_ssl_gen_key_cert(), and tls_open().
|
static |
Definition at line 149 of file tls_mbedtls.c.
Referenced by ff_ssl_gen_key_cert(), and tls_open().
| 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 219 of file tls_mbedtls.c.
| int ff_tls_set_external_socket | ( | URLContext * | h, |
| URLContext * | sock | ||
| ) |
Definition at line 266 of file tls_mbedtls.c.
| int ff_dtls_export_materials | ( | URLContext * | h, |
| char * | dtls_srtp_materials, | ||
| size_t | materials_sz | ||
| ) |
Definition at line 300 of file tls_mbedtls.c.
|
static |
Definition at line 329 of file tls_mbedtls.c.
Referenced by tls_open().
|
static |
Definition at line 347 of file tls_mbedtls.c.
Referenced by mbedtls_recv(), and mbedtls_send().
|
static |
Definition at line 364 of file tls_mbedtls.c.
Referenced by tls_open().
|
static |
Definition at line 379 of file tls_mbedtls.c.
Referenced by tls_open().
|
static |
Definition at line 405 of file tls_mbedtls.c.
Referenced by tls_open().
|
static |
Definition at line 412 of file tls_mbedtls.c.
Referenced by tls_open().
|
static |
Definition at line 430 of file tls_mbedtls.c.
Referenced by tls_handshake().
|
static |
Definition at line 466 of file tls_mbedtls.c.
Referenced by tls_open().
|
static |
Definition at line 489 of file tls_mbedtls.c.
Referenced by dtls_open().
|
static |
Definition at line 693 of file tls_mbedtls.c.
|
static |
Definition at line 701 of file tls_mbedtls.c.
Referenced by tls_read(), and tls_write().
|
static |
Definition at line 723 of file tls_mbedtls.c.
|
static |
Definition at line 740 of file tls_mbedtls.c.
|
static |
Definition at line 757 of file tls_mbedtls.c.
|
static |
Definition at line 763 of file tls_mbedtls.c.
Definition at line 769 of file tls_mbedtls.c.
|
static |
Definition at line 775 of file tls_mbedtls.c.
| const URLProtocol ff_tls_protocol |
Definition at line 782 of file tls_mbedtls.c.
|
static |
Definition at line 795 of file tls_mbedtls.c.
| const URLProtocol ff_dtls_protocol |
Definition at line 802 of file tls_mbedtls.c.
1.8.17