mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
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
This commit is contained in:
parent
d3d86b17a7
commit
3980ebd6a1
@ -1149,10 +1149,9 @@ router_rebuild_descriptor(int force)
|
|||||||
}
|
}
|
||||||
ri->cache_info.signed_descriptor_len =
|
ri->cache_info.signed_descriptor_len =
|
||||||
strlen(ri->cache_info.signed_descriptor_body);
|
strlen(ri->cache_info.signed_descriptor_body);
|
||||||
/* XXXX020 router_get_router_hash??? */
|
|
||||||
crypto_digest(ri->cache_info.signed_descriptor_digest,
|
router_get_router_hash(ri->cache_info.signed_descriptor_body,
|
||||||
ri->cache_info.signed_descriptor_body,
|
ri->cache_info.signed_descriptor_digest);
|
||||||
ri->cache_info.signed_descriptor_len);
|
|
||||||
|
|
||||||
tor_assert(! routerinfo_incompatible_with_extrainfo(ri, ei, NULL));
|
tor_assert(! routerinfo_incompatible_with_extrainfo(ri, ei, NULL));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user