summaryrefslogtreecommitdiffstats
path: root/options/options.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 /options/options.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 'options/options.c')
-rw-r--r--options/options.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index 7a23e0c9c2..4e63332444 100644
--- a/options/options.c
+++ b/options/options.c
@@ -185,6 +185,8 @@ const m_option_t mp_opts[] = {
{"http", 3})),
OPT_FLAG("tls-verify", network_tls_verify, 0),
OPT_STRING("tls-ca-file", network_tls_ca_file, M_OPT_FILE),
+ OPT_STRING("tls-cert-file", network_tls_cert_file, M_OPT_FILE),
+ OPT_STRING("tls-key-file", network_tls_key_file, M_OPT_FILE),
OPT_DOUBLE("network-timeout", network_timeout, M_OPT_MIN, .min = 0),
// ------------------------- demuxer options --------------------