aboutsummaryrefslogtreecommitdiff
path: root/src/or
Commit message (Collapse)AuthorAge
* r16246@catbus: nickm | 2007-10-28 19:34:58 -0400Nick Mathewson2007-10-28
| | | | | | | 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
* r16242@catbus: nickm | 2007-10-28 16:28:13 -0400Nick Mathewson2007-10-28
| | | | | | | Implement if-modified-since for consensus networkstatuses so that we do not download duplicates needlessly. svn:r12258
* Downgrade the mismatched fpr warning to infoPeter Palfrader2007-10-28
| | | | svn:r12257
* r16238@catbus: nickm | 2007-10-28 15:46:10 -0400Nick Mathewson2007-10-28
| | | | | | | Whitespace fix. svn:r12256
* r16237@catbus: nickm | 2007-10-28 15:45:25 -0400Nick Mathewson2007-10-28
| | | | | | | 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
* r16236@catbus: nickm | 2007-10-28 14:36:30 -0400Nick Mathewson2007-10-28
| | | | | | | Patch from Karsten Loesing: encode and parse v2 rendezvous descriptors. svn:r12254
* r16234@catbus: nickm | 2007-10-28 14:27:22 -0400Nick Mathewson2007-10-28
| | | | | | | Clean up a couple of comments from r12244. svn:r12253
* Separate "SOCKS_COMMAND_CONNECT_DIR" into two flags inRoger Dingledine2007-10-28
| | | | | | | | | | | | 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
* we need to send nick to the chalkboard to type 'un' 1000 times:Roger Dingledine2007-10-27
| | | | | | | | | 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
* don't warn so loudly when we couldn't load the unverified-consensusRoger Dingledine2007-10-27
| | | | | | | file. we can live without it. svn:r12221
* r16195@catbus: nickm | 2007-10-26 18:48:52 -0400Nick Mathewson2007-10-26
| | | | | | | base "Guard" flag on WFU rather than MTBF. Note an issue in the TODO. Roger: thoughts? svn:r12219
* r16194@catbus: nickm | 2007-10-26 18:37:02 -0400Nick Mathewson2007-10-26
| | | | | | | 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
* r16174@catbus: nickm | 2007-10-26 10:55:26 -0400Nick Mathewson2007-10-26
| | | | | | | Better log on vote from unknown authority. Make get_by_v3_authority_id retrun only v3 authorities. svn:r12203
* the other half of the question for nickRoger Dingledine2007-10-26
| | | | svn:r12196
* ask nick about a possible bugRoger Dingledine2007-10-25
| | | | svn:r12193
* r16157@catbus: nickm | 2007-10-25 10:36:34 -0400Nick Mathewson2007-10-25
| | | | | | | Free v2_network_status_map on exit. svn:r12189
* r16154@catbus: nickm | 2007-10-25 10:29:47 -0400Nick Mathewson2007-10-25
| | | | | | | Fix more memory leaks, with help from dmalloc. svn:r12188
* r16153@catbus: nickm | 2007-10-25 10:21:42 -0400Nick Mathewson2007-10-25
| | | | | | | do not set authority cert bodies twice: fixes memory leak bug 536. svn:r12187
* Stop leaking memory every time we parse a v3 certificate. BugfixRoger Dingledine2007-10-25
| | | | | | | on 0.2.0.1-alpha. svn:r12185
* Refuse to start if both ORPort and UseBridges are set. BugfixRoger Dingledine2007-10-25
| | | | | | | on 0.2.0.x. svn:r12182
* r16130@catbus: nickm | 2007-10-24 23:28:00 -0400Nick Mathewson2007-10-25
| | | | | | | Fix null-pointer dereference in set_current_consensus. svn:r12174
* more cleanupsRoger Dingledine2007-10-25
| | | | svn:r12172
* r16124@catbus: nickm | 2007-10-24 22:11:09 -0400Nick Mathewson2007-10-25
| | | | | | | We want to extend the valid_until for "reasonably live", not the valid_after time svn:r12169
* r16115@catbus: nickm | 2007-10-24 21:52:33 -0400Nick Mathewson2007-10-25
| | | | | | | Tolerate a slightly dead consensus when deciding whether to download descriptors and build circuits. svn:r12167
* r16112@catbus: nickm | 2007-10-24 15:52:03 -0400Nick Mathewson2007-10-24
| | | | | | | 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
* r16111@catbus: nickm | 2007-10-24 15:03:57 -0400Nick Mathewson2007-10-24
| | | | | | | Allow multiple download schedules to exist. At the moment, we use one for consensus, and the other one for everything else. svn:r12158
* r16108@catbus: nickm | 2007-10-24 14:41:12 -0400Nick Mathewson2007-10-24
| | | | | | | 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
* r16101@catbus: nickm | 2007-10-24 11:44:40 -0400Nick Mathewson2007-10-24
| | | | | | | Detect mmap failures from empty descriptor files, and only warn if the file was not supposed to be empty. Fixes bug 533 svn:r12154
* Authorities no longer send back "400 you're unreachable please fixRoger Dingledine2007-10-24
| | | | | | | | it" errors to Tor servers that aren't online all the time. We're supposed to tolerate these servers now. svn:r12136
* Don't complain that "your server has not managed to confirm that itsRoger Dingledine2007-10-23
| | | | | | | | 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
* When there's no concensus, we were forming a vote every 30Roger Dingledine2007-10-23
| | | | | | | | | | | | | | | | | | | | | | | | 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
* r16057@catbus: nickm | 2007-10-23 00:08:31 -0400Nick Mathewson2007-10-23
| | | | | | | What the heck is wrong with me that I can not type un? svn:r12128
* r16054@catbus: nickm | 2007-10-22 20:22:13 -0400Nick Mathewson2007-10-23
| | | | | | | 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
* r16051@catbus: nickm | 2007-10-22 18:53:53 -0400Nick Mathewson2007-10-22
| | | | | | | fix a dumb bug in r12102. svn:r12111
* r16049@catbus: nickm | 2007-10-22 15:31:16 -0400Nick Mathewson2007-10-22
| | | | | | | fix trunk compile svn:r12110
* r16047@catbus: nickm | 2007-10-22 14:00:46 -0400Nick Mathewson2007-10-22
| | | | | | | Resolve some XXX020s in networkstatus.c svn:r12109
* r16045@catbus: nickm | 2007-10-22 13:35:02 -0400Nick Mathewson2007-10-22
| | | | | | | Oops; fix a typo that would have messed with the Unnamed implementation. svn:r12108
* r16042@catbus: nickm | 2007-10-22 13:30:49 -0400Nick Mathewson2007-10-22
| | | | | | | Move functions into and out of dirvote.c so that it contains all the v3 authority functionality, and no non-authority functionality. svn:r12107
* r16041@catbus: nickm | 2007-10-22 13:02:14 -0400Nick Mathewson2007-10-22
| | | | | | | Reattempt certificate downloads immediately on failure, as appropriate. svn:r12106
* r16035@catbus: nickm | 2007-10-22 12:31:22 -0400Nick Mathewson2007-10-22
| | | | | | | fix compile svn:r12105
* r16034@catbus: nickm | 2007-10-22 12:30:38 -0400Nick Mathewson2007-10-22
| | | | | | | Move an XXX020 to the logical place. svn:r12104
* r16033@catbus: nickm | 2007-10-22 12:26:13 -0400Nick Mathewson2007-10-22
| | | | | | | Download some XXXX020s in dirvote.c and mark some functions that may not belong there. svn:r12103
* r16032@catbus: nickm | 2007-10-22 11:56:53 -0400Nick Mathewson2007-10-22
| | | | | | | When our directory status or our v3 authority status changes, reschedule operations as appropriate. (Fixes some xxxx020 items) svn:r12102
* r16031@catbus: nickm | 2007-10-22 11:45:00 -0400Nick Mathewson2007-10-22
| | | | | | | 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
* r16014@catbus: nickm | 2007-10-21 20:29:14 -0400Nick Mathewson2007-10-22
| | | | | | | Fix a unit test in test_crypto_base32_decode that would fail one time in 32. svn:r12087
* r15995@catbus: nickm | 2007-10-21 00:40:46 -0400Nick Mathewson2007-10-21
| | | | | | | 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
* Bugfix on r7072, which turned out to basically be a no-op:Roger Dingledine2007-10-21
| | | | | | | | | | | | | | 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
* r15991@catbus: nickm | 2007-10-20 20:08:29 -0400Nick Mathewson2007-10-21
| | | | | | | Fix a nasty bug in DownloadExtraInfo implementation where we would discard, download, discard, download ad infinitum. svn:r12069
* r15976@catbus: nickm | 2007-10-20 19:44:47 -0400Nick Mathewson2007-10-20
| | | | | | | Prioritize fetching descriptors and networkstatus docs over fetching more extrainfo docs. svn:r12067
* r15974@catbus: nickm | 2007-10-19 16:47:27 -0400Nick Mathewson2007-10-19
| | | | | | | 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