summaryrefslogtreecommitdiff
path: root/libavformat/tls_securetransport.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/tls_securetransport.c')
-rw-r--r--libavformat/tls_securetransport.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/tls_securetransport.c b/libavformat/tls_securetransport.c
index 6ad266a51b..51b6661534 100644
--- a/libavformat/tls_securetransport.c
+++ b/libavformat/tls_securetransport.c
@@ -80,8 +80,9 @@ static int import_pem(URLContext *h, char *path, CFArrayRef *array)
goto end;
}
- if ((ret = avio_open2(&s, path, AVIO_FLAG_READ,
- &h->interrupt_callback, NULL)) < 0)
+ if ((ret = ffio_open_whitelist(&s, path, AVIO_FLAG_READ,
+ &h->interrupt_callback, NULL,
+ h->protocol_whitelist)) < 0)
goto end;
if ((ret = avio_size(s)) < 0)