diff --git a/CHANGELOG b/CHANGELOG index f39e8981..2a061503 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -17,6 +17,7 @@ - Adjust configure for OpenBSD - Use UUIDs instead of counter for messages - Support basic ad-hoc commands(xep-0050) (/command) +- Add option to trust server's certificate (/connect, /account) - Bug fixes: https://github.com/boothj5/profanity/milestone/16?closed=1 0.5.1 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"); diff --git a/src/command/cmd_defs.c b/src/command/cmd_defs.c index 04a2fe35..0e4b5654 100644 --- a/src/command/cmd_defs.c +++ b/src/command/cmd_defs.c @@ -158,7 +158,7 @@ static struct cmd_t command_defs[] = CMD_TAG_CONNECTION) CMD_SYN( "/connect []", - "/connect [server ] [port ] [tls force|allow|legacy|disable]") + "/connect [server ] [port ] [tls force|allow|trust|legacy|disable]") CMD_DESC( "Login to a chat service. " "If no account is specified, the default is used if one is configured. " @@ -169,6 +169,7 @@ static struct cmd_t command_defs[] = { "port ", "The port to use if different to the default (5222, or 5223 for SSL)." }, { "tls force", "Force TLS connection, and fail if one cannot be established, this is default behaviour." }, { "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." }) CMD_EXAMPLES( @@ -2014,7 +2015,7 @@ static struct cmd_t command_defs[] = "/account set otr ", "/account set pgpkeyid ", "/account set startscript