]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
16 years agoMerge commit 'debian-tor-0.2.2.4-alpha-1'
Roger Dingledine [Mon, 26 Oct 2009 03:59:50 +0000 (23:59 -0400)] 
Merge commit 'debian-tor-0.2.2.4-alpha-1'

16 years agoFix two bugs found by Coverity scan.
Nick Mathewson [Tue, 20 Oct 2009 03:19:42 +0000 (23:19 -0400)] 
Fix two bugs found by Coverity scan.

One was a simple buffer overrun; the other was a high-speed pointer
collision.  Both were introduced by my microdescs branch.

16 years agoMerge branch 'microdesc'
Nick Mathewson [Mon, 19 Oct 2009 04:45:47 +0000 (00:45 -0400)] 
Merge branch 'microdesc'

16 years agoChangelog for microdescriptor branch.
Nick Mathewson [Mon, 19 Oct 2009 04:39:20 +0000 (00:39 -0400)] 
Changelog for microdescriptor branch.

16 years agoDocument some formerly undocumented functions.
Nick Mathewson [Mon, 19 Oct 2009 04:30:52 +0000 (00:30 -0400)] 
Document some formerly undocumented functions.

16 years agoFix compile with warnings problems on Snow Leopard
Sebastian Hahn [Sun, 18 Oct 2009 23:30:46 +0000 (01:30 +0200)] 
Fix compile with warnings problems on Snow Leopard

16 years agoAdd functions to serve microdescs and flavored consensuses.
Nick Mathewson [Sun, 18 Oct 2009 19:45:57 +0000 (15:45 -0400)] 
Add functions to serve microdescs and flavored consensuses.

16 years agoRevise consensus-flavors proposal to better URLs.
Nick Mathewson [Sun, 18 Oct 2009 19:09:56 +0000 (15:09 -0400)] 
Revise consensus-flavors proposal to better URLs.

The old flavored consensus URL format made it harder to decode URLs
based on their prefixes, and didn't take into account our "only give
it to me if it's signed by enough authorities" stuff.

16 years agoDocument the microdescriptor code better.
Nick Mathewson [Thu, 15 Oct 2009 20:06:00 +0000 (16:06 -0400)] 
Document the microdescriptor code better.

16 years agoFix various bugs in microdescriptor caching.
Nick Mathewson [Wed, 14 Oct 2009 20:05:08 +0000 (16:05 -0400)] 
Fix various bugs in microdescriptor caching.

16 years agoMake start_writing_to_stdio_file() respect O_BINARY.
Nick Mathewson [Wed, 14 Oct 2009 17:57:51 +0000 (13:57 -0400)] 
Make start_writing_to_stdio_file() respect O_BINARY.

16 years agoActually remember all the consensus types when we are done generating them.
Nick Mathewson [Tue, 13 Oct 2009 21:06:01 +0000 (17:06 -0400)] 
Actually remember all the consensus types when we are done generating them.

16 years agoParse detached signatures and microdesc networkstatuses correctly.
Nick Mathewson [Wed, 23 Sep 2009 19:23:04 +0000 (15:23 -0400)] 
Parse detached signatures and microdesc networkstatuses correctly.

16 years agoRevise proposal 162: SHA256(x), not SHA256(SHA256(x))
Nick Mathewson [Wed, 23 Sep 2009 15:45:54 +0000 (11:45 -0400)] 
Revise proposal 162: SHA256(x), not SHA256(SHA256(x))

The point of doing SHA256 twice is, generally, is to prevent message
extension attacks where an attacker who knows H(A) can calculate
H(A|B).  But for attaching a signature to a document, the attacker
already _knows_ A, so trying to keep them from calculating H(A|B) is
pointless.

16 years agoImplement signatures for microdesc consensuses right.
Nick Mathewson [Wed, 23 Sep 2009 07:02:32 +0000 (03:02 -0400)] 
Implement signatures for microdesc consensuses right.

This means we need to handle the existence of multiple flavors of signature
in a detached signatures document, generate them correctly, and so on.

16 years agoGenerate all the flavors of consensuses when building consensuses.
Nick Mathewson [Tue, 22 Sep 2009 20:52:51 +0000 (16:52 -0400)] 
Generate all the flavors of consensuses when building consensuses.

16 years agoParse detached signature documents with multiple flavors and algorithms.
Nick Mathewson [Wed, 16 Sep 2009 16:34:44 +0000 (12:34 -0400)] 
Parse detached signature documents with multiple flavors and algorithms.

16 years agoRefactor consensus signature storage for multiple digests and flavors.
Nick Mathewson [Wed, 16 Sep 2009 21:01:01 +0000 (17:01 -0400)] 
Refactor consensus signature storage for multiple digests and flavors.

This patch introduces a new type called document_signature_t to represent the
signature of a consensus document.  Now, each consensus document can have up
to one document signature per voter per digest algorithm.  Also, each
detached-signatures document can have up to one signature per <voter,
algorithm, flavor>.

16 years agoCode to generate, store, and parse microdescriptors and consensuses.
Nick Mathewson [Mon, 24 Aug 2009 16:51:33 +0000 (12:51 -0400)] 
Code to generate, store, and parse microdescriptors and consensuses.

The consensus documents are not signed properly, not served, and not
exchanged yet.

16 years agoAdd a function to get the most frequent member of a list.
Nick Mathewson [Tue, 1 Sep 2009 06:00:43 +0000 (02:00 -0400)] 
Add a function to get the most frequent member of a list.

16 years agoAdd ability to parse one or more m line from a vote.
Nick Mathewson [Thu, 20 Aug 2009 15:39:22 +0000 (11:39 -0400)] 
Add ability to parse one or more m line from a vote.

16 years agoFunctions to encode microdescriptors and their lines.
Nick Mathewson [Thu, 20 Aug 2009 00:06:59 +0000 (20:06 -0400)] 
Functions to encode microdescriptors and their lines.

16 years agoRevise 162's idea of how detached signatures work with flavors
Nick Mathewson [Tue, 15 Sep 2009 17:29:48 +0000 (13:29 -0400)] 
Revise 162's idea of how detached signatures work with flavors

The original proposal was vague and would have made older Tors reject
detached-signature documents as soon as they saw one with flavors.

16 years agoAllow signed data to include other hashes later.
Nick Mathewson [Mon, 14 Sep 2009 16:02:49 +0000 (12:02 -0400)] 
Allow signed data to include other hashes later.

Previously, we insisted that a valid signature must be a signature of
the expected digest.  Now we accept anything that starts with the
expected digest.  This lets us include another digest later.

16 years agoSignature-checking code can handle longer digests.
Nick Mathewson [Mon, 14 Sep 2009 16:02:00 +0000 (12:02 -0400)] 
Signature-checking code can handle longer digests.

16 years agoMake signature-generation code handle different key and digest lengths.
Nick Mathewson [Mon, 14 Sep 2009 15:57:19 +0000 (11:57 -0400)] 
Make signature-generation code handle different key and digest lengths.

16 years agoSupport for encoding and decoding 256-bit digests in base64
Nick Mathewson [Thu, 20 Aug 2009 00:03:40 +0000 (20:03 -0400)] 
Support for encoding and decoding 256-bit digests in base64

16 years agoMerge commit 'origin/maint-0.2.1'
Nick Mathewson [Thu, 15 Oct 2009 16:33:22 +0000 (12:33 -0400)] 
Merge commit 'origin/maint-0.2.1'

Conflicts:
ChangeLog
configure.in
contrib/tor-mingw.nsi.in
src/or/config.c
src/win32/orconfig.h

16 years agobump to 0.2.1.20 tor-0.2.1.20
Roger Dingledine [Thu, 15 Oct 2009 16:00:35 +0000 (12:00 -0400)] 
bump to 0.2.1.20

16 years agoMove moria1 and Tonga to alternate IP addresses.
Roger Dingledine [Wed, 14 Oct 2009 23:36:08 +0000 (19:36 -0400)] 
Move moria1 and Tonga to alternate IP addresses.

16 years agoMerge commit 'origin/maint-0.2.1'
Nick Mathewson [Thu, 15 Oct 2009 01:31:06 +0000 (21:31 -0400)] 
Merge commit 'origin/maint-0.2.1'

16 years agoMerge commit 'phobos/polipo-updates-maint-0.2.1' into maint-0.2.1
Nick Mathewson [Thu, 15 Oct 2009 01:30:53 +0000 (21:30 -0400)] 
Merge commit 'phobos/polipo-updates-maint-0.2.1' into maint-0.2.1

16 years agoMerge commit 'phobos/tor-dmg-naming-update'
Nick Mathewson [Thu, 15 Oct 2009 01:29:40 +0000 (21:29 -0400)] 
Merge commit 'phobos/tor-dmg-naming-update'

16 years agoMerge commit 'origin/maint-0.2.1'
Nick Mathewson [Wed, 14 Oct 2009 21:20:58 +0000 (17:20 -0400)] 
Merge commit 'origin/maint-0.2.1'

16 years agoread the "circwindow" parameter from the consensus
Roger Dingledine [Wed, 14 Oct 2009 21:07:32 +0000 (17:07 -0400)] 
read the "circwindow" parameter from the consensus

backport of c43859c5c12361fad505
backport of 0d13e0ed145f4c1b5bd1

16 years agoCode to parse and access network parameters.
Nick Mathewson [Wed, 14 Oct 2009 20:15:41 +0000 (16:15 -0400)] 
Code to parse and access network parameters.

Partial backport of 381766ce4b1145460.
Partial backport of 56c6d78520a98fb64.

16 years agoadd blurbs for recent dev releases
Roger Dingledine [Wed, 14 Oct 2009 19:49:26 +0000 (15:49 -0400)] 
add blurbs for recent dev releases

16 years agoAnother event2 evdns fix.
Nick Mathewson [Tue, 13 Oct 2009 22:57:25 +0000 (18:57 -0400)] 
Another event2 evdns fix.

16 years agoFix a crash when using evdns from Libevent 2.
Nick Mathewson [Tue, 13 Oct 2009 21:54:04 +0000 (17:54 -0400)] 
Fix a crash when using evdns from Libevent 2.

When we tried to use the deprecated non-threadsafe evdns
interfaces in Libevent 2 without using the also-deprecated
event_init() interface, Libevent 2 would sensibly crash, since it
has no guess where to find the Libevent library.

Here we use the evdns_base_*() functions instead if they're
present, and fake them if they aren't.

16 years agobump to 0.2.2.5-alpha-dev
Roger Dingledine [Mon, 12 Oct 2009 19:28:29 +0000 (15:28 -0400)] 
bump to 0.2.2.5-alpha-dev

16 years agomove nickm's commit to the correct release
Roger Dingledine [Mon, 12 Oct 2009 19:01:10 +0000 (15:01 -0400)] 
move nickm's commit to the correct release

16 years agoupdated naming.
Andrew Lewman [Mon, 12 Oct 2009 12:36:39 +0000 (08:36 -0400)] 
updated naming.

16 years agoupdate naming
Andrew Lewman [Mon, 12 Oct 2009 12:36:32 +0000 (08:36 -0400)] 
update naming

16 years agoMove android changelog entry to now-correct Tor version.
Nick Mathewson [Mon, 12 Oct 2009 03:31:54 +0000 (23:31 -0400)] 
Move android changelog entry to now-correct Tor version.

16 years agoMerge commit 'public/android'
Nick Mathewson [Mon, 12 Oct 2009 03:30:19 +0000 (23:30 -0400)] 
Merge commit 'public/android'

16 years agofix compile on windows tor-0.2.2.5-alpha
Roger Dingledine [Sun, 11 Oct 2009 21:23:47 +0000 (17:23 -0400)] 
fix compile on windows

16 years agobump to 0.2.2.5-alpha
Roger Dingledine [Sun, 11 Oct 2009 18:59:20 +0000 (14:59 -0400)] 
bump to 0.2.2.5-alpha

16 years agoMove dizum to an alternate IP address.
Roger Dingledine [Sun, 11 Oct 2009 18:59:14 +0000 (14:59 -0400)] 
Move dizum to an alternate IP address.

16 years agoShip test.h in release
Peter Palfrader [Sun, 11 Oct 2009 08:51:51 +0000 (10:51 +0200)] 
Ship test.h in release

The test suite need the test.h file to build. Add it to
noinst_HEADERS in the Makefile.am so it gets included
in the tarball that make dist produces.

16 years agoMerge branch 'debian-merge' into debian
Peter Palfrader [Sun, 11 Oct 2009 08:40:13 +0000 (10:40 +0200)] 
Merge branch 'debian-merge' into debian

* debian-merge: (52 commits)
  Ship debian source with src/test/test.h
  New testsuite location
  New upstream version
  Fix testsuite call.
  bump to 0.2.2.4-alpha
  Don't set unreachable from dirvote unless we've been running a while.
  correct the spec for the stream_bw event.
  fix a bug where we were decrementing the wrong bucket
  remove some dead code. some of it was tickling coverity.
  add blurbs for recent alpha releases
  Fix a memleak when throwing away some build times
  amend changelog for recent commits, plus clean up
  Tweak an assert that shouldn't fire either way.
  Tweak values for when to discard all of our history.
  Remove another overzealous assert.
  try to stem the 'sea of fail'
  fix the wiki link in doc pages. remove obsolete FAQ.
  Ignore one-hop circuits for circuit timeout calc
  Move Tonga to an alternate IP address
  update spec to reflect change in Fast definition
  ...

16 years agoShip debian source with src/test/test.h
Peter Palfrader [Sun, 11 Oct 2009 08:39:49 +0000 (10:39 +0200)] 
Ship debian source with src/test/test.h

Upstream failed to ship src/test/test.h.  Ship it in debian/ and
manually copy it in place during configure and clean up in clean.  Let's
not use the patch system as this will most likely be rectified by next
release.

16 years agoNew testsuite location
Peter Palfrader [Sun, 11 Oct 2009 08:19:45 +0000 (10:19 +0200)] 
New testsuite location

The testsuite moved from src/or/test to src/test/test, but let's call it
using "make check" now.

16 years agoNew upstream version
Peter Palfrader [Sun, 11 Oct 2009 08:19:19 +0000 (10:19 +0200)] 
New upstream version

16 years agoMerge commit 'tor-0.2.2.4-alpha' into debian-merge
Peter Palfrader [Sun, 11 Oct 2009 08:17:56 +0000 (10:17 +0200)] 
Merge commit 'tor-0.2.2.4-alpha' into debian-merge

* commit 'tor-0.2.2.4-alpha': (49 commits)
  Fix testsuite call.
  bump to 0.2.2.4-alpha
  Don't set unreachable from dirvote unless we've been running a while.
  correct the spec for the stream_bw event.
  fix a bug where we were decrementing the wrong bucket
  remove some dead code. some of it was tickling coverity.
  add blurbs for recent alpha releases
  Fix a memleak when throwing away some build times
  amend changelog for recent commits, plus clean up
  Tweak an assert that shouldn't fire either way.
  Tweak values for when to discard all of our history.
  Remove another overzealous assert.
  try to stem the 'sea of fail'
  fix the wiki link in doc pages. remove obsolete FAQ.
  Ignore one-hop circuits for circuit timeout calc
  Move Tonga to an alternate IP address
  update spec to reflect change in Fast definition
  Move moria1 to a nearby IP address
  Dir auths reject relays running < Tor 0.1.2.14
  Fix 1108: Handle corrupt or large build times state.
  ...

16 years agoFix testsuite call. tor-0.2.2.4-alpha
Peter Palfrader [Sat, 10 Oct 2009 22:50:57 +0000 (00:50 +0200)] 
Fix testsuite call.

tinytest_main() returns 0 on success, -1 on errors and 1 on test
failures.  So test.c should check on !=0 instead of <0.

16 years agobump to 0.2.2.4-alpha
Roger Dingledine [Sat, 10 Oct 2009 21:29:44 +0000 (17:29 -0400)] 
bump to 0.2.2.4-alpha

16 years agoDon't set unreachable from dirvote unless we've been running a while.
Nick Mathewson [Thu, 2 Jul 2009 17:56:52 +0000 (13:56 -0400)] 
Don't set unreachable from dirvote unless we've been running a while.

This is a possible fix for bug 1023, where if we vote (or make a v2
consensus networkstatus) right after we come online, we can call
rep_hist_note_router_unreachable() on every router we haven't connected
to yet, and thereby make all their uptime values reset.

16 years agocorrect the spec for the stream_bw event.
Roger Dingledine [Sat, 10 Oct 2009 19:07:37 +0000 (15:07 -0400)] 
correct the spec for the stream_bw event.

"neonomad" pointed out on or-talk that the order is opposite from the
intuitive order. explain why. we chose to fix the spec rather than the
code because there are controllers like torflow that already expect
the current behavior.

16 years agofix a bug where we were decrementing the wrong bucket
Roger Dingledine [Sat, 10 Oct 2009 18:52:41 +0000 (14:52 -0400)] 
fix a bug where we were decrementing the wrong bucket

i think this doesn't actually affect anything, since linked
conns usually don't impact buckets

16 years agoremove some dead code. some of it was tickling coverity.
Roger Dingledine [Sat, 10 Oct 2009 17:39:41 +0000 (13:39 -0400)] 
remove some dead code. some of it was tickling coverity.

16 years agoadd blurbs for recent alpha releases
Roger Dingledine [Sat, 10 Oct 2009 17:33:17 +0000 (13:33 -0400)] 
add blurbs for recent alpha releases

16 years agoFix a memleak when throwing away some build times
Sebastian Hahn [Sat, 10 Oct 2009 11:41:44 +0000 (13:41 +0200)] 
Fix a memleak when throwing away some build times

This was introduced in f7e6e852e80c22b40a8f09bc1c85074726d7078e.
Found by Coverity

16 years agoamend changelog for recent commits, plus clean up
Roger Dingledine [Wed, 7 Oct 2009 20:18:18 +0000 (16:18 -0400)] 
amend changelog for recent commits, plus clean up

16 years agoTweak an assert that shouldn't fire either way.
Mike Perry [Wed, 7 Oct 2009 20:05:28 +0000 (13:05 -0700)] 
Tweak an assert that shouldn't fire either way.

There were however other places where we used to call this
function that might have caused this to fire. Better
safe than sorry now.

16 years agoTweak values for when to discard all of our history.
Mike Perry [Wed, 7 Oct 2009 19:49:13 +0000 (12:49 -0700)] 
Tweak values for when to discard all of our history.

This seems to be happening to me a lot on a garbage DSL line.
We may need to come up with 2 threshholds: a high short onehop
count and a lower longer count.

16 years agoRemove another overzealous assert.
Mike Perry [Wed, 7 Oct 2009 19:24:40 +0000 (12:24 -0700)] 
Remove another overzealous assert.

Pretimeouts may have build time data, just no timeout data.

16 years agotry to stem the 'sea of fail'
Roger Dingledine [Thu, 1 Oct 2009 09:35:24 +0000 (05:35 -0400)] 
try to stem the 'sea of fail'

16 years agofix the wiki link in doc pages. remove obsolete FAQ.
Roger Dingledine [Thu, 1 Oct 2009 08:45:59 +0000 (04:45 -0400)] 
fix the wiki link in doc pages. remove obsolete FAQ.

16 years agoIgnore one-hop circuits for circuit timeout calc
Roger Dingledine [Thu, 1 Oct 2009 08:15:45 +0000 (04:15 -0400)] 
Ignore one-hop circuits for circuit timeout calc

Don't count one-hop circuits when we're estimating how long it
takes circuits to build on average. Otherwise we'll set our circuit
build timeout lower than we should. Bugfix on 0.2.2.2-alpha.

16 years agoMove Tonga to an alternate IP address
Roger Dingledine [Thu, 1 Oct 2009 02:35:05 +0000 (22:35 -0400)] 
Move Tonga to an alternate IP address

16 years agoupdate spec to reflect change in Fast definition
Roger Dingledine [Wed, 30 Sep 2009 23:02:05 +0000 (19:02 -0400)] 
update spec to reflect change in Fast definition

we made anybody who has 20KB/s Fast by definition, in 0.2.1.14-rc,
but it looks like we forgot to fix the spec.

16 years agoMove moria1 to a nearby IP address
Roger Dingledine [Wed, 30 Sep 2009 22:46:55 +0000 (18:46 -0400)] 
Move moria1 to a nearby IP address

16 years agoDir auths reject relays running < Tor 0.1.2.14
Roger Dingledine [Wed, 30 Sep 2009 22:34:21 +0000 (18:34 -0400)] 
Dir auths reject relays running < Tor 0.1.2.14

Directory authorities now reject Tor relays with versions less than
0.1.2.14. This step cuts out four relays from the current network,
none of which are very big.

16 years agoFix 1108: Handle corrupt or large build times state.
Mike Perry [Tue, 29 Sep 2009 10:41:23 +0000 (03:41 -0700)] 
Fix 1108: Handle corrupt or large build times state.

1108 was actually just a fencepost error in an assert,
but making the state file handling code resilient is a
good idea.

16 years agoAdd changelog entry for Android work.
Nick Mathewson [Tue, 29 Sep 2009 05:01:28 +0000 (01:01 -0400)] 
Add changelog entry for Android work.

16 years agoMake tor-gencert build on Android
Nick Mathewson [Tue, 29 Sep 2009 04:49:43 +0000 (00:49 -0400)] 
Make tor-gencert build on Android

Previously, tor-gencert would call RSA_generate_key() directly.
This won't work on Android, which removes the (deprecated since
OpenSSL 0.9.8) function.  We can't call RSA_generate_key_ex()
unconditionally either, since that didn't exist before 0.9.8.
Instead, we must call our own crypto_pk_generate_key_with_bits,
which knows how to call RSA_generate_key or RSA_generate_key_ex as
appropriate.

 [Based on patch by Nathan Freitas]

16 years agoAlter keygen function to generate keys of different lengths.
Nick Mathewson [Tue, 29 Sep 2009 04:48:45 +0000 (00:48 -0400)] 
Alter keygen function to generate keys of different lengths.

16 years agoDisable OpenSSL engines when building for Android.
Nathan Freitas [Tue, 29 Sep 2009 04:46:53 +0000 (00:46 -0400)] 
Disable OpenSSL engines when building for Android.

Apparently the Android developers dumped OpenSSL's support for hardware
acceleration in order to save some memory, so you can't build programs using
engines on Android.

[Patch revised by nickm]

16 years agoInclude util.h and log.h as relative paths.
Nathan Freitas [Tue, 29 Sep 2009 04:44:39 +0000 (00:44 -0400)] 
Include util.h and log.h as relative paths.

This shouldn't be necessary, but apparently the Android cross-compiler
doesn't respect -I as well as it should.  (-I is supposed to add to the
*front* of the search path.  Android's gcc wrapper apparently likes to add to
the end.  This is broken, but we need to work around it.)

16 years agoWhitespace fix
Nick Mathewson [Tue, 29 Sep 2009 03:50:57 +0000 (23:50 -0400)] 
Whitespace fix

16 years agofix two comment bugs for load_stats_file()
Roger Dingledine [Tue, 29 Sep 2009 03:25:23 +0000 (23:25 -0400)] 
fix two comment bugs for load_stats_file()

16 years agoMerge commit 'karsten/fix-another-stats-bug'
Roger Dingledine [Tue, 29 Sep 2009 03:23:39 +0000 (23:23 -0400)] 
Merge commit 'karsten/fix-another-stats-bug'

16 years agoFix some win32 compilation warnings
Nick Mathewson [Mon, 28 Sep 2009 23:52:56 +0000 (19:52 -0400)] 
Fix some win32 compilation warnings

16 years agoFix an issue with including stats in extra-info descriptors.
Karsten Loesing [Mon, 28 Sep 2009 13:20:21 +0000 (15:20 +0200)] 
Fix an issue with including stats in extra-info descriptors.

16 years agoImproved fix for test_memeq_hex leak.
Nick Mathewson [Sun, 27 Sep 2009 16:07:33 +0000 (12:07 -0400)] 
Improved fix for test_memeq_hex leak.

The earlier fix would only handle the success case.  In the failing
case, test_mem_op does a goto done, which would leave the leak leaking.

16 years agoFix a memleak
Sebastian Hahn [Sat, 26 Sep 2009 13:58:54 +0000 (15:58 +0200)] 
Fix a memleak

Found by coverity

test_mem_op_hex was leaking memory, which showed up in a few
tests.

Also, the dir_param test had a memleak of its own.

Found by Coverity

16 years agoMake sure we can't overflow in connection_ap_handshake_send_resolve
Sebastian Hahn [Sat, 26 Sep 2009 13:41:52 +0000 (15:41 +0200)] 
Make sure we can't overflow in connection_ap_handshake_send_resolve

Found by Coverity

16 years agoMake a NULL check in test_dir.c non-redundant.
Nick Mathewson [Sun, 27 Sep 2009 16:01:29 +0000 (12:01 -0400)] 
Make a NULL check in test_dir.c non-redundant.

Should quiet a coverity warning.

16 years agoFix memory leak
Sebastian Hahn [Sat, 26 Sep 2009 13:38:52 +0000 (15:38 +0200)] 
Fix memory leak

Some memory could be lost in the error case of
circuit_build_times_parse_state.

Found by Coverity

16 years agoDescribe how to regenerate the TLS state name table.
Nick Mathewson [Fri, 25 Sep 2009 16:57:54 +0000 (12:57 -0400)] 
Describe how to regenerate the TLS state name table.

16 years agoMerge branch 'master' of ssh://git.torproject.org/git/tor
Roger Dingledine [Thu, 24 Sep 2009 23:17:46 +0000 (19:17 -0400)] 
Merge branch 'master' of ssh://git.torproject.org/git/tor

16 years agoRevert to the "June 3 2009" ip-to-country file.
Roger Dingledine [Thu, 24 Sep 2009 23:15:24 +0000 (19:15 -0400)] 
Revert to the "June 3 2009" ip-to-country file.

The September one seems to have removed most US IP addresses.

16 years agoMerge commit 'karsten/stats-fixes-master'
Roger Dingledine [Thu, 24 Sep 2009 22:54:01 +0000 (18:54 -0400)] 
Merge commit 'karsten/stats-fixes-master'

16 years agoFix a couple of smaller issues with gathering statistics.
Karsten Loesing [Thu, 24 Sep 2009 19:58:56 +0000 (21:58 +0200)] 
Fix a couple of smaller issues with gathering statistics.

- Avoid memmoving 0 bytes which might lead to compiler warnings.

- Don't require relays to be entry node AND bridge at the same to time to
  record clients.

- Fix a memory leak when writing dirreq-stats.

- Don't say in the stats files that measurement intervals are twice as long
  as they really are.

- Reduce minimum observation time for requests to 12 hours, or we might
  never record usage.

- Clear exit stats correctly after writing them, or we accumulate old stats
  over time.

- Reset interval start for buffer stats, too.

16 years agoFix compilation on OpenSSLs with unusual state lists.
Nick Mathewson [Thu, 24 Sep 2009 17:00:28 +0000 (13:00 -0400)] 
Fix compilation on OpenSSLs with unusual state lists.

"Unusual" in this context means "not the same as nickm's."  We should grow a
better list later.

(Also, move TLS state table to a separate header.)

16 years agoDebugging logs for TLS handshake
Nick Mathewson [Thu, 24 Sep 2009 16:31:22 +0000 (12:31 -0400)] 
Debugging logs for TLS handshake

The big change is to add a function to display the current SSL handshake
state, and to log it everywhere reasonable.  (A failure in
SSL23_ST_CR_SRVR_HELLO_A is different from one in
SSL3_ST_CR_SESSION_TICKET_A.)

This patch also adds a new log domain for OR handshaking, so you can pull out
all the handshake log messages without having to run at debug for everything.
For example, you'd just say "log notice-err [handshake]debug-err file
tor.log".

16 years agoMerge commit 'debian-tor-0.2.2.3-alpha-1'
Roger Dingledine [Wed, 23 Sep 2009 09:05:45 +0000 (05:05 -0400)] 
Merge commit 'debian-tor-0.2.2.3-alpha-1'

16 years agodowngrade a log notice at startup
Roger Dingledine [Wed, 23 Sep 2009 08:59:05 +0000 (04:59 -0400)] 
downgrade a log notice at startup

This was the only log notice that happened during other
tor invocations, like --verify-config and --list-fingerprint.
Plus, now we think it works, so no need to hear about it.

16 years agoMerge branch 'debian-merge' into debian
Peter Palfrader [Wed, 23 Sep 2009 08:33:12 +0000 (10:33 +0200)] 
Merge branch 'debian-merge' into debian

* debian-merge:
  New upstream version
  finishing touches on the changelog
  bump to 0.2.2.3-alpha, plus add a changelog for bug 1103
  Be more robust to bad circwindow values
  Fix Bug 1103.
  Bump version to 0.2.2.2-alpha-dev

16 years agoNew upstream version
Peter Palfrader [Wed, 23 Sep 2009 08:27:56 +0000 (10:27 +0200)] 
New upstream version