From b7f01957ec37590a2143e45b377b8e6bb3bc36ed Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 27 Sep 2013 18:07:53 +0200 Subject: network: add options to control TLS verification --- mpvcore/options.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mpvcore/options.c') diff --git a/mpvcore/options.c b/mpvcore/options.c index 9cffb07284..234d8646bd 100644 --- a/mpvcore/options.c +++ b/mpvcore/options.c @@ -47,6 +47,8 @@ int network_cookies_enabled = 0; char *network_useragent="mpv " VERSION; char *network_referrer=NULL; char **network_http_header_fields=NULL; +int network_tls_verify; +char *network_tls_ca_file; extern char *lirc_configfile; @@ -388,6 +390,8 @@ const m_option_t mp_opts[] = { {"udp", 1}, {"tcp", 2}, {"http", 3})), + {"tls-verify", &network_tls_verify, CONF_TYPE_FLAG, 0, 0, 0, NULL}, + {"tls-ca-file", &network_tls_ca_file, CONF_TYPE_STRING, 0, 0, 0, NULL}, // ------------------------- demuxer options -------------------- -- cgit v1.2.3