diff options
author | Nick Mathewson <nickm@torproject.org> | 2003-09-30 19:27:54 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2003-09-30 19:27:54 +0000 |
commit | 01786266caa4b15207f559a10a8759532f4cdf07 (patch) | |
tree | 0142e9b0f3ab45794fb3c2d665427f22dc8c815b /src/or/routers.c | |
parent | d0273ee135773fbb1e3094f2f29fb04a4ed32f94 (diff) | |
download | tor-01786266caa4b15207f559a10a8759532f4cdf07.tar tor-01786266caa4b15207f559a10a8759532f4cdf07.tar.gz |
Bugfixes in directory code:
Improve debugging output on fingerprint checking.
Make sure to add our own fingerprint to the fingerprint list _before_
adding our own descriptor, or else we'll reject ourself.
Don't call a directory invalid just because we have a newer descriptor
for some router.
Use router_get_dir_hash to generate hashes for signed directories.
Make sure we add our own descriptor successfully.
Don't fall-through on failed base64-endode.
svn:r514
Diffstat (limited to 'src/or/routers.c')
-rw-r--r-- | src/or/routers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/routers.c b/src/or/routers.c index 3367ae6ba..beec9b127 100644 --- a/src/or/routers.c +++ b/src/or/routers.c @@ -570,7 +570,7 @@ static int router_get_hash_impl(char *s, char *digest, const char *start_str, return 0; } -static int router_get_dir_hash(char *s, char *digest) +int router_get_dir_hash(char *s, char *digest) { return router_get_hash_impl(s,digest, "signed-directory","directory-signature"); |