summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-09-27 18:07:53 +0200
committerwm4 <wm4@nowhere>2013-09-27 18:09:30 +0200
commitb7f01957ec37590a2143e45b377b8e6bb3bc36ed (patch)
treea9db70cd5906992170a4cd5798ec4bdd654518cf /stream
parentb8382aabb338db49b1cc0344a7ec386fa7f7f1c2 (diff)
downloadmpv-b7f01957ec37590a2143e45b377b8e6bb3bc36ed.tar.bz2
mpv-b7f01957ec37590a2143e45b377b8e6bb3bc36ed.tar.xz
network: add options to control TLS verification
Diffstat (limited to 'stream')
-rw-r--r--stream/stream_lavf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/stream/stream_lavf.c b/stream/stream_lavf.c
index 545a8dfc5c..c7161b506c 100644
--- a/stream/stream_lavf.c
+++ b/stream/stream_lavf.c
@@ -179,6 +179,9 @@ static int open_f(stream_t *stream, int mode)
av_dict_set(&dict, "user-agent", network_useragent, 0);
if (network_cookies_enabled)
av_dict_set(&dict, "cookies", talloc_steal(temp, cookies_lavf()), 0);
+ av_dict_set(&dict, "tls_verify", network_tls_verify ? "1" : "0", 0);
+ if (network_tls_ca_file)
+ av_dict_set(&dict, "ca_file", network_tls_ca_file, 0);
char *cust_headers = talloc_strdup(temp, "");
if (network_referrer) {
cust_headers = talloc_asprintf_append(cust_headers, "Referer: %s\r\n",