#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/avstring.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, |
|
|
|
... |
|
) |
| |
◆ SecIdentityCreate()
SecIdentityRef SecIdentityCreate |
( |
CFAllocatorRef |
allocator, |
|
|
SecCertificateRef |
certificate, |
|
|
SecKeyRef |
privateKey |
|
) |
| |
◆ print_tls_error()
◆ 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()
◆ tls_write()
◆ tls_get_file_handle()
◆ tls_get_short_seek()
◆ options
◆ tls_class
◆ ff_tls_protocol