]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/tls_securetransport.c
Merge commit 'e192cd9ce2b51c2e6919f2a78b1ce53e0024e728'
[ffmpeg] / libavformat / tls_securetransport.c
index 6ad266a51bc759913c1390adde67ca2b9c8c6634..482771a926dbf59cc867c500f5c6ab85178dcb3b 100644 (file)
@@ -22,6 +22,7 @@
 
 
 #include "avformat.h"
+#include "avio_internal.h"
 #include "internal.h"
 #include "network.h"
 #include "os_support.h"
@@ -80,8 +81,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)