aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
Commit message (Collapse)AuthorAge
* protect dirservers from overzealous descriptor uploadingRoger Dingledine2004-09-23
| | | | | | | wait 10 seconds after directory gets dirty, before regenerating svn:r2370
* clean up/bugfix deflate logic and log messagesNick Mathewson2004-09-21
| | | | svn:r2359
* Some platforms have weird translations when you open files in "test" mode; ↵Nick Mathewson2004-09-08
| | | | | | make read/write_str_to_file aware. svn:r2336
* 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
* stop wasting cpu time on authdirserversRoger Dingledine2004-08-08
| | | | | | | | we were making a new directory only when the old one was dirty, but every time we made one, we'd dirty it by testing it right then. svn:r2199
* 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
* let purging routerinfos and descriptors take an age argumentRoger Dingledine2004-08-06
| | | | svn:r2171
* (size_t)-1 is never < 0; fix an XXXX008 by changing the interface for ↵Nick Mathewson2004-08-06
| | | | | | dirserv_get_runningrouters svn:r2165
* note a bug that adam foundRoger Dingledine2004-08-06
| | | | svn:r2150
* Fix all warnings on win32 buildNick Mathewson2004-08-03
| | | | svn:r2127
* clean whitespace and tabsRoger Dingledine2004-07-22
| | | | svn:r2115
* 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
* Add notion of "longest nickname-or-hex-digest-with-$"Nick Mathewson2004-07-22
| | | | svn:r2108
* getting an unknown descriptor is an info, not a warn, nowRoger Dingledine2004-07-22
| | | | svn:r2098
* clients shouldn't create datadir until we have something to put thereRoger Dingledine2004-07-22
| | | | svn:r2092
* make router_nickname_is_approved() do the right thingRoger Dingledine2004-07-21
| | | | svn:r2090
* if johnny has three fenceposts, and jill takes four away...Roger Dingledine2004-07-21
| | | | svn:r2089
* authdirservers accept the uploading of unverified descriptors.Roger Dingledine2004-07-21
| | | | | | | | fix a bunch of bugs in router_update_status_from_smartlist() (Nick, did I get them all, or was there a trickier one still hiding?) svn:r2081
* a whole swath of fixesRoger Dingledine2004-07-20
| | | | | | | | | | | | | | | | | | | introduce an authdir_mode() macro to match the others. don't initialize uptime to the number of seconds since 1970. non-authoritative dirservers don't cache their directory on disk. make only authdirservers use clique_mode. only read approved-routers file if you're an authdirserver. even authdirservers fetch a new directory in do_hup. retry_all_connections() is now called retry_all_listeners(). router_parse_list_from_string() correctly reports the router number it's working on. only call dirserv_add_own_fingerprint() and dirserv_add_descriptor() on startup if we're an authdirserver. if AuthDir and !ORPort then fail. if AuthDir and ClientOnly then fail. svn:r2061
* Remove 1024-router limit in routerparse.c; unify handling of running-routers ↵Nick Mathewson2004-07-16
| | | | | | lines in running-routers requests and in directories; set is_verified field of routerinfo_ts correctly; use most-recent-info rule to decide whether to change router-is-running status. svn:r2051
* Finish most pre2 items: make running-routers list work right; rename secret ↵Nick Mathewson2004-07-13
| | | | | | key files; make even more lookup-by-nickname use lookup-by-id; default nicknames to hostname. svn:r2043
* running-routers now lists down routers too (with a ! before their name)Roger Dingledine2004-07-01
| | | | svn:r1996
* cleanups on 008pre1 itemsRoger Dingledine2004-06-30
| | | | svn:r1993
* Always use get_data_directory() instead of options.DataDirectory; fix a ↵Nick Mathewson2004-06-30
| | | | | | memory leak in router.c svn:r1991
* Remaining 008pre1 items done; deferred where more design is needed.Nick Mathewson2004-06-25
| | | | | | | | | | | | | More docs and (way more!) testing needed. Done: - Authdirservers down directories from others. - Generate and use running-routers lists - Cache directories; store across reboots. - Refactor directory parsing a bit; note potential trouble spots. svn:r1985
* Implement several 008pre1 items: needs more testingNick Mathewson2004-06-21
| | | | svn:r1981
* router->is_trusted_dir implies router->dir_port>0Roger Dingledine2004-06-16
| | | | | | | and add some infrastructure for fetching running-routers list svn:r1973
* non-dirservers expire routerinfo's that are more than a day oldRoger Dingledine2004-05-20
| | | | svn:r1907
* fix compile error in dirservRoger Dingledine2004-05-19
| | | | | | | (declare variables before the rest of the function) svn:r1896
* remove upper limit on number of descriptors/directories in dirserver; use ↵Nick Mathewson2004-05-18
| | | | | | smartlists instead of arrays svn:r1894
* fix a seg fault, add another XXX for nick ;)Roger Dingledine2004-05-18
| | | | svn:r1892
* Resolve some XXXsNick Mathewson2004-05-18
| | | | svn:r1889
* Make directory functions update routerlist, not replace it. Add notion of ↵Nick Mathewson2004-05-17
| | | | | | OR-is-trusted-to-be-a-dirserver. Arma, please review: does this handle being a dirserver right? svn:r1880
* Split directory/router parsing functionality into separate file from ↵Nick Mathewson2004-05-10
| | | | | | routerlist.c svn:r1846
* More doxygenation.Nick Mathewson2004-05-10
| | | | svn:r1832
* more doxygen markupRoger Dingledine2004-05-09
| | | | | | | plenty more remains svn:r1824
* Never list unapproved servers as recommendedNick Mathewson2004-05-05
| | | | svn:r1790
* More documentationNick Mathewson2004-05-05
| | | | svn:r1785
* note another bug to be fixed sometimeRoger Dingledine2004-04-30
| | | | svn:r1754
* Make Tor build on win32 with VC6 without warnings.Nick Mathewson2004-04-28
| | | | svn:r1739
* Remove onion_pkey from connection, since onion keys can change more often ↵Nick Mathewson2004-04-25
| | | | | | than connections. Also add more log messages svn:r1693
* Merge flagday into main branch.Nick Mathewson2004-04-24
| | | | svn:r1683
* Scan list of servers in directory after reloading fingerprint list; remove ↵Nick Mathewson2004-04-13
| | | | | | any servers that are no longer recognized. svn:r1613
* Continue attack on magic numbers; use new crypto wrappers where possibleNick Mathewson2004-04-06
| | | | svn:r1504
* alice can now look up bob's service descriptor,Roger Dingledine2004-04-05
| | | | | | | | | | | | | | | | | choose an intro point, connect to it, choose a rend point, connect to it and establish a cookie, get an ack from the rendezvous point, and know when both circs are ready for her. APConns don't use conn->purpose anymore don't initiate a renddesc lookup if one is already in progress also fix a buffer overflow in nickname parsing (only exploitable by the operator though) svn:r1471
* Make "common" no longer depend on or.hNick Mathewson2004-04-03
| | | | svn:r1466
* old or skewed descriptor doesn't mean we failed to parse itRoger Dingledine2004-03-29
| | | | svn:r1373
* fix typoRoger Dingledine2004-03-29
| | | | svn:r1364
* Re-enable unit tests for directory generation.Nick Mathewson2004-03-29
| | | | svn:r1362