aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
Commit message (Collapse)AuthorAge
* remove trailing whitespaceRoger Dingledine2003-12-17
| | | | svn:r951
* betcha didn't know strncpy could leave an unterminated stringRoger Dingledine2003-12-17
| | | | svn:r949
* on hup, close and rebind listener ports too (in case their config has changed)Roger Dingledine2003-12-14
| | | | svn:r926
* clean up some file-scope-global directory variablesRoger Dingledine2003-12-14
| | | | svn:r925
* clean up some copyrightsRoger Dingledine2003-12-13
| | | | svn:r907
* Make router/directory parsing nondestructive and more const-friendlyNick Mathewson2003-12-08
| | | | svn:r890
* terminology shift:Roger Dingledine2003-12-05
| | | | | | | | | | | | | directory is the string that dirserv.c and directory.c deal with routerlist is routerinfo's that are bundled together in routers.c rename some of the get_routerlist functions to set_routerlist preparing to break into router.c for stuff the router does, and routerlist.c for handling routerlist. svn:r886
* use the tor_malloc_zero wrapperRoger Dingledine2003-11-18
| | | | svn:r837
* let getconfig survive repeated calls. now we call it again when we hup.Roger Dingledine2003-11-13
| | | | | | | | change RecommendedVersions into a config option, so dirservers can hup for a new one svn:r809
* make dir parsing robust to invalid but well-formed descriptorsRoger Dingledine2003-11-12
| | | | svn:r800
* Clock skew fixes.Nick Mathewson2003-10-22
| | | | | | | | | | | | | | | | | | | | | | | | | | Allow some slop (currently 3 minutes) when checking certificate validity. Change certificate lifetime from 1 year to 2 days. Since we regenerate regularly (we regenerate regularly, right??), this shouldn't be a problem. Have directories reject descriptors published too far in the future (currently 30 minutes). If dirservs don't do this: 0) Today is January 1, 2000. 1) A very skewed server publishes descriptor X with a declared publication time of August 1, 2000. 2) The directory includes X. 3) Because of certificate lifetime issues, nobody can use the skewed server. 4) The server fixes its skew, and goes to republish a new descriptor Y with publication time of January 1, 2000. 5) But because the directory already has a "more recent" descriptor X, it rejects descriptor "Y" as superseded! This patch should make step 2 go away. svn:r658
* move closer to being able to reload config on HUPRoger Dingledine2003-10-21
| | | | | | | | rename APPort to SocksPort introduce new tor_free() macro svn:r642
* fix two more memory problemsRoger Dingledine2003-10-18
| | | | | | | one remains :) svn:r621
* put a blank line in the directory, before the first routerRoger Dingledine2003-10-17
| | | | | | | this makes it easier to read (at least for me) svn:r613
* change WARNING to WARNRoger Dingledine2003-10-10
| | | | | | | and fix a few typos svn:r571
* wrap strdup; prefer time() to gettimeofday()Roger Dingledine2003-10-04
| | | | svn:r538
* Move dirserv/routers code out of main.cNick Mathewson2003-10-01
| | | | svn:r527
* make sure router descriptor doesnt eat the directory-signatureNick Mathewson2003-09-30
| | | | svn:r516
* Bugfixes in directory code:Nick Mathewson2003-09-30
| | | | | | | | | | | | | | | | | | | Improve debugging output on fingerprint checking. Make sure to add our own fingerprint to the fingerprint list _before_ adding our own descriptor, or else we'll reject ourself. Don't call a directory invalid just because we have a newer descriptor for some router. Use router_get_dir_hash to generate hashes for signed directories. Make sure we add our own descriptor successfully. Don't fall-through on failed base64-endode. svn:r514
* getting closer to having dirserv workingRoger Dingledine2003-09-30
| | | | | | | | we now add our own descriptor to the descriptor list and we rebuild the directory (and dump to disk) after receiving a POST svn:r509
* bugfixes and features: closer to making dirserv workRoger Dingledine2003-09-29
| | | | | | | | | | | fix a variety of seg faults don't try to list OPs in running-routers write cached-directory to disk when rebuilding the dir on boot, dirservers load approved-routers file on boot, dirservers load cached directory file svn:r508
* more cleanup and rearrangingRoger Dingledine2003-09-29
| | | | | | | still not finished integrating new dirserv stuff svn:r507
* fix two new segfaultsRoger Dingledine2003-09-28
| | | | svn:r506
* Write necessary backends for online directory generation. I think.Nick Mathewson2003-09-27
svn:r503