#include <errno.h>
#include "avformat.h"
#include "avio_internal.h"
#include "internal.h"
#include "network.h"
#include "os_support.h"
#include "url.h"
#include "tls.h"
#include "libavcodec/internal.h"
#include "libavutil/attributes.h"
#include "libavutil/avstring.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include <Security/Security.h>
#include <Security/SecureTransport.h>
#include <CoreFoundation/CoreFoundation.h>
Go to the source code of this file.
|
| SecIdentityRef | SecIdentityCreate (CFAllocatorRef allocator, SecCertificateRef certificate, SecKeyRef privateKey) |
| |
| static int | print_tls_error (URLContext *h, int ret) |
| |
| static int | import_pem (URLContext *h, char *path, CFArrayRef *array) |
| |
| static int | load_ca (URLContext *h) |
| |
| static int | load_cert (URLContext *h) |
| |
| static OSStatus | tls_read_cb (SSLConnectionRef connection, void *data, size_t *dataLength) |
| |
| static OSStatus | tls_write_cb (SSLConnectionRef connection, const void *data, size_t *dataLength) |
| |
| static int | tls_close (URLContext *h) |
| |
| static int | tls_open (URLContext *h, const char *uri, int flags, AVDictionary **options) |
| |
| static int | map_ssl_error (OSStatus status, size_t processed) |
| |
| 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) |
| |
◆ ioErr
◆ CHECK_ERROR
| #define CHECK_ERROR |
( |
| func, |
|
|
| ... ) |
Value: do { \
OSStatus status =
func(__VA_ARGS__); \
if (status != noErr) { \
} \
} while (0)
#define AVERROR_UNKNOWN
Unknown error, typically from an external library.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
int(* func)(AVBPrint *dst, const char *in, const char *arg)
Definition at line 259 of file tls_securetransport.c.
Referenced by tls_open().
◆ SecIdentityCreate()
| SecIdentityRef SecIdentityCreate |
( |
CFAllocatorRef | allocator, |
|
|
SecCertificateRef | certificate, |
|
|
SecKeyRef | privateKey ) |
◆ print_tls_error()
| static int print_tls_error |
( |
URLContext * | h, |
|
|
int | ret ) |
|
static |
◆ import_pem()
| static int import_pem |
( |
URLContext * | h, |
|
|
char * | path, |
|
|
CFArrayRef * | array ) |
|
static |
◆ load_ca()
◆ load_cert()
◆ tls_read_cb()
| static OSStatus tls_read_cb |
( |
SSLConnectionRef | connection, |
|
|
void * | data, |
|
|
size_t * | dataLength ) |
|
static |
◆ tls_write_cb()
| static OSStatus tls_write_cb |
( |
SSLConnectionRef | connection, |
|
|
const void * | data, |
|
|
size_t * | dataLength ) |
|
static |
◆ tls_close()
◆ tls_open()
◆ map_ssl_error()
| static int map_ssl_error |
( |
OSStatus | status, |
|
|
size_t | processed ) |
|
static |
◆ tls_read()
| static int tls_read |
( |
URLContext * | h, |
|
|
uint8_t * | buf, |
|
|
int | size ) |
|
static |
◆ tls_write()
| static int tls_write |
( |
URLContext * | h, |
|
|
const uint8_t * | buf, |
|
|
int | size ) |
|
static |
◆ tls_get_file_handle()
◆ tls_get_short_seek()
◆ options
Initial value:= {
}
#define TLS_COMMON_OPTIONS(pstruct, options_field)
Definition at line 407 of file tls_securetransport.c.
◆ tls_class
Initial value:= {
.class_name = "tls",
}
const char * av_default_item_name(void *ptr)
Return the context name.
#define LIBAVUTIL_VERSION_INT
Definition at line 412 of file tls_securetransport.c.
◆ ff_tls_protocol
Initial value:= {
.name = "tls",
}
#define flags(name, subs,...)
static int tls_close(URLContext *h)
static const AVClass tls_class
static int tls_read(URLContext *h, uint8_t *buf, int size)
static int tls_open(URLContext *h, const char *uri, int flags, AVDictionary **options)
static int tls_get_short_seek(URLContext *h)
static int tls_write(URLContext *h, const uint8_t *buf, int size)
static int tls_get_file_handle(URLContext *h)
#define URL_PROTOCOL_FLAG_NETWORK
Definition at line 419 of file tls_securetransport.c.