summaryrefslogtreecommitdiffstats
path: root/libavformat/tls_securetransport.c
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2017-10-25 11:03:14 -0700
committerAman Gupta <aman@tmm1.net>2017-11-12 14:37:12 -0800
commitfd18d310ec200fa7ace29cbfc725d451663bf49c (patch)
treeb1f2af6179ecb2f6992fcc75e16d960734bebd7f /libavformat/tls_securetransport.c
parentf38d0d0c22c1871ef0728a718c5e00a6ba93bfa1 (diff)
downloadffmpeg-streaming-fd18d310ec200fa7ace29cbfc725d451663bf49c.zip
ffmpeg-streaming-fd18d310ec200fa7ace29cbfc725d451663bf49c.tar.gz
lavf/tls_securetransport: build on iOS
This works as expected on iOS, except for the ca_file feature which is disabled because SecItemImport is not available. Signed-off-by: Aman Gupta <aman@tmm1.net>
Diffstat (limited to 'libavformat/tls_securetransport.c')
-rw-r--r--libavformat/tls_securetransport.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/tls_securetransport.c b/libavformat/tls_securetransport.c
index 9958931..b862e00 100644
--- a/libavformat/tls_securetransport.c
+++ b/libavformat/tls_securetransport.c
@@ -69,6 +69,9 @@ static int print_tls_error(URLContext *h, int ret)
static int import_pem(URLContext *h, char *path, CFArrayRef *array)
{
+#if !HAVE_SECITEMIMPORT
+ return AVERROR_PATCHWELCOME;
+#else
AVIOContext *s = NULL;
CFDataRef data = NULL;
int64_t ret = 0;
@@ -124,6 +127,7 @@ end:
if (s)
avio_close(s);
return ret;
+#endif
}
static int load_ca(URLContext *h)
OpenPOWER on IntegriCloud