aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
Commit message (Collapse)AuthorAge
* Normalize whitespace; add a "tell me about all the unnormalized whitespace" ↵Nick Mathewson2004-11-09
| | | | | | target; fix a braino in dirserv.c svn:r2758
* Clean up copyrights.Roger Dingledine2004-11-07
| | | | | | | | Break connection_consider_empty_buckets() out of connection_read_bucket_decrement(). svn:r2698
* Make options no longer a global variable.Roger Dingledine2004-11-06
| | | | | | | | | Now we can try setting an option but back out if it fails to parse, or if it's disallowed (e.g. changing RunAsDaemon from 1 to 0). Use parse_line_from_str rather than parse_line_from_file. svn:r2692
* make the default default options.FirewallPorts be the defaultRoger Dingledine2004-11-04
| | | | svn:r2683
* break out validate_optionsRoger Dingledine2004-11-04
| | | | | | | leave options.FirewallPorts NULL if it's NULL svn:r2673
* Tweaks to prevent obsolete restarting tors from hammering the dirservers. ↵Nick Mathewson2004-10-28
| | | | | | (1) Cache a received directory as soon as the signature checks out. (2) Treat a cached directory as "recent" based on its mtime. (3) If we have a recent directory, we dont need to fetch a newer one for DirFetchPostPeriod. This needs review! svn:r2618
* Tricksy compiler warnings! We hates them, hates them forever, my precious!Nick Mathewson2004-10-27
| | | | svn:r2615
* Use strlcpy, not strcpy.Nick Mathewson2004-10-27
| | | | svn:r2610
* Use tor_snprintf, not snprintfNick Mathewson2004-10-27
| | | | svn:r2609
* Replace sprintf with snprintfNick Mathewson2004-10-27
| | | | svn:r2602
* quick-and-dirty dir policy since the dirservers are getting hammeredRoger Dingledine2004-10-25
| | | | | | | | nick, could you abstract this sometime so we don't repeat the sockspolicy code twice? svn:r2589
* switch conn->addr and conn->dir_port to reflect the final destination,Roger Dingledine2004-10-17
| | | | | | | not the http proxy svn:r2553
* don't assert multiple things in the same tor_assert()Roger Dingledine2004-10-16
| | | | svn:r2544
* Remove unused localsNick Mathewson2004-10-15
| | | | svn:r2533
* Add a commentNick Mathewson2004-10-15
| | | | svn:r2530
* Upload to trusted dir servers based on DirServer config options, not on ↵Nick Mathewson2004-10-15
| | | | | | routerinfos. svn:r2529
* Ignore fascistfirewall when dealing with service descriptors; obey ↵Nick Mathewson2004-10-15
| | | | | | fascistfirewall when posting server descriptors; ignore fascistfirewall on directory connections when httpproxy is set. svn:r2527
* better warn message for the Content-Length attackRoger Dingledine2004-10-14
| | | | svn:r2495
* Try to always dtrt if routerlist==NULLNick Mathewson2004-10-14
| | | | svn:r2489
* Build without warnings on mac gcc 3.3Nick Mathewson2004-10-14
| | | | svn:r2487
* more int to size_t conversions, fixing one or more amd64 bugsRoger Dingledine2004-10-14
| | | | | | | plus a whitespace patch on config.c from vicman svn:r2482
* Remove need for dirservers file: now, we note trusted dirservers in ↵Nick Mathewson2004-10-14
| | | | | | configuration options, and only need to remember addr:port and key digest for each one. svn:r2479
* Add an implementation of trusted_dir_server logic to switch towards simply ↵Nick Mathewson2004-10-12
| | | | | | remembering an addr/port/keyid for each trusted dir server svn:r2443
* bugfix on my friday commit: make hidden services work again in cvsRoger Dingledine2004-10-12
| | | | svn:r2439
* interim commit for http proxy supportRoger Dingledine2004-10-08
| | | | svn:r2431
* Only check versions against downloaded directories, not cached directories.Nick Mathewson2004-10-03
| | | | svn:r2413
* Decode Content-Encoding header correctly.Nick Mathewson2004-10-01
| | | | svn:r2403
* prefer tor_free to freeRoger Dingledine2004-09-29
| | | | | | | plus complain more loudly when we fail to parse a dir we just fetched svn:r2401
* ha ha, thought the bugs were doneRoger Dingledine2004-09-29
| | | | | | | don't stop writing the compressed directory just because you found a nul svn:r2399
* the tor clients in cvs can't speak to the current tor authdirservers forRoger Dingledine2004-09-28
| | | | | | | | rendezvous publishes and fetches, since they're still running 0.0.8. so make them speak the old way until we've upgraded the authdirservers. svn:r2384
* put my fenceposts back in valid memory spaceRoger Dingledine2004-09-27
| | | | svn:r2381
* checking only 0.0.7 and 0.0.8 didn't work, because some dirserversRoger Dingledine2004-09-27
| | | | | | | | | | | | | | | files have really old descriptors for the authdirservers, so we're asking them in the new format because they're too old. now we actually compare the version to a cutoff version, and act appropriately. also take this chance to use only >=0.0.8 servers for dns resolves, because of the recent bugs. we'll bump to >=0.0.9pre1 once there are some servers running that. svn:r2380
* post descriptors to 0.0.8 authdirservers the old way, to make theRoger Dingledine2004-09-27
| | | | | | | transition easier svn:r2379
* clients ask 0.0.9-and-later dirservers for a compressed dirRoger Dingledine2004-09-27
| | | | | | | | dirservers rewrite url /foo/ to /tor/foo/, which will help us run things behind apache once 0.0.8 is obsolete svn:r2378
* cleanup: use strcmpstart() in more placesRoger Dingledine2004-09-23
| | | | svn:r2372
* clean up/bugfix deflate logic and log messagesNick Mathewson2004-09-21
| | | | svn:r2359
* Flush more changes from sandboxNick Mathewson2004-09-08
| | | | | | | | | | | | | | | | | - make clients cache directories and use them to seed their router lists at startup. This means clients have a datadir again. - Introduce a global_write_bucket. We need to respond better to exhausting it. - Remove the last vestiges of LinkPadding and TrafficShaping. - Configuration infrastructure support for warning on obsolete options. - Refactor directory header parsing to use smartlist_split_string. - Respond to content-encoding headers by trying to uncompress as appropriate. - Reply with a deflated directory when a client asks for "dir.z". (We could use allow-encodings instead, but allow-encodings isn't specified in HTTP 1.0.) svn:r2335
* Keep a deflated version of each directory so we can deliver it when requestedNick Mathewson2004-09-02
| | | | svn:r2328
* Check for time skew on http headers; report date in response to "GET /".Nick Mathewson2004-08-15
| | | | svn:r2238
* Refactor ISO-style (yyyy-mm-dd hh:mm:ss) time parsing into util.c; rename ↵Nick Mathewson2004-08-07
| | | | | | format/parse_rfc1123_time; make rephist remember used bandwidth; published used bandwidth in descriptors in 15-minute chunks. Breaks unittests. svn:r2182
* (size_t)-1 is never < 0; fix an XXXX008 by changing the interface for ↵Nick Mathewson2004-08-06
| | | | | | dirserv_get_runningrouters svn:r2165
* Hack: Include date with successful directory GETs.Nick Mathewson2004-08-04
| | | | svn:r2130
* stop using atexit() to remove our pid, since it's calledRoger Dingledine2004-07-22
| | | | | | | | | immediately when we daemonize. also drop our retry period for hidserv desc uploads from 10m to 5m svn:r2111
* caching dirservers don't handle posts, running-routers, or rend descsRoger Dingledine2004-07-21
| | | | svn:r2080
* add a new advertised_server_mode() to distinguish ORs thatRoger Dingledine2004-07-21
| | | | | | | are willing to become servers from ones that really are servers. svn:r2071
* clients can now pick non-authdirservers for fetching directories.Roger Dingledine2004-07-20
| | | | | | | | | servers still pick authdirservers, but they never pick themselves. but picking themselves for fetching rend descs is ok. svn:r2059
* break connection_dir_client_finished_reading() into its own functionRoger Dingledine2004-07-20
| | | | svn:r2058
* why does gcc not warn me about this at all? that's evil.Roger Dingledine2004-07-12
| | | | svn:r2032
* tor now tolerates down dirservers betterRoger Dingledine2004-07-12
| | | | svn:r2031
* More digest/nickname fixesNick Mathewson2004-07-02
| | | | svn:r2000