mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 15:56:21 +00:00
@@ -200,7 +200,8 @@ static struct cmd_t command_defs[] =
|
||||
"/tls revoke <fingerprint>",
|
||||
"/tls certpath",
|
||||
"/tls certpath set <path>",
|
||||
"/tls certpath clear")
|
||||
"/tls certpath clear",
|
||||
"/tls show on|off")
|
||||
CMD_DESC(
|
||||
"Handle TLS certificates. ")
|
||||
CMD_ARGS(
|
||||
@@ -211,7 +212,8 @@ static struct cmd_t command_defs[] =
|
||||
{ "revoke <fingerprint>", "Remove a manually trusted certificate." },
|
||||
{ "certpath", "Show the trusted certificate path." },
|
||||
{ "certpath set <path>", "Specify filesystem path containing trusted certificates." },
|
||||
{ "certpath clear", "Clear the trusted certificate path." })
|
||||
{ "certpath clear", "Clear the trusted certificate path." },
|
||||
{ "show on|off", "Show or hide the TLS indicator in the titlebar." })
|
||||
CMD_NOEXAMPLES
|
||||
},
|
||||
|
||||
@@ -2158,6 +2160,7 @@ cmd_init(void)
|
||||
autocomplete_add(tls_ac, "trusted");
|
||||
autocomplete_add(tls_ac, "revoke");
|
||||
autocomplete_add(tls_ac, "certpath");
|
||||
autocomplete_add(tls_ac, "show");
|
||||
|
||||
tls_certpath_ac = autocomplete_new();
|
||||
autocomplete_add(tls_certpath_ac, "set");
|
||||
@@ -3628,6 +3631,11 @@ _tls_autocomplete(ProfWin *window, const char * const input)
|
||||
return result;
|
||||
}
|
||||
|
||||
result = autocomplete_param_with_func(input, "/tls show", prefs_autocomplete_boolean_choice);
|
||||
if (result) {
|
||||
return result;
|
||||
}
|
||||
|
||||
result = autocomplete_param_with_ac(input, "/tls", tls_ac, TRUE);
|
||||
if (result) {
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user