X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Ftls_securetransport.c;h=482771a926dbf59cc867c500f5c6ab85178dcb3b;hb=c4ef6c883bb611388f9f0dcbe49dd65cb10613a2;hp=6ad266a51bc759913c1390adde67ca2b9c8c6634;hpb=0e3e3656d31a7e1e595ccb5ca3acfc76a23d785e;p=ffmpeg diff --git a/libavformat/tls_securetransport.c b/libavformat/tls_securetransport.c index 6ad266a51bc..482771a926d 100644 --- a/libavformat/tls_securetransport.c +++ b/libavformat/tls_securetransport.c @@ -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)