summaryrefslogtreecommitdiff
path: root/src/or
AgeCommit message (Collapse)Author
2003-11-10client now survives going offline betterRoger Dingledine
fix badness in usage() if neither socksport nor orrport is defined, quit obsolete connection_flush_buf() svn:r780
2003-11-10Check in a working cross-platform timegmNick Mathewson
svn:r779
2003-11-08Add lots of logging to dns.c; change behavior of often-failing assertionNick Mathewson
svn:r778
2003-10-25add DirBindAddress, parse the BindAddress's when you bindRoger Dingledine
exit if bind fails add usage printfs rearrange config options for readability svn:r674
2003-10-22Clock skew fixes.Nick Mathewson
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
2003-10-22- fixed a bug in the id switching code -- setgid has to happen beforeSteven Hazel
setuid, because after we setuid we don't have the priviledges we need to setgid anymore, duh. merged switch_user() and switch_group() into switch_id(), since that code has to be wound together. - return -1 from switch_id() if it's not defined to do anything else. - moved daemoinize(), write_pidfile(), and switch_id() from main.c to util.c svn:r656
2003-10-22play with connection_edge_send_commandRoger Dingledine
maybe more robust now svn:r655
2003-10-22make end relay cells have payloadsRoger Dingledine
move default exit policy into config files svn:r653
2003-10-22added User and Group options -- if you set them, tor will try toSteven Hazel
setuid and setgid respectively, and die if it can't. (If the User option is set, tor will setgid to the user's gid as well.) This happens after the pidfile is created, so that in cases where tor needs to be root to work with the pidfile, it will at least be able to create it, although it won't be able to delete it. That sucks, but it's somewhat better than not being able to create the pidfile in the first place. svn:r652
2003-10-21move closer to being able to reload config on HUPRoger Dingledine
rename APPort to SocksPort introduce new tor_free() macro svn:r642
2003-10-21send the end cell when we realize we're going to end,Roger Dingledine
not when we're closing the stream. this lets us put a payload in the end cell if we want to, to describe why we're closing the stream. there are still some places where we don't send the end cell immediately. i need to track them down. but it's a low priority, since i've made it send the end cell when we close the stream if we haven't already sent it. svn:r640
2003-10-20include our own timegm() impl, since it's not portableRoger Dingledine
svn:r635
2003-10-20a skeletal print_usage() functionRoger Dingledine
svn:r634
2003-10-19move to 0.0.2pre13tor-0.0.2pre13Roger Dingledine
svn:r631
2003-10-19put small buffers back in placeRoger Dingledine
svn:r629
2003-10-19Example code to get nickname from certNick Mathewson
svn:r628
2003-10-18another minor memory leakRoger Dingledine
make dnsconn->address reflect what it's currently resolving svn:r624
2003-10-18no more memory leaksRoger Dingledine
when you run it under normal operation for as many as three minutes svn:r622
2003-10-18fix two more memory problemsRoger Dingledine
one remains :) svn:r621
2003-10-18clean up memory leaks, confusionsRoger Dingledine
still one memory leak remaining here. svn:r620
2003-10-18log to stdout while parsing config,Roger Dingledine
otherwise we log to nothing and give no feedback! svn:r617
2003-10-17put a blank line in the directory, before the first routerRoger Dingledine
this makes it easier to read (at least for me) svn:r613
2003-10-17try to make cvs more stable for now. need to test this more in a bit.Roger Dingledine
svn:r612
2003-10-17reload the fingerprints file on HUPRoger Dingledine
svn:r611
2003-10-17catch misconfigured machines that return hostname as fqdnRoger Dingledine
svn:r610
2003-10-15closing stdout *should* be safe (we'll see)Roger Dingledine
svn:r601
2003-10-15Report delivery cell fullness correctlyNick Mathewson
svn:r600
2003-10-15change buf->buf to buf->memRoger Dingledine
maybe this will mean fewer dumb errors svn:r599
2003-10-15fix bug with overzealous shrinking; add more comments.Nick Mathewson
svn:r597
2003-10-15clean up logging, allow user to specify log filesRoger Dingledine
If DebugLogFile is specified, log to it at -l debug If LogFile is specified, log to it at the -l from the commandline (default info) If no LogFile *and* not a Daemon, then log to stdout. Make conn->s = -1 by default (this might break things) When kill -USR1, prefer to log at INFO, but make sure they always see it. svn:r596
2003-10-15Build without warnings on OS X.Nick Mathewson
svn:r595
2003-10-15Make last commit buildNick Mathewson
svn:r593
2003-10-15Stop using stdout for non-debugging casesNick Mathewson
svn:r592
2003-10-15- cause configure to create a tor.sh which will have directories setSteven Hazel
correctly based on how configure was run - cause tor to guess the location of torrc more intelligently - cause cause src/config/torrc and src/conf/sample-server-torrc to be generated with contents that are correct for the way configure was run - cause "make install" to put torrc, sample-server-torrc, and dirservers somewhere intelligent svn:r587
2003-10-14make the buffer resize stuff workRoger Dingledine
and make listener connections not have bufs svn:r584
2003-10-14Make buffers grow and shrink as needed.Nick Mathewson
svn:r583
2003-10-14i'm a little teapot, short and stoutRoger Dingledine
cvs compiles again svn:r581
2003-10-13fix segfault (connecting to dirserver when network is down)Roger Dingledine
svn:r580
2003-10-12put out 0.0.2pre12Roger Dingledine
(mainly doc and log changes) svn:r579
2003-10-11clarify the warning for unrecognized socks versionRoger Dingledine
(generally happens when people use tor as an httpd proxy) svn:r576
2003-10-10change WARNING to WARNRoger Dingledine
and fix a few typos svn:r571
2003-10-09Refactor, rename, and clarifyNick Mathewson
svn:r569
2003-10-08add in basic support for pidfilesRoger Dingledine
(patch courtesy aaron turner) svn:r565
2003-10-080.0.2pre11, new licenseRoger Dingledine
svn:r564
2003-10-08Update LICENSE and copyright dates.Nick Mathewson
svn:r560
2003-10-07more details to track a warning in tls handshakesRoger Dingledine
plus make exit policy comparisons not always reject svn:r559
2003-10-07successfully parse exit policies on future attempts tooRoger Dingledine
svn:r558
2003-10-07pull exit policies from config into desc_routerinfoRoger Dingledine
svn:r557
2003-10-07lowercase exit policies.Nick Mathewson
svn:r556
2003-10-07obey exit policies for addresses tooRoger Dingledine
svn:r555