aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
Commit message (Collapse)AuthorAge
* Fix comment in dirserv.cNick Mathewson2004-10-13
| | | | svn:r2470
* stop trying to print a NULLRoger Dingledine2004-10-13
| | | | | | | plus make router_nickname_is_approved() more obviously unused svn:r2469
* hex-to-hex compare makes more sense than hex-to-bin.Nick Mathewson2004-10-13
| | | | svn:r2463
* fix const char * vs char * issueRoger Dingledine2004-10-13
| | | | | | | plus unshadow some variables svn:r2460
* Check fingerprint list before generating running-routers lists; also add ↵Nick Mathewson2004-10-13
| | | | | | as-yet-uncalled function to update an OR connection nickname on the fly svn:r2458
* Add long-term format for dir-signing-key fields (commented out)Nick Mathewson2004-10-12
| | | | svn:r2442
* Include a dir-signing-key token in directories to tell the parsing entity ↵Nick Mathewson2004-10-07
| | | | | | which key is being used to sign. This is the first step in obsoleting the dirservers file. svn:r2428
* Make base-64-encoded DER work, including workaround for ugly openssl ↵Nick Mathewson2004-10-07
| | | | | | misfeature that makes base64 decoding fail when you strip out the newlines. svn:r2423
* Refactor fingerprint handling: remember hex digests (no spaces) instead of ↵Nick Mathewson2004-10-06
| | | | | | beautified fingerprints svn:r2422
* Only check versions against downloaded directories, not cached directories.Nick Mathewson2004-10-03
| | | | svn:r2413
* use size_t rather than int for directory lengths in memoryRoger Dingledine2004-10-01
| | | | | | | this might fix a bug with amd64 svn:r2410
* prefer tor_free to freeRoger Dingledine2004-09-29
| | | | | | | plus complain more loudly when we fail to parse a dir we just fetched svn:r2401
* if our local cached directory is new enough, go ahead andRoger Dingledine2004-09-28
| | | | | | | start building circuits while we're fetching a new one svn:r2394
* fix some local buffer overflowsRoger Dingledine2004-09-28
| | | | | | | fix a memory leak svn:r2391
* If we are an authoritative dirserver, check out the fingerprint list when ↵Nick Mathewson2004-09-28
| | | | | | setting connection nicknames svn:r2389
* fix another bug with cached compressed directoriesRoger Dingledine2004-09-27
| | | | | | | still not working svn:r2383
* fix two bugs with cached directories:Roger Dingledine2004-09-27
| | | | | | | | | | - don't complain that you won't cache it, then cache it anyway. - change confusing terminology from 'deflate' to 'compress', so we'll stop getting our logic backwards. i assume the rfc author has shot himself by now. svn:r2382
* 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