Commit Graph

9558 Commits

Author SHA1 Message Date
Peter Palfrader
2cb7f63c9c Forward port patch 06_add_compile_time_defaults.
svn:r13972
2008-03-11 14:38:24 +00:00
Peter Palfrader
09a9edad41 Merge r13970: Build the debian package with openbsd malloc
svn:r13971
2008-03-11 14:18:48 +00:00
Nick Mathewson
4b65ea0ec0 r18730@catbus: nickm | 2008-03-11 00:47:04 -0400
Forward-port: Fix the SVK version detection logic to work right on a branch: tolerate multiple "copied from" tags and only look at the first.


svn:r13959
2008-03-11 04:47:07 +00:00
Nick Mathewson
8b24e01599 r18723@catbus: nickm | 2008-03-11 00:25:30 -0400
Fix bug spotted by mwenge: a server_event should not be a sever_event.  Also, fix compile errors in config.c and control.c with --enable-gcc-warnings.


svn:r13957
2008-03-11 04:30:14 +00:00
Nick Mathewson
d6507fb510 r18722@catbus: nickm | 2008-03-10 14:59:56 -0400
Try to clarify draft vs needs-revision.


svn:r13956
2008-03-11 04:30:11 +00:00
Steven Murdoch
aa81dba77f Promote xxx-verify-tor-usage.txt to proposal 131 (draft)
svn:r13955
2008-03-10 18:51:55 +00:00
Peter Palfrader
771b63f1e4 Add document LOADCONF to TODO
svn:r13951
2008-03-10 12:46:19 +00:00
Peter Palfrader
2704a2e129 And appease the whitespace nazis among us
svn:r13950
2008-03-10 12:43:47 +00:00
Peter Palfrader
0e36ce628b Update todo, part I done
svn:r13949
2008-03-10 12:41:55 +00:00
Peter Palfrader
79f1ee8a2d Implement LOADCONF control command
The LOADCONF control command allows posting a config file to Tor
over the control interface.  This config file is then loaded as if
it had been read from disk.  Sending a HUP signal to Tor will make
it try to load its old config from disk again, thereby forgetting
the config loaded with this command.


svn:r13948
2008-03-10 12:41:52 +00:00
Peter Palfrader
bc4095c70c different exit codes for options_init_from_string()
Change options_init_from_string() so that it returns different exit codes in the
error case, depending on what went wrong.  Also push the responsibility to log
the error to the caller.


svn:r13947
2008-03-10 12:41:49 +00:00
Peter Palfrader
8c71d7ea16 options_init_from_torrc(): split off options_init_from_string()
svn:r13946
2008-03-10 12:41:44 +00:00
Peter Palfrader
947fd064a3 Store options we got from commandline seperately from bare argv/argc
svn:r13945
2008-03-10 12:41:40 +00:00
Peter Palfrader
00d64fd213 options_init_from_torrc(): move code that loads torrc into its own function
move code that loads torrc from disk and sets torrc_fname into its own function


svn:r13944
2008-03-10 12:41:36 +00:00
Peter Palfrader
ded55fa296 options_init_from_torrc(): tread non-existing torrc like empty torrc.
Tread the case of a non-existing conffile, when allowed, exactly like the one
with an empty torrc.


svn:r13943
2008-03-10 12:41:33 +00:00
Peter Palfrader
e8f4d79ec1 options_init_from_torrc(): move code that looks for torrc into its own function
Part of options_init_from_torrc()'s job was looking for -f flags (to specify
an alternate config file) on the command line, complaining if more than one
is given or the given does not exist.  If none is given then use the compiled-in
default location, accepting if it does not exist.  This logic has been moved
into its own function in an attemped to make options_init_from_torrc() easier
to deal with.


svn:r13942
2008-03-10 12:41:29 +00:00
Peter Palfrader
4118e319c7 options_init_from_torrc(): Split argv processing into two parts
Split the argv processing loop into two poarts, one that deals with
figuring out which conffile to use, and the other that figures out
which "command" (hash fingerprint, verify config, list fpr, run tor)
the user asked for.

There is a third part further down that imports command line args
into the config but that is not touched.


svn:r13941
2008-03-10 12:41:26 +00:00
Peter Palfrader
82f3459490 Chrooting todo
svn:r13940
2008-03-10 12:39:48 +00:00
Peter Palfrader
8987bd2fd9 If we decrement incoming_cmd's length when receiving the ending CRLF "." CRLF for a multi-line control command, also truncate the string by nul-terminating it in the correct place.
svn:r13939
2008-03-10 12:13:43 +00:00
Steven Murdoch
0c56c7201f Add candidate proposal xxx-verify-tor-usage
svn:r13937
2008-03-10 11:08:31 +00:00
Roger Dingledine
0df1564298 forward-port recent changes
svn:r13935
2008-03-10 07:50:09 +00:00
Andrew Lewman
28a220b3cc clarify a task, and take myself off one
svn:r13925
2008-03-10 01:23:30 +00:00
Nick Mathewson
7587e16796 r18639@catbus: nickm | 2008-03-07 20:11:48 -0500
Change semantics of add-a-log functions to copy severity setup: that is way less error-prone.  Fix up config.c to act accordingly.


svn:r13888
2008-03-08 01:11:54 +00:00
Nick Mathewson
2675276618 r18638@catbus: nickm | 2008-03-07 20:11:15 -0500
Fix typo in tortls.c comment.


svn:r13887
2008-03-08 01:11:52 +00:00
Roger Dingledine
b770cc8e6e add some details on why we haven't done proposal 127 yet, and may
not ever do it.


svn:r13884
2008-03-07 21:19:21 +00:00
Roger Dingledine
5112bb4b1d did i say *end* of june? ha ha. i meant mid june.
svn:r13879
2008-03-06 21:08:54 +00:00
Nick Mathewson
670f4c19af r18632@catbus: nickm | 2008-03-05 17:38:52 -0500
Patch from karsten: proper error message from tor-gencert when no argument is given to --passphrase-fd


svn:r13876
2008-03-05 22:39:49 +00:00
Nick Mathewson
f56ba5f3d6 r18630@catbus: nickm | 2008-03-05 17:31:33 -0500
Implement domain-selection for logging.  Source is documented; needs documentation in manpage (maybe).  For now, see doxygen comment on parse_log_severity_config in log.c


svn:r13875
2008-03-05 22:31:39 +00:00
Peter Palfrader
d3589553bc Work around fig2dev failing to build the images on all archs
svn:r13870
2008-03-05 08:48:51 +00:00
Roger Dingledine
8ff639b34c auto update for tor would be nice. it'd be nice by august. or
earlier if possible.


svn:r13866
2008-03-05 03:52:12 +00:00
Roger Dingledine
eca22a8c3d and move a few items back a little bit too
svn:r13849
2008-03-04 08:02:50 +00:00
Roger Dingledine
7dca229290 and move another item up two months, but try to make it easier to
be sure to finish


svn:r13848
2008-03-04 07:46:44 +00:00
Roger Dingledine
effdec3974 hey nick, i just moved one of your external constraints up by
two months


svn:r13847
2008-03-04 07:40:23 +00:00
Andrew Lewman
2df2eae19e Enable openbsd malloc for linux users.
svn:r13837
2008-03-04 01:14:31 +00:00
Peter Palfrader
9d19e55390 Merge r13822: New upstream version
svn:r13824
2008-03-03 13:39:53 +00:00
Peter Palfrader
530d4237c2 Merge r13820: Fix broken quoting in init script
svn:r13821
2008-03-03 13:37:17 +00:00
Peter Palfrader
9e7b4400dc minor cleanup
in options_act() we set running_tor to options->command == CMD_RUN_TOR
once and used that in all but one place.  Now we use running_tor in that
place also.


svn:r13819
2008-03-03 12:48:13 +00:00
Roger Dingledine
5bf0a01011 forward-port r13799 and the 0.2.0.21-rc changelog
svn:r13808
2008-03-02 22:29:04 +00:00
Roger Dingledine
cf3e1b1309 we should consider dumping the v1 directory stuff from 0.2.1.x.
perhaps we would even replace the v1 directory with a static
page saying 'this is a tor server, let me tell you what that is'.


svn:r13797
2008-03-01 17:47:41 +00:00
Nick Mathewson
77d1654c50 r18535@catbus: nickm | 2008-03-01 09:58:33 -0500
Whoo.  People diagnosed and fixed bug 616. See changelog for details.  Bugfix on 0.2.0.20-rc.


svn:r13793
2008-03-01 14:59:03 +00:00
Peter Palfrader
306aab9288 karsten points out that we are missing one dirserver
svn:r13789
2008-03-01 00:52:48 +00:00
Peter Palfrader
9b582af28a Run --verify-config before start/reload/restart as root. No longer su - to
debian-tor tor run it.  Given that we now even start Tor as root (it setuids
later on) this should be fine (closes: #468566).


svn:r13788
2008-03-01 00:51:37 +00:00
Peter Palfrader
0b95e987b1 Move config check to its own function
svn:r13787
2008-03-01 00:49:03 +00:00
Roger Dingledine
c5a7ff8e43 forward-port r13777
svn:r13778
2008-02-29 01:45:06 +00:00
Roger Dingledine
04efc74e18 be a little bit more helpful than "Error reading directory."
make a note to try to be more helpful still.


svn:r13776
2008-02-28 21:37:39 +00:00
Nick Mathewson
eefe2a3562 r18462@catbus: nickm | 2008-02-27 14:15:57 -0500
Add better warnings for the error that produced bug 614, and downgrade from a tor_assert() to a tor_fragile_assert().


svn:r13752
2008-02-27 19:19:34 +00:00
Nick Mathewson
d14f8f2547 r14516@tombo: nickm | 2008-02-27 03:10:26 -0500
Write some unit tests for a few functions and cases that needed them.


svn:r13751
2008-02-27 08:10:28 +00:00
Nick Mathewson
5855ca92a3 r14514@tombo: nickm | 2008-02-27 02:11:38 -0500
Add notes on dataflow (originally written for Dan) to HACKING document.


svn:r13749
2008-02-27 07:13:14 +00:00
Nick Mathewson
4ea982c4c0 r14481@tombo: nickm | 2008-02-26 14:49:04 -0500
Bump trunk version to 0.2.1.0-alpha-dev


svn:r13745
2008-02-26 19:49:28 +00:00
Nick Mathewson
5375f4bc98 Add the .txt ending to proposal 129. Mark proposal 123 finished.
svn:r13743
2008-02-26 19:29:40 +00:00