diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-02-23 23:38:43 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-02-23 23:38:43 -0500 |
commit | a4e9d672924f027c3e66220a8f70427d42154fe2 (patch) | |
tree | 6ce56ec6484d614723ba71114cd9b9545de61a2b /src/common/crypto.c | |
parent | 5bfa373eeeb2d76879fe8b0ea130724176f54e81 (diff) | |
download | tor-a4e9d672924f027c3e66220a8f70427d42154fe2.tar.gz tor-a4e9d672924f027c3e66220a8f70427d42154fe2.zip |
Remove some functions which were unused except for their tests
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 84688aee4c..cfa11cbaa8 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>. |