aboutsummaryrefslogtreecommitdiff
path: root/src/common/crypto.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-03-01 22:01:26 -0500
committerNick Mathewson <nickm@torproject.org>2013-03-01 22:01:26 -0500
commit55ce9bff549c4709ec14486633a4a024a288b59a (patch)
tree6a897b49445ffd9e9d8745724104f65e3547a20b /src/common/crypto.c
parenta05dc378e391b868a694914bd763d057930f076a (diff)
downloadtor-55ce9bff549c4709ec14486633a4a024a288b59a.tar
tor-55ce9bff549c4709ec14486633a4a024a288b59a.tar.gz
Remove unused check_fingerprint_syntax
Diffstat (limited to 'src/common/crypto.c')
-rw-r--r--src/common/crypto.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c
index 8d374004c..2f9f3ad7d 100644
--- a/src/common/crypto.c
+++ b/src/common/crypto.c
@@ -1294,23 +1294,6 @@ crypto_pk_get_fingerprint(crypto_pk_t *pk, char *fp_out, int add_space)
return 0;
}
-/** Return true iff <b>s</b> is in the correct format for a fingerprint.
- */
-int
-crypto_pk_check_fingerprint_syntax(const char *s)
-{
- int i;
- for (i = 0; i < FINGERPRINT_LEN; ++i) {
- if ((i%5) == 4) {
- if (!TOR_ISSPACE(s[i])) return 0;
- } else {
- if (!TOR_ISXDIGIT(s[i])) return 0;
- }
- }
- if (s[FINGERPRINT_LEN]) return 0;
- return 1;
-}
-
/* symmetric crypto */
/** Return a pointer to the key set for the cipher in <b>env</b>.