]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
21 years agoadd a ControlPort and control listener conn.
Roger Dingledine [Thu, 4 Nov 2004 06:41:49 +0000 (06:41 +0000)] 
add a ControlPort and control listener conn.
note that print_usage is obsolete.

svn:r2671

21 years agoFix windows build
Nick Mathewson [Thu, 4 Nov 2004 04:01:19 +0000 (04:01 +0000)] 
Fix windows build

svn:r2670

21 years agoclarify the bandwidthburst and bandwidthrate are in bytes
Roger Dingledine [Thu, 4 Nov 2004 03:25:43 +0000 (03:25 +0000)] 
clarify the bandwidthburst and bandwidthrate are in bytes
(niels had thought they were in bits, or kb, or something)

svn:r2669

21 years agobetter interface for connection_ap_handshake_socks_reply()
Roger Dingledine [Wed, 3 Nov 2004 23:13:28 +0000 (23:13 +0000)] 
better interface for connection_ap_handshake_socks_reply()
make --list-fingerprint print the fingerprint again

svn:r2668

21 years agofix windows warnings
Nick Mathewson [Wed, 3 Nov 2004 21:53:54 +0000 (21:53 +0000)] 
fix windows warnings

svn:r2667

21 years agofix typos
Nick Mathewson [Wed, 3 Nov 2004 21:53:12 +0000 (21:53 +0000)] 
fix typos

svn:r2666

21 years agoUpdate control-spec.txt; some minor changes; more thoughts on authentication
Nick Mathewson [Wed, 3 Nov 2004 19:57:43 +0000 (19:57 +0000)] 
Update control-spec.txt; some minor changes; more thoughts on authentication

svn:r2665

21 years agoImplement two flavors of authentication for control connections: one for trusted...
Nick Mathewson [Wed, 3 Nov 2004 19:49:03 +0000 (19:49 +0000)] 
Implement two flavors of authentication for control connections: one for trusted FS, one for untrusted FS.

svn:r2664

21 years agoRemove extraneous local
Nick Mathewson [Wed, 3 Nov 2004 19:15:38 +0000 (19:15 +0000)] 
Remove extraneous local

svn:r2663

21 years agoAdd a write_bytes_to_file so we can have files with NULs in them.
Nick Mathewson [Wed, 3 Nov 2004 19:02:48 +0000 (19:02 +0000)] 
Add a write_bytes_to_file so we can have files with NULs in them.

svn:r2662

21 years ago- Implement all of control interface except authentication, setconfig,
Nick Mathewson [Wed, 3 Nov 2004 18:33:07 +0000 (18:33 +0000)] 
- 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

21 years agoAdd function to generate/copy the config_lines, given the name of an option
Nick Mathewson [Wed, 3 Nov 2004 18:29:29 +0000 (18:29 +0000)] 
Add function to generate/copy the config_lines, given the name of an option

svn:r2660

21 years agoAdd a slightly trickier string-join interface for making NUL-terminated string messages
Nick Mathewson [Wed, 3 Nov 2004 18:28:00 +0000 (18:28 +0000)] 
Add a slightly trickier string-join interface for making NUL-terminated string messages

svn:r2659

21 years agoAdd a callback log handler type
Nick Mathewson [Wed, 3 Nov 2004 18:27:19 +0000 (18:27 +0000)] 
Add a callback log handler type

svn:r2658

21 years agoStreamline the two redundant "Has the second rolled over?" checks in prepare_for_poll...
Nick Mathewson [Wed, 3 Nov 2004 16:38:04 +0000 (16:38 +0000)] 
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

21 years agoconnection_read_bucket_decrement() has a side-effect that
Roger Dingledine [Wed, 3 Nov 2004 10:18:31 +0000 (10:18 +0000)] 
connection_read_bucket_decrement() has a side-effect that
we need to get even if we just read 0 bytes

svn:r2656

21 years agolay the groundwork for a default value for each config option.
Roger Dingledine [Wed, 3 Nov 2004 10:08:44 +0000 (10:08 +0000)] 
lay the groundwork for a default value for each config option.
tolerate null exitnodes, entrynodes, etc config options.

svn:r2655

21 years agomy gcc has never heard of -Wendif-labels
Roger Dingledine [Wed, 3 Nov 2004 07:29:44 +0000 (07:29 +0000)] 
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

21 years agomy assert.h takes extra pains to be certain to _re-include_
Roger Dingledine [Wed, 3 Nov 2004 07:29:03 +0000 (07:29 +0000)] 
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

21 years agoStart implementing control interface.
Nick Mathewson [Wed, 3 Nov 2004 01:32:26 +0000 (01:32 +0000)] 
Start implementing control interface.

svn:r2652

21 years agoFix another typo
Nick Mathewson [Wed, 3 Nov 2004 01:31:42 +0000 (01:31 +0000)] 
Fix another typo

svn:r2651

21 years agoThe spelling is "d-e-f-i-n-e".
Nick Mathewson [Wed, 3 Nov 2004 00:02:17 +0000 (00:02 +0000)] 
The spelling is "d-e-f-i-n-e".

svn:r2650

21 years agoFirst attempt at hibernation code. It needs more work around the XXXXs, but first...
Nick Mathewson [Tue, 2 Nov 2004 23:47:32 +0000 (23:47 +0000)] 
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

21 years agoAdd compatibility macros for printf and scanf-ing 64-bit unsigned ints
Nick Mathewson [Tue, 2 Nov 2004 22:14:34 +0000 (22:14 +0000)] 
Add compatibility macros for printf and scanf-ing 64-bit unsigned ints

svn:r2648

21 years agoHandle strlcat/strlcpy correctly on platforms that have them.
Nick Mathewson [Tue, 2 Nov 2004 19:25:52 +0000 (19:25 +0000)] 
Handle strlcat/strlcpy correctly on platforms that have them.

svn:r2647

21 years agountabify. This should hold it.
Nick Mathewson [Tue, 2 Nov 2004 03:11:01 +0000 (03:11 +0000)] 
untabify.  This should hold it.

svn:r2646

21 years agoUse a stricter set of warnings; make them all pass.
Nick Mathewson [Tue, 2 Nov 2004 03:02:17 +0000 (03:02 +0000)] 
Use a stricter set of warnings; make them all pass.

svn:r2645

21 years agocanonicalize "src" and "dest" arg order in crypto.c (and others)
Roger Dingledine [Tue, 2 Nov 2004 02:28:51 +0000 (02:28 +0000)] 
canonicalize "src" and "dest" arg order in crypto.c (and others)

svn:r2644

21 years agoFix signed/unsigned comparison warning
Nick Mathewson [Mon, 1 Nov 2004 22:41:32 +0000 (22:41 +0000)] 
Fix signed/unsigned comparison warning

svn:r2643

21 years agoutil.c needs ctype.h for tolower and isspace
Roger Dingledine [Mon, 1 Nov 2004 21:54:12 +0000 (21:54 +0000)] 
util.c needs ctype.h for tolower and isspace

svn:r2642

21 years agoHidden service operators had a bug in version 1 style INTRODUCE cells
Roger Dingledine [Mon, 1 Nov 2004 21:46:27 +0000 (21:46 +0000)] 
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

21 years agoSplit util into util (general utilities), container (smartlist and strmap), and compa...
Nick Mathewson [Mon, 1 Nov 2004 20:41:47 +0000 (20:41 +0000)] 
Split util into util (general utilities), container (smartlist and strmap), and compat (cross-platform compatability).

svn:r2640

21 years agomake the tarball build
Roger Dingledine [Mon, 1 Nov 2004 20:01:01 +0000 (20:01 +0000)] 
make the tarball build

svn:r2639

21 years agomake sure options.MaxConn can be reached
Roger Dingledine [Mon, 1 Nov 2004 08:24:34 +0000 (08:24 +0000)] 
make sure options.MaxConn can be reached

svn:r2638

21 years agohunt for getrlimit setrlimit sys/time.h sys/resource.h
Roger Dingledine [Mon, 1 Nov 2004 08:23:45 +0000 (08:23 +0000)] 
hunt for getrlimit setrlimit sys/time.h sys/resource.h

svn:r2637

21 years agochange min required number of fd's to 1024
Roger Dingledine [Mon, 1 Nov 2004 08:09:59 +0000 (08:09 +0000)] 
change min required number of fd's to 1024

svn:r2636

21 years agomake our autogen.sh work on ksh as well as bash
Roger Dingledine [Mon, 1 Nov 2004 06:40:49 +0000 (06:40 +0000)] 
make our autogen.sh work on ksh as well as bash

svn:r2635

21 years agoclean up confusing instruction
Roger Dingledine [Sun, 31 Oct 2004 21:19:28 +0000 (21:19 +0000)] 
clean up confusing instruction

svn:r2634

21 years agofix 'make dist' so it works again
Roger Dingledine [Sun, 31 Oct 2004 21:16:09 +0000 (21:16 +0000)] 
fix 'make dist' so it works again

svn:r2633

21 years agostop trying to maintain two separate doc sections
Roger Dingledine [Sun, 31 Oct 2004 21:15:16 +0000 (21:15 +0000)] 
stop trying to maintain two separate doc sections
now README points to tor-doc.html

svn:r2632

21 years agooh, and add the actual file too
Roger Dingledine [Sun, 31 Oct 2004 20:29:25 +0000 (20:29 +0000)] 
oh, and add the actual file too

svn:r2631

21 years agoimplement first piece of hibernation
Roger Dingledine [Sun, 31 Oct 2004 20:28:41 +0000 (20:28 +0000)] 
implement first piece of hibernation
still need to track bandwidth, and make decisions based on bandwidth

svn:r2630

21 years agoOnly tor and test binaries need to link against openssl and zlib; tor-resolve can...
Nick Mathewson [Sat, 30 Oct 2004 19:27:06 +0000 (19:27 +0000)] 
Only tor and test binaries need to link against openssl and zlib; tor-resolve can be smaller.

svn:r2629

21 years agoMove all util functions that need openssl into crypto.c; make non-openssl functions...
Nick Mathewson [Sat, 30 Oct 2004 19:26:31 +0000 (19:26 +0000)] 
Move all util functions that need openssl into crypto.c; make non-openssl functions that util needs into util.  Now openssl can be separated.

svn:r2628

21 years agotor --list-fingerprint to print fingerprint and exit
Nick Mathewson [Sat, 30 Oct 2004 19:18:37 +0000 (19:18 +0000)] 
tor --list-fingerprint to print fingerprint and exit

svn:r2627

21 years agoadd a note to the doc telling openbsd folks that their fd limit is
Roger Dingledine [Sat, 30 Oct 2004 19:00:29 +0000 (19:00 +0000)] 
add a note to the doc telling openbsd folks that their fd limit is
too low

svn:r2626

21 years agoAdd TODO item: gripe early when fd limits are low, rather than blowing up when we...
Nick Mathewson [Sat, 30 Oct 2004 18:54:31 +0000 (18:54 +0000)] 
Add TODO item: gripe early when fd limits are low, rather than blowing up when we run out

svn:r2625

21 years agoFix paul gardner's assert bug. Turns out when circuit_launch_by_nickname()
Roger Dingledine [Sat, 30 Oct 2004 05:04:52 +0000 (05:04 +0000)] 
Fix paul gardner's assert bug. Turns out when circuit_launch_by_nickname()
failed at the first hop, it would try to relaunch another circ right
then, even though the first circuit hadn't been populated yet with its
pending_final_cpath.

svn:r2624

21 years agoLink tools directory into rest of build system
Nick Mathewson [Thu, 28 Oct 2004 20:31:15 +0000 (20:31 +0000)] 
Link tools directory into rest of build system

svn:r2623

21 years agoNote item completion
Nick Mathewson [Thu, 28 Oct 2004 20:30:56 +0000 (20:30 +0000)] 
Note item completion

svn:r2622

21 years agoRename Python tor-resolve to tor-resolve.py; stop installing it; move tor-resolve...
Nick Mathewson [Thu, 28 Oct 2004 20:30:10 +0000 (20:30 +0000)] 
Rename Python tor-resolve to tor-resolve.py; stop installing it; move tor-resolve manpage to doc directory

svn:r2621

21 years agoAdd a pure-C tor-resolve implementation
Nick Mathewson [Thu, 28 Oct 2004 20:28:13 +0000 (20:28 +0000)] 
Add a pure-C tor-resolve implementation

svn:r2620

21 years agoMark item completed
Nick Mathewson [Thu, 28 Oct 2004 18:40:21 +0000 (18:40 +0000)] 
Mark item completed

svn:r2619

21 years agoTweaks to prevent obsolete restarting tors from hammering the dirservers. (1) Cache...
Nick Mathewson [Thu, 28 Oct 2004 18:37:52 +0000 (18:37 +0000)] 
Tweaks to prevent obsolete restarting tors from hammering the dirservers. (1) Cache a received directory as soon as the signature checks out. (2) Treat a cached directory as "recent" based on its mtime. (3) If we have a recent directory, we dont need to fetch a newer one for DirFetchPostPeriod.  This needs review!

svn:r2618

21 years agoFix in warning fix
Nick Mathewson [Wed, 27 Oct 2004 21:54:44 +0000 (21:54 +0000)] 
Fix in warning fix

svn:r2617

21 years agoCheck return of tor_snprintf
Nick Mathewson [Wed, 27 Oct 2004 21:30:47 +0000 (21:30 +0000)] 
Check return of tor_snprintf

svn:r2616

21 years agoTricksy compiler warnings! We hates them, hates them forever, my precious!
Nick Mathewson [Wed, 27 Oct 2004 21:14:11 +0000 (21:14 +0000)] 
Tricksy compiler warnings! We hates them, hates them forever, my precious!

svn:r2615

21 years agoPass with -Wstrict-prototypes
Nick Mathewson [Wed, 27 Oct 2004 18:16:37 +0000 (18:16 +0000)] 
Pass with -Wstrict-prototypes

svn:r2614

21 years agoFix windows build
Nick Mathewson [Wed, 27 Oct 2004 18:14:38 +0000 (18:14 +0000)] 
Fix windows build

svn:r2613

21 years agoAdd ability for some-but-not-all abbrevs to work in config file. Add a bunch of...
Nick Mathewson [Wed, 27 Oct 2004 17:37:01 +0000 (17:37 +0000)] 
Add ability for some-but-not-all abbrevs to work in config file.  Add a bunch of singular/plural abbrevs suggested by arma

svn:r2612

21 years agostop freeing arbitrary memory
Roger Dingledine [Wed, 27 Oct 2004 12:34:02 +0000 (12:34 +0000)] 
stop freeing arbitrary memory
fix a couple of memory leaks

svn:r2611

21 years agoUse strlcpy, not strcpy.
Nick Mathewson [Wed, 27 Oct 2004 06:48:16 +0000 (06:48 +0000)] 
Use strlcpy, not strcpy.

svn:r2610

21 years agoUse tor_snprintf, not snprintf
Nick Mathewson [Wed, 27 Oct 2004 06:37:34 +0000 (06:37 +0000)] 
Use tor_snprintf, not snprintf

svn:r2609

21 years agoclean up todo file some more
Roger Dingledine [Wed, 27 Oct 2004 06:30:17 +0000 (06:30 +0000)] 
clean up todo file some more

svn:r2608

21 years agodocument dirpolicy config option
Roger Dingledine [Wed, 27 Oct 2004 06:29:11 +0000 (06:29 +0000)] 
document dirpolicy config option

svn:r2607

21 years agosnprintf wrapper with consistant (though not C99) overflow behavior
Nick Mathewson [Wed, 27 Oct 2004 06:26:23 +0000 (06:26 +0000)] 
snprintf wrapper with consistant (though not C99) overflow behavior

svn:r2606

21 years agoAvoid strcat; use snprintf or strlcat instead
Nick Mathewson [Wed, 27 Oct 2004 06:25:29 +0000 (06:25 +0000)] 
Avoid strcat; use snprintf or strlcat instead

svn:r2605

21 years agosetting up your own tor network is much simpler now
Roger Dingledine [Wed, 27 Oct 2004 06:24:16 +0000 (06:24 +0000)] 
setting up your own tor network is much simpler now

svn:r2604

21 years agoUse strlcpy, not strncpy
Nick Mathewson [Wed, 27 Oct 2004 06:03:28 +0000 (06:03 +0000)] 
Use strlcpy, not strncpy

svn:r2603

21 years agoReplace sprintf with snprintf
Nick Mathewson [Wed, 27 Oct 2004 05:53:07 +0000 (05:53 +0000)] 
Replace sprintf with snprintf

svn:r2602

21 years agoTenatively break items down for "launch" version
Nick Mathewson [Wed, 27 Oct 2004 05:34:57 +0000 (05:34 +0000)] 
Tenatively break items down for "launch" version

svn:r2601

21 years agoMake it compile on Linux
Nick Mathewson [Wed, 27 Oct 2004 03:42:09 +0000 (03:42 +0000)] 
Make it compile on Linux

svn:r2600

21 years agoAdd cvsignore in win32 directory
Nick Mathewson [Wed, 27 Oct 2004 03:38:42 +0000 (03:38 +0000)] 
Add cvsignore in win32 directory

svn:r2599

21 years agoClean TODO indentation
Nick Mathewson [Wed, 27 Oct 2004 03:14:54 +0000 (03:14 +0000)] 
Clean TODO indentation

svn:r2598

21 years agoMark item completed
Nick Mathewson [Wed, 27 Oct 2004 03:08:43 +0000 (03:08 +0000)] 
Mark item completed

svn:r2597

21 years agoDocument new config code
Nick Mathewson [Wed, 27 Oct 2004 03:08:04 +0000 (03:08 +0000)] 
Document new config code

svn:r2596

21 years agodocument configuration options with InitialCaps
Nick Mathewson [Wed, 27 Oct 2004 03:07:53 +0000 (03:07 +0000)] 
document configuration options with InitialCaps

svn:r2595

21 years agoRe-write configuration option lookup code: use a table, not a big if( || || || |...
Nick Mathewson [Wed, 27 Oct 2004 02:30:28 +0000 (02:30 +0000)] 
Re-write configuration option lookup code: use a table, not a big if( || || || ||).  Deprecate unoffical abbrevs and abbrevs not on the command line.

svn:r2594

21 years agoMark some items completed
Nick Mathewson [Wed, 27 Oct 2004 01:10:18 +0000 (01:10 +0000)] 
Mark some items completed

svn:r2593

21 years agoAdd and document router-status line using new unified liveness/verifiedness format...
Nick Mathewson [Wed, 27 Oct 2004 00:48:51 +0000 (00:48 +0000)] 
Add and document router-status line using new unified liveness/verifiedness format; continue to generate running-routers; continue to parse running-routers when no router-status line is found

svn:r2592

21 years agoAdd SysLog option to direct log messages to the system log instead of a FILE*.
Nick Mathewson [Tue, 26 Oct 2004 21:48:41 +0000 (21:48 +0000)] 
Add SysLog option to direct log messages to the system log instead of a FILE*.

svn:r2591

21 years agoAdd a couple of items to TODO
Nick Mathewson [Mon, 25 Oct 2004 21:29:27 +0000 (21:29 +0000)] 
Add a couple of items to TODO

svn:r2590

21 years agoquick-and-dirty dir policy since the dirservers are getting hammered
Roger Dingledine [Mon, 25 Oct 2004 06:16:26 +0000 (06:16 +0000)] 
quick-and-dirty dir policy since the dirservers are getting hammered
nick, could you abstract this sometime so we don't repeat the
sockspolicy code twice?

svn:r2589

21 years agoupdate the rendezvous spec to be less wrong (but still wrong)
Roger Dingledine [Sun, 24 Oct 2004 23:14:00 +0000 (23:14 +0000)] 
update the rendezvous spec to be less wrong (but still wrong)

svn:r2588

21 years agofix a memory leak
Roger Dingledine [Sun, 24 Oct 2004 23:09:48 +0000 (23:09 +0000)] 
fix a memory leak

svn:r2587

21 years agostart generating new version of introduce1 cells
Roger Dingledine [Sun, 24 Oct 2004 19:08:07 +0000 (19:08 +0000)] 
start generating new version of introduce1 cells

svn:r2586

21 years agofix wrong comment
Roger Dingledine [Sun, 24 Oct 2004 17:11:44 +0000 (17:11 +0000)] 
fix wrong comment

svn:r2585

21 years agoDocument the swiss-army-knife that retry_listeners has become
Nick Mathewson [Sun, 24 Oct 2004 01:50:33 +0000 (01:50 +0000)] 
Document the swiss-army-knife that retry_listeners has become

svn:r2584

21 years agoMany non-native speakers use Tor. It is our duty to ensure that our log messages...
Nick Mathewson [Sun, 24 Oct 2004 01:29:01 +0000 (01:29 +0000)] 
Many non-native speakers use Tor.  It is our duty to ensure that our log messages set an example of good English spelling.

svn:r2583

21 years agoMark item completed
Nick Mathewson [Sun, 24 Oct 2004 01:28:04 +0000 (01:28 +0000)] 
Mark item completed

svn:r2582

21 years agoEvery 60 seconds, check whether the listeners are still alive, and relaunch the dead...
Nick Mathewson [Sun, 24 Oct 2004 01:22:40 +0000 (01:22 +0000)] 
Every 60 seconds, check whether the listeners are still alive, and relaunch the dead ones.

svn:r2581

21 years agoFix typo in last windows patch
Nick Mathewson [Sun, 24 Oct 2004 00:58:29 +0000 (00:58 +0000)] 
Fix typo in last windows patch

svn:r2580

21 years agoHandle more errnos from accept() without closing the connection. This may fix a...
Nick Mathewson [Sun, 24 Oct 2004 00:55:18 +0000 (00:55 +0000)] 
Handle more errnos from accept() without closing the connection.  This may fix a bug that could close OR listeners when (a) TCP connections were hung up before accept() could be called, or (b) during FD exhaustion.

svn:r2579

21 years agoMake windows fall back to CWD if SHGetSpecialFolderLocation is borked
Nick Mathewson [Sun, 24 Oct 2004 00:52:10 +0000 (00:52 +0000)] 
Make windows fall back to CWD if SHGetSpecialFolderLocation is borked

svn:r2578

21 years agopay attention to the return value of do_hup, and exit
Roger Dingledine [Sat, 23 Oct 2004 17:06:25 +0000 (17:06 +0000)] 
pay attention to the return value of do_hup, and exit
when it fails

svn:r2577

21 years agoship src/win32/ in the tarball
Roger Dingledine [Thu, 21 Oct 2004 00:49:17 +0000 (00:49 +0000)] 
ship src/win32/ in the tarball

svn:r2576

21 years agoCheck for low _MSC_VER, not high. On windows, always use winsock.
Nick Mathewson [Wed, 20 Oct 2004 23:30:38 +0000 (23:30 +0000)] 
Check for low _MSC_VER, not high.  On windows, always use winsock.

svn:r2575

21 years agobump version to pre5-cvs
Roger Dingledine [Wed, 20 Oct 2004 23:28:11 +0000 (23:28 +0000)] 
bump version to pre5-cvs

svn:r2574

21 years agoadd winsock if you've got it, regardless of whether you're msv
Roger Dingledine [Wed, 20 Oct 2004 23:23:53 +0000 (23:23 +0000)] 
add winsock if you've got it, regardless of whether you're msv

svn:r2573

21 years agoUse bitwise masking to turn off bits, not compare-and-subtract
Nick Mathewson [Wed, 20 Oct 2004 23:15:49 +0000 (23:15 +0000)] 
Use bitwise masking to turn off bits, not compare-and-subtract

svn:r2572