]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
14 years agoAdd a sha256 hmac function, with tests
Nick Mathewson [Tue, 13 Sep 2011 15:38:13 +0000 (11:38 -0400)] 
Add a sha256 hmac function, with tests

14 years agoTurn X509 certificates into a first-class type and add some functions
Nick Mathewson [Tue, 13 Sep 2011 15:37:15 +0000 (11:37 -0400)] 
Turn X509 certificates into a first-class type and add some functions

14 years agoNew function to get all digests of a public key
Nick Mathewson [Tue, 13 Sep 2011 18:32:51 +0000 (14:32 -0400)] 
New function to get all digests of a public key

14 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Tue, 11 Oct 2011 02:50:52 +0000 (22:50 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

14 years agoMerge remote-tracking branch 'sebastian/osxcompile'
Nick Mathewson [Tue, 11 Oct 2011 02:03:20 +0000 (22:03 -0400)] 
Merge remote-tracking branch 'sebastian/osxcompile'

14 years agoConsider hibernation before dropping privs
Sebastian Hahn [Tue, 11 Oct 2011 00:40:06 +0000 (02:40 +0200)] 
Consider hibernation before dropping privs

Without this patch, Tor wasn't sure whether it would be hibernating or
not, so it postponed opening listeners until after the privs had been
dropped. This doesn't work so well for low ports. Bug was introduced in
the fix for bug 2003. Fixes bug 4217, reported by Zax and katmagic.
Thanks!

14 years agoFix a compile warning on OS X 10.6 and up
Sebastian Hahn [Tue, 11 Oct 2011 00:25:00 +0000 (02:25 +0200)] 
Fix a compile warning on OS X 10.6 and up

14 years agoAdd a missing comma in tor_check_port_forwarding
Nick Mathewson [Mon, 10 Oct 2011 15:42:05 +0000 (11:42 -0400)] 
Add a missing comma in tor_check_port_forwarding

My fault; fix for bug 4213.

14 years agoUpdate documentation comment for rend_client_reextend_intro_circuit
Robert Ransom [Mon, 10 Oct 2011 12:33:53 +0000 (05:33 -0700)] 
Update documentation comment for rend_client_reextend_intro_circuit

One of its callers assumes a non-zero result indicates a permanent failure
(i.e. the current attempt to connect to this HS either has failed or is
 doomed).  The other caller only requires that this function's result
never equal -2.

Bug reported by Sebastian Hahn.

14 years agoDon't launch a useless circuit in rend_client_reextend_intro_circuit
Robert Ransom [Mon, 10 Oct 2011 03:24:27 +0000 (20:24 -0700)] 
Don't launch a useless circuit in rend_client_reextend_intro_circuit

Fixes bug 4212.  Bug reported by katmagic and found by Sebastian.

14 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Fri, 7 Oct 2011 20:49:52 +0000 (16:49 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

This merge is here to take a commit (feature 3951) that we already
have in master, so use "merge -s ours"

14 years agoNote ticket and source version for feature3951 in changes file
Nick Mathewson [Fri, 7 Oct 2011 20:47:43 +0000 (16:47 -0400)] 
Note ticket and source version for feature3951 in changes file

14 years agoMerge remote-tracking branch 'karsten/feature3951' into maint-0.2.2
Nick Mathewson [Fri, 7 Oct 2011 20:46:50 +0000 (16:46 -0400)] 
Merge remote-tracking branch 'karsten/feature3951' into maint-0.2.2

14 years agoMerge remote-tracking branch 'public/bug2003_nm'
Nick Mathewson [Fri, 7 Oct 2011 20:43:45 +0000 (16:43 -0400)] 
Merge remote-tracking branch 'public/bug2003_nm'

14 years agoreinstate a notice for the non-loopback socksport case
Nick Mathewson [Fri, 7 Oct 2011 20:34:21 +0000 (16:34 -0400)] 
reinstate a notice for the non-loopback socksport case

Thanks to prop171, it's no longer a crazy thing to do, but you should
make sure that you really meant it!

14 years agoMerge remote-tracking branch 'rransom-tor/bug4018'
Nick Mathewson [Fri, 7 Oct 2011 20:32:04 +0000 (16:32 -0400)] 
Merge remote-tracking branch 'rransom-tor/bug4018'

14 years agoMerge remote-tracking branch 'public/bug2430'
Nick Mathewson [Fri, 7 Oct 2011 20:28:32 +0000 (16:28 -0400)] 
Merge remote-tracking branch 'public/bug2430'

14 years agoMerge remote-tracking branch 'asn2/bug3656'
Nick Mathewson [Fri, 7 Oct 2011 20:05:13 +0000 (16:05 -0400)] 
Merge remote-tracking branch 'asn2/bug3656'

Conflicts:
src/common/util.c
src/common/util.h
src/or/config.h
src/or/main.c
src/test/test_util.c

14 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Fri, 7 Oct 2011 16:20:08 +0000 (12:20 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

14 years agoAvoid running DNS self-tests if we're operating as a bridge
warms0x [Fri, 7 Oct 2011 07:04:29 +0000 (07:04 +0000)] 
Avoid running DNS self-tests if we're operating as a bridge

14 years agoRevive our beautiful unit tests.
George Kadianakis [Fri, 7 Oct 2011 13:44:58 +0000 (15:44 +0200)] 
Revive our beautiful unit tests.

They broke when the PT_PROTO_INFANT proxy state was added.

14 years agoMake it compile on Windows™.
George Kadianakis [Fri, 7 Oct 2011 13:44:44 +0000 (15:44 +0200)] 
Make it compile on Windows™.

14 years agoSupport multiple transports in a single transport line.
George Kadianakis [Fri, 7 Oct 2011 12:13:41 +0000 (14:13 +0200)] 
Support multiple transports in a single transport line.

Support multiple comma-separated transpotrs in a single
{Client,Server}TransportPlugin line.

14 years agoTurn on directory request statistics by default.
Karsten Loesing [Tue, 9 Nov 2010 13:18:00 +0000 (14:18 +0100)] 
Turn on directory request statistics by default.

Change the default values for collecting directory request statistics and
inlcuding them in extra-info descriptors to 1.

Don't break if we are configured to collect directory request or entry
statistics and don't have a GeoIP database. Instead, print out a notice
and skip initializing the affected statistics code.

This is the cherry-picked 499661524b0a572303087af721325608dd91f7ce.

14 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Mon, 3 Oct 2011 19:19:00 +0000 (15:19 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

14 years agoFix compilation of 3335 and 3825 fixes
Nick Mathewson [Mon, 3 Oct 2011 19:13:38 +0000 (15:13 -0400)] 
Fix compilation of 3335 and 3825 fixes

In master, they ran into problems with the edge_conn/entry_conn split.

14 years agoMerge remote-tracking branch 'rransom-tor/bug3335-v2'
Nick Mathewson [Mon, 3 Oct 2011 19:06:07 +0000 (15:06 -0400)] 
Merge remote-tracking branch 'rransom-tor/bug3335-v2'

Conflicts:
src/or/connection_edge.c
src/or/rendclient.c

14 years agoAdd changes file for bug 4094
Nick Mathewson [Mon, 3 Oct 2011 16:58:07 +0000 (12:58 -0400)] 
Add changes file for bug 4094

14 years agoRephrase the log messages emitted if the TestSocks check is positive
Fabian Keil [Wed, 28 Sep 2011 16:00:59 +0000 (18:00 +0200)] 
Rephrase the log messages emitted if the TestSocks check is positive

Previously Tor would always claim to have been given a hostname
by the client, while actually only verifying that the client
is using SOCKS4A or SOCKS5 with hostnames. Both protocol versions
allow IP addresses, too, in which case the log messages were wrong.

Fixes #4094.

14 years agoRemove an HS's last_hid_serv_requests entries when a conn. attempt ends
Robert Ransom [Tue, 20 Sep 2011 11:26:09 +0000 (04:26 -0700)] 
Remove an HS's last_hid_serv_requests entries when a conn. attempt ends

14 years agoRecord the HS's address in last_hid_serv_request keys
Robert Ransom [Tue, 20 Sep 2011 10:50:45 +0000 (03:50 -0700)] 
Record the HS's address in last_hid_serv_request keys

14 years agoFix comment typo
Robert Ransom [Tue, 20 Sep 2011 10:42:40 +0000 (03:42 -0700)] 
Fix comment typo

14 years agoDetect and remove unreachable intro points
Robert Ransom [Sat, 17 Sep 2011 10:53:07 +0000 (03:53 -0700)] 
Detect and remove unreachable intro points

14 years agoClear the timed_out flag when an HS connection attempt ends
Robert Ransom [Sat, 17 Sep 2011 10:23:26 +0000 (03:23 -0700)] 
Clear the timed_out flag when an HS connection attempt ends

14 years agoRecord intro point timeouts in rend_intro_point_t
Robert Ransom [Sat, 17 Sep 2011 10:19:29 +0000 (03:19 -0700)] 
Record intro point timeouts in rend_intro_point_t

14 years agoRefetch an HS's desc if we don't have a usable one
Robert Ransom [Thu, 29 Sep 2011 03:00:24 +0000 (20:00 -0700)] 
Refetch an HS's desc if we don't have a usable one

Previously, we wouldn't refetch an HS's descriptor unless we didn't
have one at all.  That was equivalent to refetching iff we didn't have
a usable one, but the next commit will make us keep some non-usable HS
descriptors around in our cache.

Code bugfix on the release that introduced the v2 HS directory system,
because rend_client_refetch_v2_renddesc's documentation comment should
have described what it actually did, not what its behaviour happened
to be equivalent to; no behaviour change in this commit.

14 years agoLooks like Windows version 6.2 will be Windows 8
Sebastian Hahn [Sat, 1 Oct 2011 12:44:39 +0000 (14:44 +0200)] 
Looks like Windows version 6.2 will be Windows 8

Thanks to funkstar for the report

14 years agobump to 0.2.3.5-alpha tor-0.2.3.5-alpha
Roger Dingledine [Wed, 28 Sep 2011 22:25:16 +0000 (18:25 -0400)] 
bump to 0.2.3.5-alpha

14 years agogive 0.2.3.5-alpha a blurb
Roger Dingledine [Wed, 28 Sep 2011 22:25:09 +0000 (18:25 -0400)] 
give 0.2.3.5-alpha a blurb

14 years agofix default for TokenBucketRefillInterval in man page
Roger Dingledine [Wed, 28 Sep 2011 22:23:17 +0000 (18:23 -0400)] 
fix default for TokenBucketRefillInterval in man page

14 years agofold in recent changes entries
Roger Dingledine [Wed, 28 Sep 2011 19:41:29 +0000 (15:41 -0400)] 
fold in recent changes entries

14 years agorefill our token buckets 10 times/sec, not 100
Roger Dingledine [Wed, 28 Sep 2011 19:38:36 +0000 (15:38 -0400)] 
refill our token buckets 10 times/sec, not 100

refilling often is good, but refilling often has unclear side effects
on a) cpu load, and b) making sure every cell, ever, is sent out one at
a time

14 years agoMerge branch 'maint-0.2.2'
Roger Dingledine [Wed, 28 Sep 2011 19:38:02 +0000 (15:38 -0400)] 
Merge branch 'maint-0.2.2'

14 years agobridges should use create_fast cells for their own circuits
Roger Dingledine [Wed, 28 Sep 2011 19:35:27 +0000 (15:35 -0400)] 
bridges should use create_fast cells for their own circuits

fixes bug 4124, as noticed in bug 4115

14 years agoMerge branch 'maint-0.2.2'
Roger Dingledine [Wed, 28 Sep 2011 19:13:05 +0000 (15:13 -0400)] 
Merge branch 'maint-0.2.2'

14 years agostart preparing the 0.2.3.5-alpha changelog
Roger Dingledine [Wed, 28 Sep 2011 19:12:16 +0000 (15:12 -0400)] 
start preparing the 0.2.3.5-alpha changelog

14 years agobug 4115: make bridges use begindir for their dir fetches
Roger Dingledine [Wed, 28 Sep 2011 18:50:43 +0000 (14:50 -0400)] 
bug 4115: make bridges use begindir for their dir fetches

removes another avenue for enumerating bridges.

14 years agoMake sure the microdesc cache is loaded before setting a v3 md consensus
Nick Mathewson [Wed, 28 Sep 2011 18:14:31 +0000 (14:14 -0400)] 
Make sure the microdesc cache is loaded before setting a v3 md consensus

Otherwise, we can wind up munging our reference counts if we set it in
the middle of loading the nodes.  This happens because
nodelist_set_consensus() and microdesc_reload_cache() are both in the
business of adjusting microdescriptors' references.

14 years agoAdd some debugging code to microdesc.[ch]
Nick Mathewson [Wed, 28 Sep 2011 18:13:49 +0000 (14:13 -0400)] 
Add some debugging code to microdesc.[ch]

14 years agoFix a crash bug in tor_assert(md->held_by_node)
Nick Mathewson [Wed, 28 Sep 2011 17:29:01 +0000 (13:29 -0400)] 
Fix a crash bug in tor_assert(md->held_by_node)

The fix is to turn held_by_node into a reference count.

Fixes bug 4118; bugfix on 0.2.3.1-alpha.

14 years agoif we have enough usable guards, just pick one
Roger Dingledine [Tue, 27 Sep 2011 21:35:31 +0000 (17:35 -0400)] 
if we have enough usable guards, just pick one

we don't need to check whether we don't have enough guards right after
concluding that we do have enough.

slight efficiency fix suggested by an anonymous fellow on irc.

14 years agoMerge branch 'maint-0.2.2'
Roger Dingledine [Sun, 25 Sep 2011 02:47:53 +0000 (22:47 -0400)] 
Merge branch 'maint-0.2.2'

14 years agotrivial whitespace changes, take two
Roger Dingledine [Sun, 25 Sep 2011 02:46:21 +0000 (22:46 -0400)] 
trivial whitespace changes, take two

14 years agoTrivial whitespace fixes
Nick Mathewson [Sun, 25 Sep 2011 02:15:59 +0000 (22:15 -0400)] 
Trivial whitespace fixes

14 years agoAdd a changes file for Tom Lowenthal's patch for #4063
Nick Mathewson [Sun, 25 Sep 2011 02:15:13 +0000 (22:15 -0400)] 
Add a changes file for Tom Lowenthal's patch for #4063

14 years agoTicket #4063 - change circuit build timeout log entries from NOTICE to INFO
Tom Lowenthal [Sat, 24 Sep 2011 22:34:32 +0000 (15:34 -0700)] 
Ticket #4063 - change circuit build timeout log entries from NOTICE to INFO

14 years agoImprove wording in some comments and log messages.
George Kadianakis [Fri, 23 Sep 2011 15:50:56 +0000 (17:50 +0200)] 
Improve wording in some comments and log messages.

14 years agoMerge branch 'feature3630-rebased'
Nick Mathewson [Thu, 22 Sep 2011 19:54:40 +0000 (15:54 -0400)] 
Merge branch 'feature3630-rebased'

14 years agoFix issues in 3630 patch noted by Karsten
Nick Mathewson [Thu, 22 Sep 2011 19:07:01 +0000 (15:07 -0400)] 
Fix issues in 3630 patch noted by Karsten

14 years agoChanges file for feature3630
Nick Mathewson [Thu, 8 Sep 2011 02:10:49 +0000 (22:10 -0400)] 
Changes file for feature3630

14 years agoMake bufferevents work with TokenBucketRefillInterval
Nick Mathewson [Thu, 8 Sep 2011 02:00:48 +0000 (22:00 -0400)] 
Make bufferevents work with TokenBucketRefillInterval

14 years agoRefactor connection_bucket_refill(_helper) to avoid roundoff
Nick Mathewson [Thu, 8 Sep 2011 01:22:02 +0000 (21:22 -0400)] 
Refactor connection_bucket_refill(_helper) to avoid roundoff

We were doing "divide bandwidth by 1000, then multiply by msec", but
that would lose accuracy: instead of getting your full bandwidth,
you'd lose up to 999 bytes per sec.  (Not a big deal, but every byte
helps.)

Instead, do the multiply first, then the division.  This can easily
overflow a 32-bit value, so make sure to do it as a 64-bit operation.

14 years agoMake documentation for TokenBucketRefillInterval match its behavior
Nick Mathewson [Thu, 8 Sep 2011 01:03:08 +0000 (21:03 -0400)] 
Make documentation for TokenBucketRefillInterval match its behavior

14 years agoMove around check for TokenBucketRefillInterval; disallow changes to it
Nick Mathewson [Thu, 8 Sep 2011 01:02:49 +0000 (21:02 -0400)] 
Move around check for TokenBucketRefillInterval; disallow changes to it

14 years agoNew torrc option to allow bucket refill intervals of less than 1 sec
Florian Tschorsch [Thu, 8 Sep 2011 00:21:53 +0000 (20:21 -0400)] 
New torrc option to allow bucket refill intervals of less than 1 sec

Implements bug3630.

14 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Tue, 20 Sep 2011 14:25:56 +0000 (10:25 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

14 years agochanges file for bug 4059
Nick Mathewson [Tue, 20 Sep 2011 13:56:26 +0000 (09:56 -0400)] 
changes file for bug 4059

14 years agoFix a potentially useless integer overflow check.
Mansour Moufid [Tue, 20 Sep 2011 01:25:23 +0000 (21:25 -0400)] 
Fix a potentially useless integer overflow check.

GCC 4.2 and maybe other compilers optimize away unsigned integer
overflow checks of the form (foo + bar < foo), for all bar.

Fix one such check in `src/common/OpenBSD_malloc_Linux.c'.

14 years agoMerge branch 'maint-0.2.2'
Roger Dingledine [Thu, 15 Sep 2011 20:35:26 +0000 (16:35 -0400)] 
Merge branch 'maint-0.2.2'

14 years agoMerge branch 'maint-0.2.1' into maint-0.2.2
Roger Dingledine [Thu, 15 Sep 2011 20:34:47 +0000 (16:34 -0400)] 
Merge branch 'maint-0.2.1' into maint-0.2.2

14 years agoUpdate to the September 2011 GeoIP database.
Karsten Loesing [Mon, 12 Sep 2011 09:40:26 +0000 (11:40 +0200)] 
Update to the September 2011 GeoIP database.

14 years agoLog errno on listener socket creation failure.
Nick Mathewson [Thu, 15 Sep 2011 13:51:48 +0000 (09:51 -0400)] 
Log errno on listener socket creation failure.

This may help diagnose bug 4027.

14 years agoFix a bogus warning
Robert Ransom [Wed, 14 Sep 2011 07:05:03 +0000 (00:05 -0700)] 
Fix a bogus warning

14 years agobump to 0.2.3.4-alpha-dev
Roger Dingledine [Wed, 14 Sep 2011 02:04:47 +0000 (22:04 -0400)] 
bump to 0.2.3.4-alpha-dev

14 years agoslight tweak to unify things tor-0.2.3.4-alpha
Roger Dingledine [Wed, 14 Sep 2011 00:26:32 +0000 (20:26 -0400)] 
slight tweak to unify things

14 years agobump to 0.2.3.4-alpha
Roger Dingledine [Tue, 13 Sep 2011 23:59:06 +0000 (19:59 -0400)] 
bump to 0.2.3.4-alpha

14 years agoa blurb for 0.2.3.4-alpha
Roger Dingledine [Tue, 13 Sep 2011 23:56:59 +0000 (19:56 -0400)] 
a blurb for 0.2.3.4-alpha

14 years agoProvide missing description for our FLEXIBLE_ARRAY_MEMBER defines
Nick Mathewson [Tue, 13 Sep 2011 23:51:37 +0000 (19:51 -0400)] 
Provide missing description for our FLEXIBLE_ARRAY_MEMBER defines

Apparently autoheader throws a tantrum if you say 'AC_DEFINE([a],
[b])'.  Instead you must say 'AC_DEFINE([a], [b], [description of
a])'.  We were running into this in our replacement definitions for
FLEXIBLE_ARRAY_MEMBER, which were only getting built on autoconf
versions before 2.61 -- and this made us stop working with those
autoconf versinos.

Fixes bug 2430; bugfix on 0.2.3.1-alpha.

14 years agoforward-port the 0.2.2.33 changelog
Roger Dingledine [Tue, 13 Sep 2011 23:19:38 +0000 (19:19 -0400)] 
forward-port the 0.2.2.33 changelog

14 years agoMerge branch 'maint-0.2.2'
Roger Dingledine [Tue, 13 Sep 2011 22:32:00 +0000 (18:32 -0400)] 
Merge branch 'maint-0.2.2'

14 years agoMerge branch 'maint-0.2.1' into maint-0.2.2
Roger Dingledine [Tue, 13 Sep 2011 22:27:13 +0000 (18:27 -0400)] 
Merge branch 'maint-0.2.1' into maint-0.2.2

Conflicts:
src/or/main.c
src/or/router.c

14 years agoGenerate our ssl session certs with a plausible lifetime
Roger Dingledine [Tue, 13 Sep 2011 22:24:45 +0000 (18:24 -0400)] 
Generate our ssl session certs with a plausible lifetime

Nobody but Tor uses certs on the wire with 2 hour lifetimes,
and it makes us stand out. Resolves ticket 4014.

14 years agoMerge branch 'maint-0.2.2'
Roger Dingledine [Mon, 12 Sep 2011 09:54:55 +0000 (05:54 -0400)] 
Merge branch 'maint-0.2.2'

14 years agoUpdate to the September 2011 GeoIP database.
Karsten Loesing [Mon, 12 Sep 2011 09:40:26 +0000 (11:40 +0200)] 
Update to the September 2011 GeoIP database.

14 years agoPut some sense into our logging.
George Kadianakis [Sun, 11 Sep 2011 22:10:07 +0000 (00:10 +0200)] 
Put some sense into our logging.

Transform our logging severities to something more sensible.
Remove sneaky printf()s.

14 years agoDon't warn of stray Bridges if managed proxies are still unconfigured.
George Kadianakis [Sun, 11 Sep 2011 21:51:29 +0000 (23:51 +0200)] 
Don't warn of stray Bridges if managed proxies are still unconfigured.

With managed proxies you would always get the error message:

"You have a Bridge line using the X pluggable transport, but there
doesn't seem to be a corresponding ClientTransportPlugin line."

because the check happened directly after parse_client_transport_line()
when managed proxies were not fully configured and their transports
were not registered.

The fix is to move the validation to run_scheduled_events() and make
sure that all managed proxies are configured first.

14 years agoConstification.
George Kadianakis [Sun, 11 Sep 2011 21:35:00 +0000 (23:35 +0200)] 
Constification.

14 years agoMake check-spaces happy.
George Kadianakis [Sun, 11 Sep 2011 21:34:36 +0000 (23:34 +0200)] 
Make check-spaces happy.

14 years agoEnforce transport names being C identifiers.
George Kadianakis [Sun, 11 Sep 2011 21:34:11 +0000 (23:34 +0200)] 
Enforce transport names being C identifiers.

Introduce string_is_C_identifier() and use it to enforce transport
names according to the 180 spec.

14 years agoTrivial fixes around the code.
George Kadianakis [Sun, 11 Sep 2011 21:33:31 +0000 (23:33 +0200)] 
Trivial fixes around the code.

* C90-fy.
* Remove ASN comments.
* Don't smartlist_clear() before smartlist_free().
* Plug a mem. leak.

14 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Sun, 11 Sep 2011 20:25:14 +0000 (16:25 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

14 years agoBe more defensive in get_transport_bindaddr().
George Kadianakis [Sun, 11 Sep 2011 19:33:02 +0000 (21:33 +0200)] 
Be more defensive in get_transport_bindaddr().

Make sure that lines in get_transport_bindaddr() begin with the name
of the transport and a space.

14 years agoFix bug in get_transport_in_state_by_name() when using strcmpstart().
George Kadianakis [Sun, 11 Sep 2011 19:22:37 +0000 (21:22 +0200)] 
Fix bug in get_transport_in_state_by_name() when using strcmpstart().

We now split the state lines into smartlists and compare the token
properly. Not that efficient but it's surely correct.

14 years agoImprove how we access or_state_t.
George Kadianakis [Sun, 11 Sep 2011 18:57:01 +0000 (20:57 +0200)] 
Improve how we access or_state_t.

* Use get_or_state()->VirtualOption instead of relying on
  config_find_option(), STRUCT_VAR_P and voodoo.

14 years agoRemove connection_uses_transport() since it was unused.
George Kadianakis [Sun, 11 Sep 2011 18:33:27 +0000 (20:33 +0200)] 
Remove connection_uses_transport() since it was unused.

14 years agoAllow interwined {Client,Server}TransportPlugin lines.
George Kadianakis [Sun, 11 Sep 2011 18:30:08 +0000 (20:30 +0200)] 
Allow interwined {Client,Server}TransportPlugin lines.

14 years agoUpdate the transports.c documentation based on the new data.
George Kadianakis [Sun, 11 Sep 2011 18:29:52 +0000 (20:29 +0200)] 
Update the transports.c documentation based on the new data.

14 years agoUpdate transports.[ch] to support SIGHUPs.
George Kadianakis [Sun, 11 Sep 2011 18:29:12 +0000 (20:29 +0200)] 
Update transports.[ch] to support SIGHUPs.

14 years agoPrepare circuitbuild.[ch] and config.[ch] for SIGHUPs.
George Kadianakis [Sun, 11 Sep 2011 18:28:47 +0000 (20:28 +0200)] 
Prepare circuitbuild.[ch] and config.[ch] for SIGHUPs.

* Create mark/sweep functions for transports.
* Create a transport_resolve_conflicts() function that tries to
  resolve conflicts when registering transports.

14 years agoIntroduce tor_terminate_process() function.
George Kadianakis [Sun, 11 Sep 2011 18:26:01 +0000 (20:26 +0200)] 
Introduce tor_terminate_process() function.