diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-03-01 22:01:26 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-03-01 22:01:26 -0500 |
commit | 55ce9bff549c4709ec14486633a4a024a288b59a (patch) | |
tree | 6a897b49445ffd9e9d8745724104f65e3547a20b /src/common/crypto.c | |
parent | a05dc378e391b868a694914bd763d057930f076a (diff) | |
download | tor-55ce9bff549c4709ec14486633a4a024a288b59a.tar.gz tor-55ce9bff549c4709ec14486633a4a024a288b59a.zip |
Remove unused check_fingerprint_syntax
Diffstat (limited to 'src/common/crypto.c')
-rw-r--r-- | src/common/crypto.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c index 8d374004ce..2f9f3ad7d7 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>. |