mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-20 22:10:07 +01:00
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>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user