Commit Graph

2571 Commits

Author SHA1 Message Date
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
Nick Mathewson 9414c14f91 Add a callback log handler type
svn:r2658
2004-11-03 18:27:19 +00:00
Nick Mathewson e1894adea4 Streamline the two redundant "Has the second rolled over?" checks in prepare_for_poll and connection_bucket_refill; also, generate BANDWIDTH control events
svn:r2657
2004-11-03 16:38:04 +00:00
Roger Dingledine 7ce29b02dc connection_read_bucket_decrement() has a side-effect that
we need to get even if we just read 0 bytes


svn:r2656
2004-11-03 10:18:31 +00:00
Roger Dingledine 80f87c09f6 lay the groundwork for a default value for each config option.
tolerate null exitnodes, entrynodes, etc config options.


svn:r2655
2004-11-03 10:08:44 +00:00
Roger Dingledine 1377b8f188 my gcc has never heard of -Wendif-labels
feel free to add it back in if you can make it only used by gcc's
that know about it


svn:r2654
2004-11-03 07:29:44 +00:00
Roger Dingledine 120c105523 my assert.h takes extra pains to be certain to _re-include_
itself if you include it twice. this is dumb, but hey.


svn:r2653
2004-11-03 07:29:03 +00:00
Nick Mathewson 790160cfeb Start implementing control interface.
svn:r2652
2004-11-03 01:32:26 +00:00
Nick Mathewson 7c0ae34bc7 Fix another typo
svn:r2651
2004-11-03 01:31:42 +00:00
Nick Mathewson 4568f7a365 The spelling is "d-e-f-i-n-e".
svn:r2650
2004-11-03 00:02:17 +00:00
Nick Mathewson d113c801d0 First attempt at hibernation code. It needs more work around the XXXXs, but first I want arma to review the basic approach while I meditate on how to fix them.
svn:r2649
2004-11-02 23:47:32 +00:00
Nick Mathewson 083e9101ed Add compatibility macros for printf and scanf-ing 64-bit unsigned ints
svn:r2648
2004-11-02 22:14:34 +00:00
Nick Mathewson 373e07dafe Handle strlcat/strlcpy correctly on platforms that have them.
svn:r2647
2004-11-02 19:25:52 +00:00
Nick Mathewson 4f15a89a0d untabify. This should hold it.
svn:r2646
2004-11-02 03:11:01 +00:00
Nick Mathewson b128126620 Use a stricter set of warnings; make them all pass.
svn:r2645
2004-11-02 03:02:17 +00:00
Roger Dingledine 08de314fd1 canonicalize "src" and "dest" arg order in crypto.c (and others)
svn:r2644
2004-11-02 02:28:51 +00:00
Nick Mathewson 3dcce9e88a Fix signed/unsigned comparison warning
svn:r2643
2004-11-01 22:41:32 +00:00
Roger Dingledine 30c9ca5dfb util.c needs ctype.h for tolower and isspace
svn:r2642
2004-11-01 21:54:12 +00:00
Roger Dingledine 5078dc6e00 Hidden service operators had a bug in version 1 style INTRODUCE cells
that made them fail. Fix the bug, and revert clients to use version 0
until 0.0.9pre4 is obsolete.


svn:r2641
2004-11-01 21:46:27 +00:00
Nick Mathewson ee4f2a39b7 Split util into util (general utilities), container (smartlist and strmap), and compat (cross-platform compatability).
svn:r2640
2004-11-01 20:41:47 +00:00
Roger Dingledine 274fd4705c make the tarball build
svn:r2639
2004-11-01 20:01:01 +00:00
Roger Dingledine 6e310f60c0 make sure options.MaxConn can be reached
svn:r2638
2004-11-01 08:24:34 +00:00
Roger Dingledine 801433f71a hunt for getrlimit setrlimit sys/time.h sys/resource.h
svn:r2637
2004-11-01 08:23:45 +00:00
Roger Dingledine fa35951951 change min required number of fd's to 1024
svn:r2636
2004-11-01 08:09:59 +00:00
Roger Dingledine 3d63131ab7 make our autogen.sh work on ksh as well as bash
svn:r2635
2004-11-01 06:40:49 +00:00
Roger Dingledine baa590ff74 clean up confusing instruction
svn:r2634
2004-10-31 21:19:28 +00:00
Roger Dingledine c40da3d3ed fix 'make dist' so it works again
svn:r2633
2004-10-31 21:16:09 +00:00