about summary refs log tree commit diff stats
path: root/src/command/command.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-09-22 22:44:18 +0100
committerJames Booth <boothj5@gmail.com>2015-09-22 22:44:18 +0100
commitb88885aaae349503aebd944f8d91851143c7aee4 (patch)
treeabe466767829f779656cabe4cfa96634354caca5 /src/command/command.c
parent9a53854a1d196e79a031c28b7a6013ac41c58c4c (diff)
downloadprofani-tty-b88885aaae349503aebd944f8d91851143c7aee4.tar.gz
Store trusted TLS cert fingerprints
Diffstat (limited to 'src/command/command.c')
-rw-r--r--src/command/command.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/command/command.c b/src/command/command.c
index 949f21c7..c89bcb05 100644
--- a/src/command/command.c
+++ b/src/command/command.c
@@ -192,12 +192,14 @@ static struct cmd_t command_defs[] =
             CMD_TAG_CONNECTION)
         CMD_SYN(
             "/tls allow",
+            "/tls always",
             "/tls deny")
         CMD_DESC(
             "Handle TLS certificates. ")
         CMD_ARGS(
-            { "allow", "Allow connection using invalid TLS certificate." },
-            { "deny",  "Allow connection using invalid TLS certificate." })
+            { "allow",  "Allow connection to continue with an invalid TLS certificate." },
+            { "always", "Always allow connections with this invalid TLS certificate." },
+            { "deny",   "Terminate TLS connection." })
         CMD_NOEXAMPLES
     },
 
@@ -2088,6 +2090,7 @@ cmd_init(void)
 
     tls_ac = autocomplete_new();
     autocomplete_add(tls_ac, "allow");
+    autocomplete_add(tls_ac, "always");
     autocomplete_add(tls_ac, "deny");
 }