summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-server.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/irc/irc-server.c')
-rw-r--r--src/plugins/irc/irc-server.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/plugins/irc/irc-server.c b/src/plugins/irc/irc-server.c
index 5f468d0eb..1d0c50e90 100644
--- a/src/plugins/irc/irc-server.c
+++ b/src/plugins/irc/irc-server.c
@@ -404,6 +404,28 @@ irc_server_eval_expression (struct t_irc_server *server, const char *string)
}
/*
+ * Searches for a fingerprint digest algorithm with the size (in bits).
+ *
+ * Returns index of algo in enum t_irc_fingerprint_digest_algo,
+ * -1 if not found.
+ */
+
+int
+irc_server_fingerprint_search_algo_with_size (int size)
+{
+ int i;
+
+ for (i = 0; i < IRC_FINGERPRINT_NUM_ALGOS; i++)
+ {
+ if (irc_fingerprint_digest_algos_size[i] == size)
+ return i;
+ }
+
+ /* digest algorithm not found */
+ return -1;
+}
+
+/*
* Evaluates and returns the fingerprint.
*
* Returns the evaluated fingerprint, NULL if the fingerprint option is
@@ -4774,28 +4796,6 @@ irc_server_create_buffer (struct t_irc_server *server)
}
/*
- * Searches for a fingerprint digest algorithm with the size (in bits).
- *
- * Returns index of algo in enum t_irc_fingerprint_digest_algo,
- * -1 if not found.
- */
-
-int
-irc_server_fingerprint_search_algo_with_size (int size)
-{
- int i;
-
- for (i = 0; i < IRC_FINGERPRINT_NUM_ALGOS; i++)
- {
- if (irc_fingerprint_digest_algos_size[i] == size)
- return i;
- }
-
- /* digest algorithm not found */
- return -1;
-}
-
-/*
* Returns a string with sizes of allowed fingerprint,
* in number of hexadecimal digits (== bits / 4).
*