Commit Graph

2597 Commits

Author SHA1 Message Date
Nick Mathewson 33bbf28779 Fix compile errors
svn:r2708
2004-11-07 23:11:29 +00:00
Nick Mathewson 8e6e8971de Make set-option functions distinguish between bad keys and bad values, in case the caller cares
svn:r2707
2004-11-07 22:59:30 +00:00
Nick Mathewson 47c11848de Fix up error codes
svn:r2706
2004-11-07 22:58:35 +00:00
Nick Mathewson d29ae18248 More tests for split
svn:r2705
2004-11-07 22:58:16 +00:00
Roger Dingledine 1eda6dfb6b add saveconf control command.
allow authentication by localhost, but if tor demands more, require more.


svn:r2704
2004-11-07 22:37:59 +00:00
Roger Dingledine c063fe6741 clean up control spec, man page
svn:r2703
2004-11-07 22:36:43 +00:00
Nick Mathewson 5475d1ce4b Add missing dereference; stop throwing zeroes around.
svn:r2702
2004-11-07 22:18:00 +00:00
Roger Dingledine 723c3e542d add an in-progress python controller to test controlport
svn:r2701
2004-11-07 22:08:20 +00:00
Nick Mathewson 2649413e66 Document control.c
svn:r2700
2004-11-07 21:37:50 +00:00
Roger Dingledine 1a628c66c7 allow unauth control connections for now
let control connections recognize eof


svn:r2699
2004-11-07 11:33:04 +00:00
Roger Dingledine a1fe2f2c91 Clean up copyrights.
Break connection_consider_empty_buckets() out of
connection_read_bucket_decrement().


svn:r2698
2004-11-07 01:33:06 +00:00
Roger Dingledine 94af772602 tor --list-fingerprint as a client shouldn't try to print null
svn:r2697
2004-11-06 09:22:08 +00:00
Roger Dingledine 936d2bb505 fix the next subtle memory-crunching bug
now hup works


svn:r2696
2004-11-06 08:55:22 +00:00
Roger Dingledine e13df6ec20 fix subtle bug that was causing logs to not show anything
svn:r2695
2004-11-06 07:40:20 +00:00
Roger Dingledine ddab44438d only play the accounting game if it's possible you'll choose to hibernate
svn:r2694
2004-11-06 06:56:28 +00:00
Roger Dingledine 45685c3cb7 parse_line_from_file is obsolete.
svn:r2693
2004-11-06 05:18:29 +00:00
Roger Dingledine 27b956f8c5 Make options no longer a global variable.
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-06 05:18:11 +00:00
Nick Mathewson 291a900d05 Update log documentation
svn:r2691
2004-11-05 21:22:38 +00:00
Nick Mathewson becae33132 Mark items completed; clarify items; remove dups
svn:r2690
2004-11-05 18:32:39 +00:00
Nick Mathewson ea77306e9c Write hibernation code. Needs docs and tests.
svn:r2689
2004-11-05 17:55:34 +00:00
Nick Mathewson 132c0142e2 Unify tor_parse_(numeric); make sure MAX_UINT32 and MAX_UINT64 are defined
svn:r2688
2004-11-05 17:54:50 +00:00
Roger Dingledine 155253c5d5 clarify it even better
svn:r2687
2004-11-05 11:58:34 +00:00
Roger Dingledine 74281b884e resolve misleading torrc comments
svn:r2686
2004-11-05 11:55:35 +00:00
Nick Mathewson 9c45a3bd58 Note item status from meeting
svn:r2685
2004-11-05 05:51:13 +00:00
Nick Mathewson 2ac7dc39e5 Use new log format; convert old format to new format.
svn:r2684
2004-11-05 05:50:35 +00:00
Roger Dingledine 2c296377c8 make the default default options.FirewallPorts be the default
svn:r2683
2004-11-04 23:39:57 +00:00
Nick Mathewson 205142d375 Finish applying jbash patch to Makefile.am; make dist-rpm work again
svn:r2682
2004-11-04 22:46:38 +00:00
Nick Mathewson dc1474c747 Twiddle header order to compile on OS X again
svn:r2681
2004-11-04 22:33:20 +00:00
Nick Mathewson 27c91b11ef Move accounting code into hibernate; start adding logic to track bandwidth-per-seconds-active
svn:r2680
2004-11-04 22:33:06 +00:00
Nick Mathewson 29eb0eae8a Support code for resettable options, and option sets. Still needs validate-and-then-replace logic
svn:r2679
2004-11-04 22:31:50 +00:00
Nick Mathewson de9e161a72 Make sure control command bodies are always followed by a NUL
svn:r2678
2004-11-04 22:30:49 +00:00
Nick Mathewson 782a09e255 Adjust GETCONFIG/SETCONFIG specification in control-spec
svn:r2677
2004-11-04 22:30:14 +00:00
Nick Mathewson 0068a37fe8 Add code to read configuration lines from a string as well as a file
svn:r2676
2004-11-04 22:29:45 +00:00
Nick Mathewson 288aeb4811 fix problems introduced by rpm spec patch.
svn:r2675
2004-11-04 15:34:04 +00:00
Nick Mathewson 853f6156a1 Merge RPM spec patch from jbash
svn:r2674
2004-11-04 15:17:22 +00:00
Roger Dingledine 4659c07048 break out validate_options
leave options.FirewallPorts NULL if it's NULL


svn:r2673
2004-11-04 10:23:30 +00:00
Roger Dingledine 4ef648fcd7 make free_options() and init_options() use the big array.
also remove obsolete config_assign_defaults().


svn:r2672
2004-11-04 08:26:34 +00:00
Roger Dingledine 8b59f03e59 add a ControlPort and control listener conn.
note that print_usage is obsolete.


svn:r2671
2004-11-04 06:41:49 +00:00
Nick Mathewson 8efd03e52f Fix windows build
svn:r2670
2004-11-04 04:01:19 +00:00
Roger Dingledine 8892301223 clarify the bandwidthburst and bandwidthrate are in bytes
(niels had thought they were in bits, or kb, or something)


svn:r2669
2004-11-04 03:25:43 +00:00
Roger Dingledine 36f74ed7d9 better interface for connection_ap_handshake_socks_reply()
make --list-fingerprint print the fingerprint again


svn:r2668
2004-11-03 23:13:28 +00:00
Nick Mathewson 005813a7b8 fix windows warnings
svn:r2667
2004-11-03 21:53:54 +00:00
Nick Mathewson f63e5f075c fix typos
svn:r2666
2004-11-03 21:53:12 +00:00
Nick Mathewson 24047d3cc2 Update control-spec.txt; some minor changes; more thoughts on authentication
svn:r2665
2004-11-03 19:57:43 +00:00
Nick Mathewson 84b2b49748 Implement two flavors of authentication for control connections: one for trusted FS, one for untrusted FS.
svn:r2664
2004-11-03 19:49:03 +00:00
Nick Mathewson 8fba4c72bd Remove extraneous local
svn:r2663
2004-11-03 19:15:38 +00:00
Nick Mathewson e6cc8da12f Add a write_bytes_to_file so we can have files with NULs in them.
svn:r2662
2004-11-03 19:02:48 +00:00
Nick Mathewson 2ab3425de4 - Implement all of control interface except authentication, setconfig,
and actually making the sockets.
- Make sure that identity-based nicknames start with $.
- Use new string_join interface.


svn:r2661
2004-11-03 18:33:07 +00:00
Nick Mathewson a6478be374 Add function to generate/copy the config_lines, given the name of an option
svn:r2660
2004-11-03 18:29:29 +00:00
Nick Mathewson 14df958a2d Add a slightly trickier string-join interface for making NUL-terminated string messages
svn:r2659
2004-11-03 18:28:00 +00:00