diff options
author | Dmitry Podgorny <pasis.ua@gmail.com> | 2020-02-27 01:22:05 +0200 |
---|---|---|
committer | Dmitry Podgorny <pasis.ua@gmail.com> | 2020-06-05 11:37:51 +0300 |
commit | ac410445af65b9d332d4606a08ff549672042766 (patch) | |
tree | 0a898a43ee4a5c704fe496d004efa7e57b0cb735 /src/command/cmd_defs.c | |
parent | 8c9aee22e81804bda6590ba80e9450ca90f56d14 (diff) | |
download | profani-tty-ac410445af65b9d332d4606a08ff549672042766.tar.gz |
Add option for legacy authentication
New options: /connect <account> [auth default|legacy] /account <account> set auth default|legacy Fixes #1236.
Diffstat (limited to 'src/command/cmd_defs.c')
-rw-r--r-- | src/command/cmd_defs.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/command/cmd_defs.c b/src/command/cmd_defs.c index 70331542..85140430 100644 --- a/src/command/cmd_defs.c +++ b/src/command/cmd_defs.c @@ -160,7 +160,7 @@ static struct cmd_t command_defs[] = CMD_TAG_CONNECTION) CMD_SYN( "/connect [<account>]", - "/connect <account> [server <server>] [port <port>] [tls force|allow|trust|legacy|disable]") + "/connect <account> [server <server>] [port <port>] [tls force|allow|trust|legacy|disable] [auth default|legacy]") CMD_DESC( "Login to a chat service. " "If no account is specified, the default is used if one is configured. " @@ -173,7 +173,9 @@ static struct cmd_t command_defs[] = { "tls allow", "Use TLS for the connection if it is available." }, { "tls trust", "Force TLS connection and trust server's certificate." }, { "tls legacy", "Use legacy TLS for the connection. It means server doesn't support STARTTLS and TLS is forced just after TCP connection is established." }, - { "tls disable", "Disable TLS for the connection." }) + { "tls disable", "Disable TLS for the connection." }, + { "auth default", "Default authentication process." }, + { "auth legacy", "Allow legacy authentication." }) CMD_EXAMPLES( "/connect", "/connect odin@valhalla.edda", @@ -2003,6 +2005,7 @@ static struct cmd_t command_defs[] = "/account set <account> pgpkeyid <pgpkeyid>", "/account set <account> startscript <script>", "/account set <account> tls force|allow|trust|legacy|disable", + "/account set <account> auth default|legacy", "/account set <account> theme <theme>", "/account clear <account> password", "/account clear <account> eval_password", @@ -2045,6 +2048,8 @@ static struct cmd_t command_defs[] = { "set <account> tls trust", "Force TLS connection and trust server's certificate." }, { "set <account> tls legacy", "Use legacy TLS for the connection. It means server doesn't support STARTTLS and TLS is forced just after TCP connection is established." }, { "set <account> tls disable", "Disable TLS for the connection." }, + { "set <account> auth default", "Use default authentication process." }, + { "set <account> auth legacy", "Allow legacy authentication." }, { "set <account> <theme>", "Set the UI theme for the account." }, { "clear <account> server", "Remove the server setting for this account." }, { "clear <account> port", "Remove the port setting for this account." }, |