summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2017-06-10 15:01:58 +0200
committerSébastien Helleu <flashcode@flashtux.org>2017-06-10 15:01:58 +0200
commitad9c75f234c6ce61f3134ea2234e54d46df9df52 (patch)
treead502790cc0cee4ed20a0316eb3351b6dca2f31e
parent3af24d9739bb9f73337107f5b72b494efc4249e3 (diff)
downloadweechat-ad9c75f234c6ce61f3134ea2234e54d46df9df52.zip
core: remove unused functions secure_search_hash_algo and secure_search_cipher (issue #1012)
-rw-r--r--src/core/wee-secure.c50
1 files changed, 0 insertions, 50 deletions
diff --git a/src/core/wee-secure.c b/src/core/wee-secure.c
index 647cb2e90..51b1de262 100644
--- a/src/core/wee-secure.c
+++ b/src/core/wee-secure.c
@@ -80,56 +80,6 @@ int secure_buffer_display_values = 0;
/*
- * Searches for a hash algorithm.
- *
- * Returns hash algorithm value (from gcrypt constant), -1 if hash algorithm is
- * not found.
- */
-
-int
-secure_search_hash_algo (const char *hash_algo)
-{
- int i;
-
- if (!hash_algo)
- return -1;
-
- for (i = 0; secure_hash_algo_string[i]; i++)
- {
- if (strcmp (secure_hash_algo_string[i], hash_algo) == 0)
- return secure_hash_algo[i];
- }
-
- /* hash algorithm not found */
- return -1;
-}
-
-/*
- * Searches for a cipher.
- *
- * Returns cipher value (from gcrypt constant), -1 if cipher is not
- * found.
- */
-
-int
-secure_search_cipher (const char *cipher)
-{
- int i;
-
- if (!cipher)
- return -1;
-
- for (i = 0; secure_cipher_string[i]; i++)
- {
- if (strcmp (secure_cipher_string[i], cipher) == 0)
- return secure_cipher[i];
- }
-
- /* cipher not found */
- return -1;
-}
-
-/*
* Derives a key from salt + passphrase (using a hash).
*
* Returns: