aboutsummaryrefslogtreecommitdiff
path: root/src/common
AgeCommit message (Collapse)Author
2003-12-17clean tabs, trailing whitespaceRoger Dingledine
svn:r952
2003-12-17document an openssl gotchaRoger Dingledine
svn:r947
2003-12-16change crypto_digest_new_env to crypto_new_digest_envRoger Dingledine
(and same with _free_) to match our conventions i think our conventions may be getting too ad hoc svn:r940
2003-12-16rename digest_copy to digest_dup, make it return, make gcc happierRoger Dingledine
svn:r939
2003-12-16Add more fine-grained SHA1 functionality.Nick Mathewson
svn:r937
2003-12-15Make compile warning-free on cygwinNick Mathewson
svn:r936
2003-12-14make --debuglogfile (or any second log file) workRoger Dingledine
svn:r935
2003-12-14make it compileRoger Dingledine
svn:r923
2003-12-14extend smartlist with _remove() and _subtract()Roger Dingledine
svn:r922
2003-12-14remove obsolete codeRoger Dingledine
svn:r914
2003-12-13extend smartlist with a few smarter operationsRoger Dingledine
svn:r910
2003-12-13clean up some copyrightsRoger Dingledine
svn:r907
2003-12-13minor tweaks to the smartlist operationsRoger Dingledine
svn:r903
2003-12-13add a 'smartlist' building block that picks random elements from a listRoger Dingledine
svn:r897
2003-12-09make the license explicit on fakepoll.[ch]Roger Dingledine
svn:r895
2003-12-08Make router/directory parsing nondestructive and more const-friendlyNick Mathewson
svn:r890
2003-12-03assert that nobody asks for a random number between 0 and -1Roger Dingledine
svn:r875
2003-11-21Fix incorrect error messageNick Mathewson
svn:r862
2003-11-19Check that we can write to the logfile and log a warning to stderr if we can'tPeter Palfrader
Move writing of pidfile after daemonizing, and also after setting the [ug]id: This means that the tor user needs write priviliges to the pidfile location. It needs it for unlinking the pidfile anyway. svn:r846
2003-11-18add a tor_malloc_zero wrapper: tor_malloc and memset 0Roger Dingledine
svn:r836
2003-11-18Stop leaking X509 certs; those things are _nasty_ on the carpetNick Mathewson
svn:r833
2003-11-13fix trivial typoRoger Dingledine
svn:r808
2003-11-12break out the string manipulation routinesRoger Dingledine
svn:r804
2003-11-12Remove minor biasing problem from crypto_pseudo_rand_intNick Mathewson
svn:r799
2003-11-12Make crypto_pseudo_rand* never fail.Nick Mathewson
svn:r797
2003-11-11fix a bug in handling clock skewRoger Dingledine
svn:r785
2003-11-10Check in a working cross-platform timegmNick Mathewson
svn:r779
2003-10-27bugfix for win32 with lots of usersRoger Dingledine
plus general cleanup on switch_id() svn:r684
2003-10-23Use daemon(3) function where available.Nick Mathewson
svn:r665
2003-10-23resolve warningNick Mathewson
svn:r664
2003-10-23Two-pronged attack at my overzealous skew fixes.Nick Mathewson
The problem was that the fixes had us generating TLS certs with a 2-day lifetime on the assumption that we'd rotate fairly often. In fact, we never rotate our TLS keys. This patch fixes the situation in 2 ways: 1. It bumps the default lifetime back up to one year until we get rotation in place. 2. It changes tor_tls_context_new() so that it doesn't leak memory when you call it more than once. svn:r663
2003-10-22switch_id() no longer tries to log the user name when it's calld onSteven Hazel
Windows, since we don't know whether it's the user or the group that was set. svn:r659
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-21introduce new tor_free() macroRoger Dingledine
svn:r643
2003-10-20include our own timegm() impl, since it's not portableRoger Dingledine
svn:r635
2003-10-19warn, not errRoger Dingledine
svn:r630
2003-10-19Code to get nicknames from peer certsNick Mathewson
svn:r627
2003-10-19let tls tolerate reallocing the bufRoger Dingledine
and also remember the params for ssl_write if it returns wantread. svn:r626
2003-10-18first steps toward a WANTWRITE SSL_write tls bug fixRoger Dingledine
how exactly the same do the arguments need to be? :( svn:r625
2003-10-18start to track down the 'peer has invalid cert' bugRoger Dingledine
svn:r623
2003-10-18we've been stomping on memory while reading configRoger Dingledine
doesn't seem to have bitten us yet, but let's fix that :) svn:r619
2003-10-18rewrite close_logs so it could possibly workRoger Dingledine
remove deadbeef memory-clobber testing (for now) svn:r616
2003-10-15Log TLS errors even harderNick Mathewson
svn:r604
2003-10-15Add more logging on some ssl errors.Nick Mathewson
svn:r603
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 add_file_log return 0 on success.Nick Mathewson
svn:r594
2003-10-14Add tor_realloc to mirror tor_mallocNick Mathewson
svn:r582
2003-10-10oops, bugfixRoger Dingledine
svn:r572