| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
| |
Add unit tests for median functions; enforce sensible ranges for intervals and delays.
svn:r11121
|
|
|
|
|
|
|
| |
Resolve a pile of XXXXs in and around voting code
svn:r11099
|
|
|
|
|
|
|
| |
Unit tests and debugging for detached signature manipulation.
svn:r11015
|
|
|
|
|
|
|
| |
More documentation
svn:r10992
|
|
|
|
|
|
|
| |
Code to implement detached signature documents.
svn:r10944
|
|
|
|
|
|
|
| |
We can have multiple authority certificates for an authority at a time: make the code reflect that.
svn:r10937
|
|
|
|
|
|
|
| |
Code to add signatures to a pending consensus directory.
svn:r10936
|
|
|
|
|
|
|
| |
Another patch from croup: drop support for address masks that do not correspond to bit prefixes. Nobody has used this for a while, and we have given warnings for a long time.
svn:r10881
|
|
|
|
|
|
|
| |
More tweaks to dir-spec.txt; not complete, but closing in.
svn:r10856
|
|
|
|
|
|
|
|
|
|
| |
We had accidentally labelled 0.1.2.x directory servers as not
suitable for begin_dir requests, and had labelled no directory
servers as suitable for uploading extra-info documents. [Bugfix
on 0.2.0.1-alpha]
svn:r10853
|
|
|
|
|
|
|
| |
Patch from croup: rewrite the logic of get_next_token() to do the right thing with input that ends at weird places, or aligns with block boundaries after mmap. should fix bug 455. Needs fuzzing.
svn:r10847
|
|
|
|
|
|
|
| |
quite related to bug 455.
svn:r10835
|
|
|
|
|
|
|
| |
Fix an assert error in 455 patch.
svn:r10788
|
|
|
|
|
|
|
| |
tweaks to last patch. from croup.
svn:r10787
|
|
|
|
|
|
|
| |
Possible partial fix for bug 455: use eos logic everywhere.
svn:r10786
|
|
|
|
|
|
|
| |
Sun CC likes to give warnings for the do { } while(0) construction for making statement-like macros. Define STMT_BEGIN/STMT_END macros that do the right thing, and use them everywhere.
svn:r10645
|
|
|
|
|
|
|
| |
Set vote_digest field prproperly in networkstatus_vote_t, so that it gets conveyed to the consensus correctly.
svn:r10590
|
|
|
|
|
|
|
| |
Unit tests and debugging for generating and parsing consensus networkstatus documents. Still need to test actual contents.
svn:r10589
|
|
|
|
|
|
|
| |
Unit tests and debugging for vote generation and parsing code.
svn:r10587
|
|
|
|
|
|
|
| |
Make all the digestmaps inside routerlist_t use the new typechecking wrappers, so we can catch any more bugs like the one fixed by 10561. This turned up a bug in routerlist_remove: we were extracting a routerinfo_t from desc_digest_map. Fix that too, though it was probably harmless, since we were only doing a pointer comparison with it.
svn:r10563
|
|
|
|
|
|
|
| |
Enfore that known_flags in networkstatus votes must be unique.
svn:r10534
|
|
|
|
|
|
|
| |
Refactor v3 vote generation code into "build a networkstatus_vote_t" and "format a networkstatus_vote_t". This should make testing possible.
svn:r10533
|
|
|
|
|
|
|
| |
Apply my sekrit "unused macro detector" script to hunt down some macros we didnt use.
svn:r10510
|
|
|
|
|
|
|
| |
Code to check signatures on consensus directories.
svn:r10492
|
|
|
|
|
|
|
| |
Adapt code to parse v3 networkstatus votes so it can also parse a consensus. Make networkstatus_vote_t the catch-all type for votes and conensuses. Correct/clarify the second argument to directory-signature.
svn:r10491
|
|
|
|
|
|
|
| |
Start of code to compute consensus network-status stuff from a bunch of votes. Strangely, it does not yet feel like an enormous ugly hack.
svn:r10489
|
|
|
|
|
|
|
| |
First cut at code to parse and validate v3 networkstatus votes.
svn:r10461
|
|
|
|
|
|
|
| |
More code for voting and vote parsing (checkpointing)
svn:r10423
|
|
|
|
|
|
|
| |
Oops; better version of previous patch that does not get caught in an infinite loop.
svn:r10391
|
|
|
|
|
|
|
| |
Stop adding bogus entries to lists in router_parse_list_from_string(). I wonder which bugs _that_ caused.
svn:r10390
|
|
|
|
| |
svn:r10359
|
|
|
|
| |
svn:r10335
|
|
|
|
|
|
|
| |
dir-signing-key should never take arguments.
svn:r10314
|
|
|
|
|
|
|
| |
First draft of code to generate votes. needs testing. does not yet upload or serve votes. Shares most of its code with the old generate_v2_networkstatus.
svn:r10295
|
|
|
|
|
|
|
| |
More v3 directory code: have authorities load certificates; have everybody store certificates to disk and load them; provide a way to configure v3 authorities.
svn:r10293
|
|
|
|
|
|
|
| |
Partial backport candidate: do not rely on finding a \0 after an mmaped() router/extrainfo file. Also, set journal length correctly when starting up.
svn:r10248
|
|
|
|
|
|
|
| |
Address points in r10227.
svn:r10229
|
|
|
|
|
|
|
| |
items we should probably look into.
svn:r10227
|
|
|
|
|
|
|
| |
Look for extrainfo bodies in the extrainfo mmap, not in the descriptor mmap. Duh. Should fix bug 429.
svn:r10226
|
|
|
|
|
|
|
| |
Fix GCC warnings related to local parameters/variables getting shadowed.
svn:r10198
|
|
|
|
|
|
|
| |
Be a lot smarter when parsing lists of routers and extrainfos.
svn:r10193
|
|
|
|
|
|
|
| |
Cleanup, lock-down, and refactor bits of routerparse.c: use a single unified function to check all signatures. Fix all DOCDOCs. Remove some old dead debugging code. Enforce some parsing rules better.
svn:r10192
|
|
|
|
|
|
|
| |
Start implementing key certificate parsing. Note TODO items for combined 101/103.
svn:r10097
|
|
|
|
|
|
|
|
|
|
|
| |
authorities should set. This will let future authorities choose
not to serve V2 directory information.
Also, go through and revamp all the authdir_mode stuff so it tries
to do the right thing if you're an auth but not a V1 or V2 auth.
svn:r10092
|
|
|
|
|
|
|
| |
Add code to upload extrainfos to authorities running 0.2.0.0-alpha-dev (r10070) or later.
svn:r10086
|
|
|
|
|
|
|
| |
More work for proposal 104: actually cache extrainfo documents to disk, and reload the cache properly.
svn:r10070
|
|
|
|
|
|
|
| |
Twiddle tor_version_as_new_as() so we can check for particular svn revisions. With unit tests, for added freshness.
svn:r9977
|
|
|
|
|
|
|
| |
More proposal-104 stuff: actually remember extra-info stuff.
svn:r9975
|
|
|
|
|
|
|
| |
Code to generate extrainfo whenever routerdesc is regenerated; code to check extrainfo against routerdesc.
svn:r9970
|
|
|
|
|
|
|
| |
Enforce checks for number of arguments to items in directory objects more uniformly.
svn:r9968
|