summaryrefslogtreecommitdiffstats
path: root/stream/stream_lavf.c
diff options
context:
space:
mode:
authorJoschka Tillmanns <joschka@tillmanns.me>2015-10-20 20:27:58 +0200
committerwm4 <wm4@nowhere>2015-10-20 22:55:27 +0200
commit1ee8ce75f1f079e7d482297abd0848689718b35b (patch)
treebabc2ed13aba025b4d2186021a9f8fcf2baa2553 /stream/stream_lavf.c
parent0121d00478bcbf38cc88c71b40d70804b1fb1588 (diff)
downloadmpv-1ee8ce75f1f079e7d482297abd0848689718b35b.tar.bz2
mpv-1ee8ce75f1f079e7d482297abd0848689718b35b.tar.xz
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 <wm4@nowhere>
Diffstat (limited to 'stream/stream_lavf.c')
-rw-r--r--stream/stream_lavf.c4
1 files changed, 4 insertions, 0 deletions
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",