diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-05-24 17:13:00 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-05-24 17:13:00 +0000 |
commit | 3980ebd6a16cfa05084a44739eae9d8691976308 (patch) | |
tree | 652c462ac68b138dfebb49b49db13ab33e0c2bc7 /src | |
parent | d3d86b17a761011f62dc2e06c04c0af8f1a75ef6 (diff) | |
download | tor-3980ebd6a16cfa05084a44739eae9d8691976308.tar.gz tor-3980ebd6a16cfa05084a44739eae9d8691976308.zip |
r12917@catbus: nickm | 2007-05-24 12:48:47 -0400
Put the hash-as-signed, not the raw hash, in the signed_descriptor_digest field of our own descriptor. Backport candidate; probably harmless though.
svn:r10305
Diffstat (limited to 'src')
-rw-r--r-- | src/or/router.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/or/router.c b/src/or/router.c index 7b299958e0..0b63eee608 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -1149,10 +1149,9 @@ router_rebuild_descriptor(int force) } ri->cache_info.signed_descriptor_len = strlen(ri->cache_info.signed_descriptor_body); - /* XXXX020 router_get_router_hash??? */ - crypto_digest(ri->cache_info.signed_descriptor_digest, - ri->cache_info.signed_descriptor_body, - ri->cache_info.signed_descriptor_len); + + router_get_router_hash(ri->cache_info.signed_descriptor_body, + ri->cache_info.signed_descriptor_digest); tor_assert(! routerinfo_incompatible_with_extrainfo(ri, ei, NULL)); |