diff options
author | James Booth <boothj5@gmail.com> | 2015-11-22 19:53:41 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-11-22 19:53:41 +0000 |
commit | bf1e7efe230c899535ea2dedae8255c0a09b6cc3 (patch) | |
tree | c73dde9f235226da0dcf6ef56017381dbece628b /src/command/command.c | |
parent | 216493ef07662e8f53f7c0de2391a43ef9bd3a8a (diff) | |
download | profani-tty-bf1e7efe230c899535ea2dedae8255c0a09b6cc3.tar.gz |
Show summary of trusted certificates, add /tls cert <fingerprint>
fixes #676
Diffstat (limited to 'src/command/command.c')
-rw-r--r-- | src/command/command.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/command/command.c b/src/command/command.c index 972b849f..bc2ee121 100644 --- a/src/command/command.c +++ b/src/command/command.c @@ -206,7 +206,7 @@ static struct cmd_t command_defs[] = "/tls allow", "/tls always", "/tls deny", - "/tls cert", + "/tls cert [<fingerprint>]", "/tls trust", "/tls trusted", "/tls revoke <fingerprint>", @@ -221,8 +221,9 @@ static struct cmd_t command_defs[] = { "always", "Always allow connections with TLS certificate." }, { "deny", "Abort connection." }, { "cert", "Show the current TLS certificate." }, + { "cert <fingerprint>", "Show details of trusted certificate." }, { "trust", "Add the current TLS certificate to manually trusted certiciates." }, - { "trusted", "List manually trusted certificates (with '/tls always' or '/tls trust')." }, + { "trusted", "List summary of manually trusted certificates (with '/tls always' or '/tls trust')." }, { "revoke <fingerprint>", "Remove a manually trusted certificate." }, { "certpath", "Show the trusted certificate path." }, { "certpath set <path>", "Specify filesystem path containing trusted certificates." }, @@ -3877,6 +3878,11 @@ _tls_autocomplete(ProfWin *window, const char *const input) return result; } + result = autocomplete_param_with_func(input, "/tls cert", tlscerts_complete); + if (result) { + return result; + } + result = autocomplete_param_with_ac(input, "/tls certpath", tls_certpath_ac, TRUE); if (result) { return result; |