aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
AgeCommit message (Collapse)Author
2004-11-09Resolve many XXXs and all DOCDOCsNick Mathewson
svn:r2755
2004-11-09When listing router status, include ourself if we are awakeNick Mathewson
svn:r2752
2004-11-09only non-authdirservers cache the dir they just fetchedRoger Dingledine
svn:r2747
2004-11-09once normalized, DataDirectory is always definedRoger Dingledine
svn:r2734
2004-11-09Stop using the wrong DataDirectory when we're validating.Roger Dingledine
Also validate/normalize the DataDirectory better. svn:r2732
2004-11-07Clean up copyrights.Roger Dingledine
Break connection_consider_empty_buckets() out of connection_read_bucket_decrement(). svn:r2698
2004-11-06Make options no longer a global variable.Roger Dingledine
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
2004-11-03- Implement all of control interface except authentication, setconfig,Nick Mathewson
and actually making the sockets. - Make sure that identity-based nicknames start with $. - Use new string_join interface. svn:r2661
2004-11-02Use a stricter set of warnings; make them all pass.Nick Mathewson
svn:r2645
2004-11-02canonicalize "src" and "dest" arg order in crypto.c (and others)Roger Dingledine
svn:r2644
2004-10-28Tweaks to prevent obsolete restarting tors from hammering the dirservers. ↵Nick Mathewson
(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
2004-10-27Fix windows buildNick Mathewson
svn:r2613
2004-10-27stop freeing arbitrary memoryRoger Dingledine
fix a couple of memory leaks svn:r2611
2004-10-27Use strlcpy, not strcpy.Nick Mathewson
svn:r2610
2004-10-27Use tor_snprintf, not snprintfNick Mathewson
svn:r2609
2004-10-27Use strlcpy, not strncpyNick Mathewson
svn:r2603
2004-10-27Replace sprintf with snprintfNick Mathewson
svn:r2602
2004-10-27Add and document router-status line using new unified liveness/verifiedness ↵Nick Mathewson
format; continue to generate running-routers; continue to parse running-routers when no router-status line is found svn:r2592
2004-10-15Make RecommendedVersions a CONFIG_TYPE_LINELIST option, and have it tolerate ↵Nick Mathewson
whitespace a little better. svn:r2528
2004-10-14more int to size_t conversions, fixing one or more amd64 bugsRoger Dingledine
plus a whitespace patch on config.c from vicman svn:r2482
2004-10-13Fix comment in dirserv.cNick Mathewson
svn:r2470
2004-10-13stop trying to print a NULLRoger Dingledine
plus make router_nickname_is_approved() more obviously unused svn:r2469
2004-10-13hex-to-hex compare makes more sense than hex-to-bin.Nick Mathewson
svn:r2463
2004-10-13fix const char * vs char * issueRoger Dingledine
plus unshadow some variables svn:r2460
2004-10-13Check fingerprint list before generating running-routers lists; also add ↵Nick Mathewson
as-yet-uncalled function to update an OR connection nickname on the fly svn:r2458
2004-10-12Add long-term format for dir-signing-key fields (commented out)Nick Mathewson
svn:r2442
2004-10-07Include a dir-signing-key token in directories to tell the parsing entity ↵Nick Mathewson
which key is being used to sign. This is the first step in obsoleting the dirservers file. svn:r2428
2004-10-07Make base-64-encoded DER work, including workaround for ugly openssl ↵Nick Mathewson
misfeature that makes base64 decoding fail when you strip out the newlines. svn:r2423
2004-10-06Refactor fingerprint handling: remember hex digests (no spaces) instead of ↵Nick Mathewson
beautified fingerprints svn:r2422
2004-10-03Only check versions against downloaded directories, not cached directories.tor-0.0.9pre2Nick Mathewson
svn:r2413
2004-10-01use size_t rather than int for directory lengths in memoryRoger Dingledine
this might fix a bug with amd64 svn:r2410
2004-09-29prefer tor_free to freeRoger Dingledine
plus complain more loudly when we fail to parse a dir we just fetched svn:r2401
2004-09-28if our local cached directory is new enough, go ahead andRoger Dingledine
start building circuits while we're fetching a new one svn:r2394
2004-09-28fix some local buffer overflowsRoger Dingledine
fix a memory leak svn:r2391
2004-09-28If we are an authoritative dirserver, check out the fingerprint list when ↵Nick Mathewson
setting connection nicknames svn:r2389
2004-09-27fix another bug with cached compressed directoriesRoger Dingledine
still not working svn:r2383
2004-09-27fix two bugs with cached directories:Roger Dingledine
- 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
2004-09-23protect dirservers from overzealous descriptor uploadingRoger Dingledine
wait 10 seconds after directory gets dirty, before regenerating svn:r2370
2004-09-21clean up/bugfix deflate logic and log messagesNick Mathewson
svn:r2359
2004-09-08Some platforms have weird translations when you open files in "test" mode; ↵Nick Mathewson
make read/write_str_to_file aware. svn:r2336
2004-09-08Flush more changes from sandboxNick Mathewson
- 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
2004-09-02Keep a deflated version of each directory so we can deliver it when requestedNick Mathewson
svn:r2328
2004-08-08stop wasting cpu time on authdirserversRoger Dingledine
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
2004-08-07Refactor ISO-style (yyyy-mm-dd hh:mm:ss) time parsing into util.c; rename ↵Nick Mathewson
format/parse_rfc1123_time; make rephist remember used bandwidth; published used bandwidth in descriptors in 15-minute chunks. Breaks unittests. svn:r2182
2004-08-06let purging routerinfos and descriptors take an age argumentRoger Dingledine
svn:r2171
2004-08-06(size_t)-1 is never < 0; fix an XXXX008 by changing the interface for ↵Nick Mathewson
dirserv_get_runningrouters svn:r2165
2004-08-06note a bug that adam foundRoger Dingledine
svn:r2150
2004-08-03Fix all warnings on win32 buildNick Mathewson
svn:r2127
2004-07-22clean whitespace and tabsRoger Dingledine
svn:r2115
2004-07-22stop using atexit() to remove our pid, since it's calledRoger Dingledine
immediately when we daemonize. also drop our retry period for hidserv desc uploads from 10m to 5m svn:r2111