aboutsummaryrefslogtreecommitdiffstats
path: root/root_commands.c
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2015-11-08 08:58:37 +0100
committerMarius Halden <marius.h@lden.org>2016-05-07 14:26:17 +0200
commitf6119b76d73b9cdff3cbfd902675a36bcacbcd48 (patch)
tree6c6f1581fd53a5b3094bfdc46838c2c893760a20 /root_commands.c
parentf0ff36f558329d096526004d4d912973bafd3904 (diff)
Start adding ssl support
Diffstat (limited to 'root_commands.c')
-rw-r--r--root_commands.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/root_commands.c b/root_commands.c
index dcf7a7ed..d731b0d9 100644
--- a/root_commands.c
+++ b/root_commands.c
@@ -1315,6 +1315,13 @@ static void cmd_nick(irc_t *irc, char **cmd)
irc_rootmsg(irc, "This command is deprecated. Try: account %s set display_name", cmd[1]);
}
+#ifdef WITH_GNUTLS
+static void cmd_certfp(irc_t *irc, char **cmd)
+{
+ irc_rootmsg(irc, "Show current/set new certfp");
+}
+#endif
+
/* Maybe this should be a stand-alone command as well? */
static void bitlbee_whatsnew(irc_t *irc)
{
@@ -1365,6 +1372,9 @@ command_t root_commands[] = {
{ "set", 0, cmd_set, 0 },
{ "transfer", 0, cmd_transfer, 0 },
{ "yes", 0, cmd_yesno, 0 },
+#ifdef WITH_GNUTLS
+ { "certfp", 1, cmd_certfp, 0 },
+#endif
/* Not expecting too many plugins adding root commands so just make a
dumb array with some empty entried at the end. */
{ NULL },