| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
| |
Implement a FallbackNetworkstatusFile (default to $prefix/share/tor/fallback-consensus) to that we know about lots of directory servers and routers when we start up the first time.
svn:r12259
|
|
|
|
|
|
|
| |
Implement if-modified-since for consensus networkstatuses so that we do not download duplicates needlessly.
svn:r12258
|
|
|
|
| |
svn:r12257
|
|
|
|
|
|
|
| |
Whitespace fix.
svn:r12256
|
|
|
|
|
|
|
| |
Tidy v2 hidden service descriptor format code: fix memory leaks, fix reference problems, note magic numbers, note questions, remove redundant checks, remove a possible stack smashing bug when encoding a descriptor with no protocols supported.
svn:r12255
|
|
|
|
|
|
|
| |
Patch from Karsten Loesing: encode and parse v2 rendezvous descriptors.
svn:r12254
|
|
|
|
|
|
|
| |
Clean up a couple of comments from r12244.
svn:r12253
|
|
|
|
|
|
|
|
|
|
|
|
| |
edge_connection_t: want_onehop if it must attach to a circuit with
only one hop (e.g. for the current tunnelled connections that use
begin_dir), and use_begindir if we mean to use a BEGIN_DIR relay
command to establish the stream rather than the normal BEGIN. Now
we can make anonymized begin_dir connections for (e.g.) more secure
hidden service posting and fetching.
svn:r12244
|
|
|
|
|
|
|
|
|
| |
Stop servers from crashing if they set a Family option (or
maybe in other situations too). Bugfix on 0.2.0.9-alpha; reported
by Fabian Keil.
svn:r12235
|
|
|
|
|
|
|
| |
file. we can live without it.
svn:r12221
|
|
|
|
|
|
|
| |
base "Guard" flag on WFU rather than MTBF. Note an issue in the TODO. Roger: thoughts?
svn:r12219
|
|
|
|
|
|
|
| |
Keep circuitless TLS connections open for 1.5 x MaxCircuitDirtiness: this ensures that we don't thrash closing and repoening connections to our guards.
svn:r12218
|
|
|
|
|
|
|
| |
Better log on vote from unknown authority. Make get_by_v3_authority_id retrun only v3 authorities.
svn:r12203
|
|
|
|
| |
svn:r12196
|
|
|
|
| |
svn:r12193
|
|
|
|
|
|
|
| |
Free v2_network_status_map on exit.
svn:r12189
|
|
|
|
|
|
|
| |
Fix more memory leaks, with help from dmalloc.
svn:r12188
|
|
|
|
|
|
|
| |
do not set authority cert bodies twice: fixes memory leak bug 536.
svn:r12187
|
|
|
|
|
|
|
| |
on 0.2.0.1-alpha.
svn:r12185
|
|
|
|
|
|
|
| |
on 0.2.0.x.
svn:r12182
|
|
|
|
|
|
|
| |
Fix null-pointer dereference in set_current_consensus.
svn:r12174
|
|
|
|
| |
svn:r12172
|
|
|
|
|
|
|
| |
We want to extend the valid_until for "reasonably live", not the valid_after time
svn:r12169
|
|
|
|
|
|
|
| |
Tolerate a slightly dead consensus when deciding whether to download descriptors and build circuits.
svn:r12167
|
|
|
|
|
|
|
| |
Fix logic for downloading consensuses: make getting an duplicate or not-currently-valid consensus count as a failure. Make running out of time to get certificates count as a failure. Delay while fetching certificates.
svn:r12159
|
|
|
|
|
|
|
| |
Allow multiple download schedules to exist. At the moment, we use one for consensus, and the other one for everything else.
svn:r12158
|
|
|
|
|
|
|
| |
Refactor the arguments for router_pick_{directory_|trusteddir}server[_impl] so that they all take the same flags, and so that their flags have names. Fix their documentation too.
svn:r12157
|
|
|
|
|
|
|
| |
Detect mmap failures from empty descriptor files, and only warn if the file was not supposed to be empty. Fixes bug 533
svn:r12154
|
|
|
|
|
|
|
|
| |
it" errors to Tor servers that aren't online all the time. We're
supposed to tolerate these servers now.
svn:r12136
|
|
|
|
|
|
|
|
| |
ports are reachable" if we haven't been able to build any circuits
yet. Bug found by spending four hours without a v3 consensus.
svn:r12133
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
minutes, but writing the "valid-after" line in our vote based
on our configured V3AuthVotingInterval: so unless the intervals
matched up, we immediately rejected our own vote because it didn't
start at the voting interval that caused us to construct a vote.
This caused log entries like:
Oct 23 01:16:16.303 [notice] Choosing expected valid-after time
as 2007-10-23 05:30:00: consensus_set=0, interval=1800
...
Oct 23 01:20:01.203 [notice] Choosing valid-after time in vote as
2007-10-23 06:00:00: consensus_set=0, interval=3600
Oct 23 01:20:01.290 [warn] Rejecting vote with valid-after time of
2007-10-23 06:00:00; we were expecting 2007-10-23 05:30:00
Oct 23 01:20:01.291 [warn] Couldn't store my own vote! (I told
myself, 'Bad valid-after time'.)
Nick, you should look at this, as it's your design. :)
svn:r12129
|
|
|
|
|
|
|
| |
What the heck is wrong with me that I can not type un?
svn:r12128
|
|
|
|
|
|
|
| |
Make authorities start accepting (and advertising their acceptance of) consensus method 2. If all goes well, we'll have a working Unnamed flag. Otherwise, we'll have a fun backtrace.
svn:r12113
|
|
|
|
|
|
|
| |
fix a dumb bug in r12102.
svn:r12111
|
|
|
|
|
|
|
| |
fix trunk compile
svn:r12110
|
|
|
|
|
|
|
| |
Resolve some XXX020s in networkstatus.c
svn:r12109
|
|
|
|
|
|
|
| |
Oops; fix a typo that would have messed with the Unnamed implementation.
svn:r12108
|
|
|
|
|
|
|
| |
Move functions into and out of dirvote.c so that it contains all the v3 authority functionality, and no non-authority functionality.
svn:r12107
|
|
|
|
|
|
|
| |
Reattempt certificate downloads immediately on failure, as appropriate.
svn:r12106
|
|
|
|
|
|
|
| |
fix compile
svn:r12105
|
|
|
|
|
|
|
| |
Move an XXX020 to the logical place.
svn:r12104
|
|
|
|
|
|
|
| |
Download some XXXX020s in dirvote.c and mark some functions that may not belong there.
svn:r12103
|
|
|
|
|
|
|
| |
When our directory status or our v3 authority status changes, reschedule operations as appropriate. (Fixes some xxxx020 items)
svn:r12102
|
|
|
|
|
|
|
| |
Remove an unused and unneeded layer of abstraction: we only have one store for routers. (I had thought we might need a second one for annotated routers, but that's silly.
svn:r12101
|
|
|
|
|
|
|
| |
Fix a unit test in test_crypto_base32_decode that would fail one time in 32.
svn:r12087
|
|
|
|
|
|
|
| |
More fixes for bad behavior when downloading extrainfos: do not download an ei if we lack the key to verify it, and do not download it if we already got it and found (weirdly) that it didn't match the corresponding server descriptor.
svn:r12071
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Respond to INT and TERM SIGNAL commands before we execute the
signal, in case the signal shuts us down. We had a patch in
0.1.2.1-alpha that tried to do this by queueing the response on
the connection's buffer before shutting down, but that really
isn't the same thing. Bug located by Matt Edman.
This is a bug in 0.1.2.x too, but there's no way we should backport
this fix. Speaking of which, can somebody double-check it? :)
svn:r12070
|
|
|
|
|
|
|
| |
Fix a nasty bug in DownloadExtraInfo implementation where we would discard, download, discard, download ad infinitum.
svn:r12069
|
|
|
|
|
|
|
| |
Prioritize fetching descriptors and networkstatus docs over fetching more extrainfo docs.
svn:r12067
|
|
|
|
|
|
|
| |
When we decode to use consensus method 2 or later, compute Unnamed and Named more or less as described in 122. Don't actually use consensus method 2 yet, so we can be sure we didn't screw up v1..
svn:r12055
|