aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
Commit message (Collapse)AuthorAge
* extra points for making the function name reflect what it doesRoger Dingledine2007-06-15
| | | | svn:r10608
* Directories no longer return a "304 not modified" when they don'tRoger Dingledine2007-06-15
| | | | | | | | have the networkstatus the client asked for. Also fix a memory leak when returning 304 not modified. [Bugfixes on 0.2.0.2-alpha] svn:r10607
* Refine r10571: more work on bridge stuff.Roger Dingledine2007-06-15
| | | | | | | | | | | | | - Only listen to responses for "authority" fetches if we're configured to use Bridges. Otherwise it's safe (and maybe smarter) to silently discard them like we used to. - React faster to download networkstatuses after the first bridge descriptor arrives. - Don't do dir fetches before we have any bridges, even when our dirport is open. svn:r10604
* More work towards making bridge users able to connect via bridges:Roger Dingledine2007-06-12
| | | | | | | | | | | | | | | | | | | | | - demand options->Bridges and options->TunnelDirConns if options->UseBridges is set. - after directory fetches, accept descriptors that aren't referenced by our networkstatuses, *if* they're for a configured bridge. - delay directory fetching until we have at least one bridge descriptor. - learn how to build a one-hop circuit when we have neither routerinfo nor routerstatus for our destination. - teach directory connections how to pick a bridge as the destination directory when doing non-anonymous fetches. - tolerate directory commands for which the dir_port is 0. - remember descriptors when the requested_resource was "authority", rather than just ignoring them. - put bridges on our entry_guards list once we have a descriptor for them. When UseBridges is set, only pick entry guards that are bridges. Else vice versa. svn:r10571
* Remove an #undef, so you can -Ddefine stuff on the command linePeter Palfrader2007-06-11
| | | | svn:r10564
* more building blocks towards being able to fetch bridge descriptorsRoger Dingledine2007-06-10
| | | | svn:r10548
* Be clearer on the various roles for auth dir types.Roger Dingledine2007-06-09
| | | | | | | | Bridge authorities no longer write bridge descriptors to their cached-routers file -- this gets complex because of extrainfo documents. svn:r10545
* scrub out some more references to the misnamed 'bridge' conceptRoger Dingledine2007-06-09
| | | | svn:r10543
* r13266@catbus: nickm | 2007-06-05 16:38:08 -0400Nick Mathewson2007-06-05
| | | | | | | Patch from peter palfrader: control interface via unix domain socket svn:r10504
* r13154@catbus: nickm | 2007-06-02 11:26:44 -0400Nick Mathewson2007-06-02
| | | | | | | Server-side support for If-Modified-Since in HTTP requsts for v1 stuff, and for network-status documents. svn:r10451
* r13050@catbus: nickm | 2007-05-29 13:31:11 -0400Nick Mathewson2007-05-29
| | | | | | | Resolve all but 3 DOCDOCs. svn:r10393
* Segfault less. Somebody needs to look over why exactly this helps. re #436Peter Palfrader2007-05-28
| | | | svn:r10376
* fix a seg fault when my auth dirserver accepted a posted descriptorRoger Dingledine2007-05-27
| | | | | | | | (dirserv_add_multiple_descriptors doesn't set msg if there's no failure.) svn:r10358
* also change purpose_is_private to purpose_needs_anonymityRoger Dingledine2007-05-25
| | | | svn:r10331
* karsten got confused by private_connection, so try callingRoger Dingledine2007-05-25
| | | | | | | it anonymized_connection instead. svn:r10330
* r12936@catbus: nickm | 2007-05-24 14:12:34 -0400Nick Mathewson2007-05-24
| | | | | | | Review XXXX comments without a version; upgrade some to XXXX020. svn:r10315
* r12853@catbus: nickm | 2007-05-22 11:36:54 -0400Nick Mathewson2007-05-22
| | | | | | | Make connection_array into a smartlist. svn:r10292
* r12850@catbus: nickm | 2007-05-21 22:20:42 -0400Nick Mathewson2007-05-22
| | | | | | | 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
* r13021@Kushana: nickm | 2007-05-20 14:03:10 -0400Nick Mathewson2007-05-20
| | | | | | | Provide actual reasons when dropping an uploaded extrainfo for incompatibility; also, clean whitespace. svn:r10230
* r12982@Kushana: nickm | 2007-05-18 15:15:14 -0400Nick Mathewson2007-05-18
| | | | | | | Partial backport candidate: We had a bug where we were downloading descriptors by descriptor digest, but trying to look them up by identity fingerprint when updating their failure count and next retry time. (Also use correct backoff logic for extrainfo code.) Needs testing, doubtless. svn:r10210
* r12981@Kushana: nickm | 2007-05-18 14:12:19 -0400Nick Mathewson2007-05-18
| | | | | | | First cut at code to download extra-info docs. Also note a bad bug in directory.c (look for the string BUG BUG BUG). svn:r10209
* r12768@catbus: nickm | 2007-05-16 17:25:33 -0400Nick Mathewson2007-05-16
| | | | | | | Fix GCC warnings related to local parameters/variables getting shadowed. svn:r10198
* polish r9726-r9903Roger Dingledine2007-05-13
| | | | svn:r10182
* move a few more situations over to the authority_type_t bitfieldRoger Dingledine2007-05-10
| | | | svn:r10151
* r12697@catbus: nickm | 2007-05-09 00:15:40 -0400Nick Mathewson2007-05-09
| | | | | | | Change authority_type_t to a set of flags; use it more consistently. svn:r10144
* complain when we try to upload to, say, bridge authorities,Roger Dingledine2007-05-09
| | | | | | | yet we didn't configure any first. svn:r10143
* prepare directory_post_to_dirservers() to hear what sort ofRoger Dingledine2007-05-07
| | | | | | | | dir authority we'd like to upload to. at some point we should pick a config option to say that in, for bridges. svn:r10129
* early skeletal support for running a bridge directory authorityRoger Dingledine2007-05-04
| | | | svn:r10112
* New config option V2AuthoritativeDirectory that all directoryRoger Dingledine2007-05-02
| | | | | | | | | | | 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
* r12627@catbus: nickm | 2007-05-01 16:42:21 -0400Nick Mathewson2007-05-01
| | | | | | | Oops; downgrade a message to INFO. svn:r10090
* r12622@catbus: nickm | 2007-05-01 16:29:19 -0400Nick Mathewson2007-05-01
| | | | | | | Look at the version in the routerinfo as well as the versino in the networkstatus when deciding whether to upload extrainfo svn:r10088
* r12619@catbus: nickm | 2007-05-01 16:13:42 -0400Nick Mathewson2007-05-01
| | | | | | | Add code to upload extrainfos to authorities running 0.2.0.0-alpha-dev (r10070) or later. svn:r10086
* r12585@catbus: nickm | 2007-04-30 14:38:37 -0400Nick Mathewson2007-04-30
| | | | | | | (Needs review.) Allow directory authorities to accept multiple router descriptors and extra info documents in a single POST. This will make implementing the client side of proposal 104 a lot simpler. svn:r10069
* r12580@catbus: nickm | 2007-04-30 13:29:05 -0400Nick Mathewson2007-04-30
| | | | | | | Initial version of patch from Karsten Loesing: Add an HSAuthorityRecordStats option to track statistics of overall hidden service usage without logging information that would be useful to an attacker. svn:r10067
* Make PreferTunneledDirConns and TunnelDirConns work even whenRoger Dingledine2007-04-27
| | | | | | | | we have no cached directory info. This means Tor clients can now do all of their connections protected by TLS. svn:r10035
* fix an assert error in r9995 (unlikely to happen, but still)Roger Dingledine2007-04-25
| | | | svn:r10024
* cleanups, and note a bugRoger Dingledine2007-04-25
| | | | svn:r10022
* r12763@Kushana: nickm | 2007-04-20 18:42:58 -0400Nick Mathewson2007-04-21
| | | | | | | Initial version of code to stop using socket pairs for linked connections. Superficially, it seems to work, but it probably needs a lot more testing and attention. svn:r9995
* r12434@catbus: nickm | 2007-04-19 11:23:35 -0400Nick Mathewson2007-04-19
| | | | | | | When advancing a string pointer, make sure we do not later free the altered pointer. Fixes bug 416, introduced in r9971. svn:r9990
* r12406@catbus: nickm | 2007-04-16 14:39:33 -0400Nick Mathewson2007-04-16
| | | | | | | More proposal-104 stuff: add most of the code for authorities to accept and serve extra-info documents. The back-end to store the things is missing. svn:r9971
* r12074@catbus: nickm | 2007-03-04 15:11:43 -0500Nick Mathewson2007-03-04
| | | | | | | Make all LD_BUG log messsages get prefixed with "Bug: ". Remove manually-generated "Bug: "s from log-messages. (Apparently, we remembered to add them about 40% of the time.) svn:r9733
* r12057@catbus: nickm | 2007-03-04 13:58:32 -0500Nick Mathewson2007-03-04
| | | | | | | Clarify some log messages; note others that could be improved later. svn:r9724
* Disable encrypted directory connections when we don't have a serverRoger Dingledine2007-03-01
| | | | | | | | descriptor for the destination. We'll get this working again in the 0.2.0 branch. svn:r9700
* more cleanups; getting closerRoger Dingledine2007-02-26
| | | | svn:r9655
* tell the user if we're delaying his newnym request. also, pickRoger Dingledine2007-02-24
| | | | | | | a different set of fenceposts. svn:r9647
* r11876@catbus: nickm | 2007-02-22 02:23:13 -0500Nick Mathewson2007-02-22
| | | | | | | Fix two XXXX012 issues in routerlist.c: a possible performance issue hasnt shown up on any profiles, so unflag it. Stop warning when we get a router descriptor that we asked for but no longer want: just drop it (if we are not a cache) or cache if (if we are). svn:r9616
* r11825@catbus: nickm | 2007-02-16 14:04:36 -0500Nick Mathewson2007-02-16
| | | | | | | Fix DOCDOC items in or.h; rename a couple of macros to be more sensible. svn:r9593
* r11775@catbus: nickm | 2007-02-12 16:39:09 -0500Nick Mathewson2007-02-12
| | | | | | | Update copyright dates. svn:r9570
* r11727@catbus: nickm | 2007-02-08 17:07:50 -0500Nick Mathewson2007-02-08
| | | | | | | Explain that update_router_desciptor_downloads happens every 10 seconds in main.c, and we don't need to call it from directory.c svn:r9534
* Only rewrite a conn's address based on X-Forwarded-For: headersRoger Dingledine2007-02-07
| | | | | | | | if it's a parseable public IP address; and stop adding extra quotes to the resulting address. svn:r9505