aboutsummaryrefslogtreecommitdiff
path: root/src/common/crypto.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-02-23 23:38:43 -0500
committerNick Mathewson <nickm@torproject.org>2013-02-23 23:38:43 -0500
commita4e9d672924f027c3e66220a8f70427d42154fe2 (patch)
tree6ce56ec6484d614723ba71114cd9b9545de61a2b /src/common/crypto.c
parent5bfa373eeeb2d76879fe8b0ea130724176f54e81 (diff)
downloadtor-a4e9d672924f027c3e66220a8f70427d42154fe2.tar
tor-a4e9d672924f027c3e66220a8f70427d42154fe2.tar.gz
Remove some functions which were unused except for their tests
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 84688aee4..cfa11cbaa 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>.