Use observed instead of declared uptime for HSDir
commitf7a3cdc8f27c2306cf06d742af63846c82ebdc56
authorSebastian Hahn <sebastian@torproject.org>
Wed, 9 Mar 2011 10:34:04 +0000 (9 11:34 +0100)
committerSebastian Hahn <sebastian@torproject.org>
Fri, 11 Mar 2011 17:44:35 +0000 (11 18:44 +0100)
tree7b276a43f4ea8ce0baf8e111523125333fd71e6f
parent48c4d532814ae4fdbf07635e57911bdf0e962b75
Use observed instead of declared uptime for HSDir

It is important to verify the uptime claim of a relay instead of just
trusting it, otherwise it becomes too easy to blackhole a specific
hidden service. rephist already has data available that we can use here.

Bugfix on 0.2.0.10-alpha.
changes/hsdir_assignment [new file with mode: 0644]
src/or/dirserv.c
src/or/rephist.c
src/or/rephist.h