aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
Commit message (Collapse)AuthorAge
* remove emacs droppings, since nick says he doesn't need them anymoreRoger Dingledine2004-11-26
| | | | svn:r2989
* Clarify a bunch of log messagesNick Mathewson2004-11-25
| | | | svn:r2983
* Normalize a few more kinds of whitespace. We now dislike:Nick Mathewson2004-11-22
| | | | | | | | | - func (args) - if (x){ This doesn't normalize if(x), for(x); while(x), and friends. svn:r2943
* Tweak on patch to make authoritative directory servers cacheNick Mathewson2004-11-15
| | | | | | | | | | | | directories on disk. Make authdirservers cache *their own* directories instead of the ones they download. This gives better liveness, and marginally better resistance to broken authdirservers. Authdirservers don't cache running-routers at all: r-r isn't stored to disk, so there's no point right now. svn:r2893
* Authoritative dirservers now also cache the directory, sinceRoger Dingledine2004-11-15
| | | | | | | | | they weren't writing anything into their datadirectory, so when they stop and start, they would know nothing until they fetched a directory from another authdirserver. svn:r2891
* Cache running-routers; compress running-routers; serve compressed ↵Nick Mathewson2004-11-15
| | | | | | running-routers.z svn:r2883
* Normalize whitespace; add a "tell me about all the unnormalized whitespace" ↵Nick Mathewson2004-11-09
| | | | | | target; fix a braino in dirserv.c svn:r2758
* Resolve many XXXs and all DOCDOCsNick Mathewson2004-11-09
| | | | svn:r2755
* When listing router status, include ourself if we are awakeNick Mathewson2004-11-09
| | | | svn:r2752
* only non-authdirservers cache the dir they just fetchedRoger Dingledine2004-11-09
| | | | svn:r2747
* once normalized, DataDirectory is always definedRoger Dingledine2004-11-09
| | | | svn:r2734
* Stop using the wrong DataDirectory when we're validating.Roger Dingledine2004-11-09
| | | | | | | Also validate/normalize the DataDirectory better. svn:r2732
* 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
* - Implement all of control interface except authentication, setconfig,Nick Mathewson2004-11-03
| | | | | | | | | and actually making the sockets. - Make sure that identity-based nicknames start with $. - Use new string_join interface. svn:r2661
* Use a stricter set of warnings; make them all pass.Nick Mathewson2004-11-02
| | | | svn:r2645
* canonicalize "src" and "dest" arg order in crypto.c (and others)Roger Dingledine2004-11-02
| | | | svn:r2644
* 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
* Fix windows buildNick Mathewson2004-10-27
| | | | svn:r2613
* stop freeing arbitrary memoryRoger Dingledine2004-10-27
| | | | | | | fix a couple of memory leaks svn:r2611
* Use strlcpy, not strcpy.Nick Mathewson2004-10-27
| | | | svn:r2610
* Use tor_snprintf, not snprintfNick Mathewson2004-10-27
| | | | svn:r2609
* Use strlcpy, not strncpyNick Mathewson2004-10-27
| | | | svn:r2603
* Replace sprintf with snprintfNick Mathewson2004-10-27
| | | | svn:r2602
* Add and document router-status line using new unified liveness/verifiedness ↵Nick Mathewson2004-10-27
| | | | | | format; continue to generate running-routers; continue to parse running-routers when no router-status line is found svn:r2592
* Make RecommendedVersions a CONFIG_TYPE_LINELIST option, and have it tolerate ↵Nick Mathewson2004-10-15
| | | | | | whitespace a little better. svn:r2528
* 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
* 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