]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Wed, 28 Sep 2011 17:10:40 +0000 (13:10 -0400)]
Set up network parameters on non-authenticated incoming connections
Also add some info log messages for the steps of the v3 handshake.
Now my test network bootstraps!
Nick Mathewson [Wed, 28 Sep 2011 14:31:56 +0000 (10:31 -0400)]
Make sure we stop putting cells into our hash at the right time.
Nick Mathewson [Tue, 27 Sep 2011 19:20:17 +0000 (15:20 -0400)]
Bugfixes for authenticate handling and generation
Nick Mathewson [Tue, 27 Sep 2011 18:40:27 +0000 (14:40 -0400)]
Fix log message about what cells we are sending
Nick Mathewson [Tue, 27 Sep 2011 18:39:57 +0000 (14:39 -0400)]
more verbose log for recording an odd cell
Nick Mathewson [Tue, 27 Sep 2011 18:04:21 +0000 (14:04 -0400)]
Actually accept cells in SERVER_RENEGOTIATING
Nick Mathewson [Wed, 28 Sep 2011 19:03:42 +0000 (15:03 -0400)]
Generate certificates that enable v3 handshake
Nick Mathewson [Tue, 27 Sep 2011 17:40:39 +0000 (13:40 -0400)]
Allow "finished flushing" during v3 handshake
Nick Mathewson [Tue, 27 Sep 2011 17:15:36 +0000 (13:15 -0400)]
Hook up all of the prop176 code; allow v3 negotiations to actually work
Nick Mathewson [Mon, 26 Sep 2011 15:41:23 +0000 (11:41 -0400)]
Remove a no-longer-relevant comment
Nick Mathewson [Thu, 22 Sep 2011 14:01:41 +0000 (10:01 -0400)]
Make tor_tls_cert_is_valid check key lengths
Nick Mathewson [Fri, 16 Sep 2011 22:32:11 +0000 (18:32 -0400)]
New functions to record digests of cells during v3 handshake
Also, free all of the new fields in or_handshake_state_t
Nick Mathewson [Tue, 13 Sep 2011 20:24:49 +0000 (16:24 -0400)]
Implement cert/auth cell reading
Nick Mathewson [Wed, 14 Sep 2011 18:44:42 +0000 (14:44 -0400)]
Basic function to write authenticate cells
Also, tweak the cert cell code to send auth certs
Nick Mathewson [Thu, 22 Sep 2011 15:01:14 +0000 (11:01 -0400)]
Function to return peer cert as tor_tls_cert
Nick Mathewson [Fri, 16 Sep 2011 15:21:30 +0000 (11:21 -0400)]
Add AUTH keys as specified in proposal 176
Our keys and x.509 certs are proliferating here. Previously we had:
An ID cert (using the main ID key), self-signed
A link cert (using a shorter-term link key), signed by the ID key
Once proposal 176 and 179 are done, we will also have:
Optionally, a presentation cert (using the link key),
signed by whomever.
An authentication cert (using a shorter-term ID key), signed by
the ID key.
These new keys are managed as part of the tls context infrastructure,
since you want to rotate them under exactly the same circumstances,
and since they need X509 certificates.
Nick Mathewson [Thu, 22 Sep 2011 14:18:17 +0000 (10:18 -0400)]
Functions to get a public RSA key from a cert
Nick Mathewson [Fri, 16 Sep 2011 21:48:20 +0000 (17:48 -0400)]
Function to detect certificate types that signal v3 certificates
Nick Mathewson [Wed, 14 Sep 2011 18:43:44 +0000 (14:43 -0400)]
Function to get digests of the certs and their keys
Nick Mathewson [Wed, 14 Sep 2011 17:04:48 +0000 (13:04 -0400)]
More functions to manipulate certs received in cells
Nick Mathewson [Tue, 13 Sep 2011 17:46:21 +0000 (13:46 -0400)]
Function to extract the TLSSECRETS field for v3 handshakes
Nick Mathewson [Tue, 13 Sep 2011 15:38:38 +0000 (11:38 -0400)]
Functions to send cert and auth_challenge cells.
Nick Mathewson [Tue, 13 Sep 2011 14:03:09 +0000 (10:03 -0400)]
Cell types and states for new OR handshake
Also, define all commands > 128 as variable-length when using
v3 or later link protocol. Running into a var cell with an
unrecognized type is no longer a bug.
Nick Mathewson [Tue, 13 Sep 2011 15:38:13 +0000 (11:38 -0400)]
Add a sha256 hmac function, with tests
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
Nick Mathewson [Tue, 13 Sep 2011 18:32:51 +0000 (14:32 -0400)]
New function to get all digests of a public key
Nick Mathewson [Tue, 11 Oct 2011 02:50:52 +0000 (22:50 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Tue, 11 Oct 2011 02:03:20 +0000 (22:03 -0400)]
Merge remote-tracking branch 'sebastian/osxcompile'
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!
Sebastian Hahn [Tue, 11 Oct 2011 00:25:00 +0000 (02:25 +0200)]
Fix a compile warning on OS X 10.6 and up
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.
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.
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.
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"
Nick Mathewson [Fri, 7 Oct 2011 20:47:43 +0000 (16:47 -0400)]
Note ticket and source version for feature3951 in changes file
Nick Mathewson [Fri, 7 Oct 2011 20:46:50 +0000 (16:46 -0400)]
Merge remote-tracking branch 'karsten/feature3951' into maint-0.2.2
Nick Mathewson [Fri, 7 Oct 2011 20:43:45 +0000 (16:43 -0400)]
Merge remote-tracking branch 'public/bug2003_nm'
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!
Nick Mathewson [Fri, 7 Oct 2011 20:32:04 +0000 (16:32 -0400)]
Merge remote-tracking branch 'rransom-tor/bug4018'
Nick Mathewson [Fri, 7 Oct 2011 20:28:32 +0000 (16:28 -0400)]
Merge remote-tracking branch 'public/bug2430'
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
Nick Mathewson [Fri, 7 Oct 2011 16:20:08 +0000 (12:20 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.2'
warms0x [Fri, 7 Oct 2011 07:04:29 +0000 (07:04 +0000)]
Avoid running DNS self-tests if we're operating as a bridge
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.
George Kadianakis [Fri, 7 Oct 2011 13:44:44 +0000 (15:44 +0200)]
Make it compile on Windows™.
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.
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 .
Nick Mathewson [Mon, 3 Oct 2011 19:19:00 +0000 (15:19 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.2'
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.
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
Nick Mathewson [Mon, 3 Oct 2011 16:58:07 +0000 (12:58 -0400)]
Add changes file for bug 4094
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.
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
Robert Ransom [Tue, 20 Sep 2011 10:50:45 +0000 (03:50 -0700)]
Record the HS's address in last_hid_serv_request keys
Robert Ransom [Tue, 20 Sep 2011 10:42:40 +0000 (03:42 -0700)]
Fix comment typo
Robert Ransom [Sat, 17 Sep 2011 10:53:07 +0000 (03:53 -0700)]
Detect and remove unreachable intro points
Robert Ransom [Sat, 17 Sep 2011 10:23:26 +0000 (03:23 -0700)]
Clear the timed_out flag when an HS connection attempt ends
Robert Ransom [Sat, 17 Sep 2011 10:19:29 +0000 (03:19 -0700)]
Record intro point timeouts in rend_intro_point_t
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.
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
Roger Dingledine [Wed, 28 Sep 2011 22:25:16 +0000 (18:25 -0400)]
bump to 0.2.3.5-alpha
Roger Dingledine [Wed, 28 Sep 2011 22:25:09 +0000 (18:25 -0400)]
give 0.2.3.5-alpha a blurb
Roger Dingledine [Wed, 28 Sep 2011 22:23:17 +0000 (18:23 -0400)]
fix default for TokenBucketRefillInterval in man page
Roger Dingledine [Wed, 28 Sep 2011 19:41:29 +0000 (15:41 -0400)]
fold in recent changes entries
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
Roger Dingledine [Wed, 28 Sep 2011 19:38:02 +0000 (15:38 -0400)]
Merge branch 'maint-0.2.2'
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
Roger Dingledine [Wed, 28 Sep 2011 19:13:05 +0000 (15:13 -0400)]
Merge branch 'maint-0.2.2'
Roger Dingledine [Wed, 28 Sep 2011 19:12:16 +0000 (15:12 -0400)]
start preparing the 0.2.3.5-alpha changelog
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.
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.
Nick Mathewson [Wed, 28 Sep 2011 18:13:49 +0000 (14:13 -0400)]
Add some debugging code to microdesc.[ch]
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.
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.
Roger Dingledine [Sun, 25 Sep 2011 02:47:53 +0000 (22:47 -0400)]
Merge branch 'maint-0.2.2'
Roger Dingledine [Sun, 25 Sep 2011 02:46:21 +0000 (22:46 -0400)]
trivial whitespace changes, take two
Nick Mathewson [Sun, 25 Sep 2011 02:15:59 +0000 (22:15 -0400)]
Trivial whitespace fixes
Nick Mathewson [Sun, 25 Sep 2011 02:15:13 +0000 (22:15 -0400)]
Add a changes file for Tom Lowenthal's patch for #4063
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
George Kadianakis [Fri, 23 Sep 2011 15:50:56 +0000 (17:50 +0200)]
Improve wording in some comments and log messages.
Nick Mathewson [Thu, 22 Sep 2011 19:54:40 +0000 (15:54 -0400)]
Merge branch 'feature3630-rebased'
Nick Mathewson [Thu, 22 Sep 2011 19:07:01 +0000 (15:07 -0400)]
Fix issues in 3630 patch noted by Karsten
Nick Mathewson [Thu, 8 Sep 2011 02:10:49 +0000 (22:10 -0400)]
Changes file for feature3630
Nick Mathewson [Thu, 8 Sep 2011 02:00:48 +0000 (22:00 -0400)]
Make bufferevents work with TokenBucketRefillInterval
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.
Nick Mathewson [Thu, 8 Sep 2011 01:03:08 +0000 (21:03 -0400)]
Make documentation for TokenBucketRefillInterval match its behavior
Nick Mathewson [Thu, 8 Sep 2011 01:02:49 +0000 (21:02 -0400)]
Move around check for TokenBucketRefillInterval; disallow changes to it
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.
Nick Mathewson [Tue, 20 Sep 2011 14:25:56 +0000 (10:25 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Tue, 20 Sep 2011 13:56:26 +0000 (09:56 -0400)]
changes file for bug 4059
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'.
Roger Dingledine [Thu, 15 Sep 2011 20:35:26 +0000 (16:35 -0400)]
Merge branch '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
Karsten Loesing [Mon, 12 Sep 2011 09:40:26 +0000 (11:40 +0200)]
Update to the September 2011 GeoIP database.
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.
Robert Ransom [Wed, 14 Sep 2011 07:05:03 +0000 (00:05 -0700)]
Fix a bogus warning
Roger Dingledine [Wed, 14 Sep 2011 02:04:47 +0000 (22:04 -0400)]
bump to 0.2.3.4-alpha-dev
Roger Dingledine [Wed, 14 Sep 2011 00:26:32 +0000 (20:26 -0400)]
slight tweak to unify things
Roger Dingledine [Tue, 13 Sep 2011 23:59:06 +0000 (19:59 -0400)]
bump to 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