diff options
author | Dmitry Podgorny <pasis.ua@gmail.com> | 2018-11-06 14:01:27 +0200 |
---|---|---|
committer | Dmitry Podgorny <pasis.ua@gmail.com> | 2018-11-06 14:09:02 +0200 |
commit | 7f65aaa9a2ba1e7d9fe182cc18938fa39462e095 (patch) | |
tree | 7de15c627bd8d52ac34e38da1a23b2aa9216550e /src/command/cmd_ac.c | |
parent | 671849c71152e7cc9272480ecab6d35f92e199ed (diff) | |
download | profani-tty-7f65aaa9a2ba1e7d9fe182cc18938fa39462e095.tar.gz |
Add option to trust server's certificate
New tls policy "trust" added to /connect and /account. With the policy TLS connection is established even with invalid certificate. Note, that trust policy forces TLS connection and it fails when server doesn't support TLS. Examples: /connect <jid> tls trust /account <name> set tls trust
Diffstat (limited to 'src/command/cmd_ac.c')
-rw-r--r-- | src/command/cmd_ac.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/command/cmd_ac.c b/src/command/cmd_ac.c index 7a340e7f..0e19fd5b 100644 --- a/src/command/cmd_ac.c +++ b/src/command/cmd_ac.c @@ -582,6 +582,7 @@ cmd_ac_init(void) tls_property_ac = autocomplete_new(); autocomplete_add(tls_property_ac, "force"); autocomplete_add(tls_property_ac, "allow"); + autocomplete_add(tls_property_ac, "trust"); autocomplete_add(tls_property_ac, "legacy"); autocomplete_add(tls_property_ac, "disable"); |