From 1ee8ce75f1f079e7d482297abd0848689718b35b Mon Sep 17 00:00:00 2001 From: Joschka Tillmanns Date: Tue, 20 Oct 2015 20:27:58 +0200 Subject: options: add support for client certificate authentication Client certificates are supported by ffmpeg as documented here: > https://www.ffmpeg.org/ffmpeg-protocols.html#tls Signed-off-by: wm4 --- stream/stream_lavf.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'stream') diff --git a/stream/stream_lavf.c b/stream/stream_lavf.c index c5d8f1a8c4..a66ff94374 100644 --- a/stream/stream_lavf.c +++ b/stream/stream_lavf.c @@ -168,6 +168,10 @@ void mp_setup_av_network_options(AVDictionary **dict, struct mpv_global *global, av_dict_set(dict, "tls_verify", opts->network_tls_verify ? "1" : "0", 0); if (opts->network_tls_ca_file) av_dict_set(dict, "ca_file", opts->network_tls_ca_file, 0); + if (opts->network_tls_cert_file) + av_dict_set(dict, "cert_file", opts->network_tls_cert_file, 0); + if (opts->network_tls_key_file) + av_dict_set(dict, "key_file", opts->network_tls_key_file, 0); char *cust_headers = talloc_strdup(temp, ""); if (opts->network_referrer) { cust_headers = talloc_asprintf_append(cust_headers, "Referer: %s\r\n", -- cgit v1.2.3