#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) |
|
#define CHECK_ERROR |
( |
|
func, |
|
|
|
... |
|
) |
| |
Value:do { \
OSStatus status =
func(__VA_ARGS__);
\
} \
} while (0)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
int(* func)(AVBPrint *dst, const char *in, const char *arg)
#define AVERROR_UNKNOWN
Unknown error, typically from an external library.
Definition at line 259 of file tls_securetransport.c.
Referenced by tls_open().
SecIdentityRef SecIdentityCreate |
( |
CFAllocatorRef |
allocator, |
|
|
SecCertificateRef |
certificate, |
|
|
SecKeyRef |
privateKey |
|
) |
| |
static int import_pem |
( |
URLContext * |
h, |
|
|
char * |
path, |
|
|
CFArrayRef * |
array |
|
) |
| |
|
static |
static OSStatus tls_read_cb |
( |
SSLConnectionRef |
connection, |
|
|
void * |
data, |
|
|
size_t * |
dataLength |
|
) |
| |
|
static |
static OSStatus tls_write_cb |
( |
SSLConnectionRef |
connection, |
|
|
const void * |
data, |
|
|
size_t * |
dataLength |
|
) |
| |
|
static |
static int map_ssl_error |
( |
OSStatus |
status, |
|
|
size_t |
processed |
|
) |
| |
|
static |
Initial value:= {
}
#define TLS_COMMON_OPTIONS(pstruct, options_field)
Definition at line 400 of file tls_securetransport.c.
Initial value:= {
.class_name = "tls",
}
#define LIBAVUTIL_VERSION_INT
const char * av_default_item_name(void *ptr)
Return the context name.
static const AVOption options[]
Definition at line 405 of file tls_securetransport.c.
Initial value:= {
.name = "tls",
}
static const AVClass tls_class
static int tls_get_file_handle(URLContext *h)
#define URL_PROTOCOL_FLAG_NETWORK
static int tls_close(URLContext *h)
static int tls_open(URLContext *h, const char *uri, int flags, AVDictionary **options)
static int tls_read(URLContext *h, uint8_t *buf, int size)
static int tls_write(URLContext *h, const uint8_t *buf, int size)
Definition at line 412 of file tls_securetransport.c.