aboutsummaryrefslogtreecommitdiff
path: root/src/common/crypto.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2003-09-26 20:41:23 +0000
committerNick Mathewson <nickm@torproject.org>2003-09-26 20:41:23 +0000
commitfebb2251cac30594cf81965bd38714a1abfd8d76 (patch)
tree6e8c8286db8241bb26b71d125b5a45a4bde50c8c /src/common/crypto.h
parenta3e08a01192831f8f686c9a03b394dff4031b10f (diff)
downloadtor-febb2251cac30594cf81965bd38714a1abfd8d76.tar
tor-febb2251cac30594cf81965bd38714a1abfd8d76.tar.gz
Add code to parse fingerprint files and compare routers against fingerprint files.
svn:r490
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r--src/common/crypto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h
index 79e244776..06269abab 100644
--- a/src/common/crypto.h
+++ b/src/common/crypto.h
@@ -56,6 +56,7 @@ int crypto_pk_private_sign(crypto_pk_env_t *env, unsigned char *from, int fromle
int crypto_pk_public_checksig(crypto_pk_env_t *env, unsigned char *from, int fromlen, unsigned char *to);
#define FINGERPRINT_LEN 49
int crypto_pk_get_fingerprint(crypto_pk_env_t *pk, char *fp_out);
+int crypto_pk_check_fingerprint_syntax(const char *s);
int base64_encode(char *dest, int destlen, char *src, int srclen);
int base64_decode(char *dest, int destlen, char *src, int srclen);