]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
13 years agoMake ht.h conform to Tor's code style again
Sebastian Hahn [Tue, 14 Feb 2012 10:13:06 +0000 (11:13 +0100)] 
Make ht.h conform to Tor's code style again

When porting over changes from libevent, a bunch of tabs and a couple of
long lines got introduced.

13 years agoPort over the last ht.h changes from libevent: avoid _reserved identifiers
Nick Mathewson [Mon, 13 Feb 2012 23:40:30 +0000 (18:40 -0500)] 
Port over the last ht.h changes from libevent: avoid _reserved identifiers

13 years agoPort over ht.h improvements from Libevent.
Nick Mathewson [Mon, 13 Feb 2012 23:06:40 +0000 (18:06 -0500)] 
Port over ht.h improvements from Libevent.

There is a facility (not used now in Tor) to avoid storing the hash
of a given type if it is a fast-to-calculate hash.

There are also a few ancient-openbsd compilation issues fixed here.

The fact that Tor says INLINE while Libevent says inline remains
unaddressed.

13 years agoht.h comment tweaks, upstreamed from libevent
Nick Mathewson [Mon, 13 Feb 2012 22:56:13 +0000 (17:56 -0500)] 
ht.h comment tweaks, upstreamed from libevent

13 years agoOops; there were a couple of typos in the upstream tinytest
Nick Mathewson [Mon, 13 Feb 2012 22:48:43 +0000 (17:48 -0500)] 
Oops; there were a couple of typos in the upstream tinytest

13 years agoSynchronize with upstream tinytest again: remove _identifiers
Nick Mathewson [Mon, 13 Feb 2012 22:45:15 +0000 (17:45 -0500)] 
Synchronize with upstream tinytest again: remove _identifiers

13 years agoSynchronize with upstream tinytest.
Nick Mathewson [Mon, 13 Feb 2012 22:28:15 +0000 (17:28 -0500)] 
Synchronize with upstream tinytest.

The big change here is a patch (first added to Libevent by Ed Day)
to make sure that the CreateProcess forked-test trick works even
when the main test program is invoked without its .exe suffix.

13 years agobump to 0.2.3.12-alpha-dev
Roger Dingledine [Mon, 13 Feb 2012 15:53:49 +0000 (10:53 -0500)] 
bump to 0.2.3.12-alpha-dev

13 years agoadd a release blurb for 0.2.3.12-alpha tor-0.2.3.12-alpha
Roger Dingledine [Mon, 13 Feb 2012 14:59:23 +0000 (09:59 -0500)] 
add a release blurb for 0.2.3.12-alpha

13 years agobump to 0.2.3.12-alpha
Roger Dingledine [Mon, 13 Feb 2012 05:55:03 +0000 (00:55 -0500)] 
bump to 0.2.3.12-alpha

13 years agotoday is the day for a 0.2.3.12-alpha release
Roger Dingledine [Mon, 13 Feb 2012 05:54:57 +0000 (00:54 -0500)] 
today is the day for a 0.2.3.12-alpha release

13 years agorevise changelog entry for 5097 too
Roger Dingledine [Mon, 13 Feb 2012 05:16:05 +0000 (00:16 -0500)] 
revise changelog entry for 5097 too

13 years agoMerge branch 'tmp'
Roger Dingledine [Mon, 13 Feb 2012 05:14:17 +0000 (00:14 -0500)] 
Merge branch 'tmp'

13 years agoReinstate TOR_PR_EXTENDED_SERVER_PORT, just a little
Nick Mathewson [Mon, 13 Feb 2012 05:00:40 +0000 (00:00 -0500)] 
Reinstate TOR_PR_EXTENDED_SERVER_PORT, just a little

13 years agoMerge branch 'bug5082_squashed'
Nick Mathewson [Mon, 13 Feb 2012 04:40:23 +0000 (23:40 -0500)] 
Merge branch 'bug5082_squashed'

13 years agoset_managed_proxy_environment() can't fail anymore
Sebastian Hahn [Sun, 12 Feb 2012 05:57:35 +0000 (06:57 +0100)] 
set_managed_proxy_environment() can't fail anymore

It already couldn't fail on Windows, now it can't fail on non-Windows,
either.

13 years agoProperly set up environment for managed-mode obfsproxy
Sebastian Hahn [Sat, 11 Feb 2012 20:00:50 +0000 (21:00 +0100)] 
Properly set up environment for managed-mode obfsproxy

13 years agointegrate recent changes files
Roger Dingledine [Mon, 13 Feb 2012 04:39:30 +0000 (23:39 -0500)] 
integrate recent changes files

13 years agoMerge branch 'bug5084_squashed'
Nick Mathewson [Mon, 13 Feb 2012 04:32:53 +0000 (23:32 -0500)] 
Merge branch 'bug5084_squashed'

13 years agoAdd a changes file for bug5084
Nick Mathewson [Mon, 13 Feb 2012 04:19:15 +0000 (23:19 -0500)] 
Add a changes file for bug5084

13 years agoTry to have (and maintain!) an invariant about unconfigured_proxies_n
Nick Mathewson [Mon, 13 Feb 2012 03:58:49 +0000 (22:58 -0500)] 
Try to have (and maintain!) an invariant about unconfigured_proxies_n

The invariant is: unconfigured_proxies_n is exactly the number of
managed_proxy_t not in state PT_PROTO_COMPLETED.

To maintain this, we need to stop overloading unconfigured_proxies_n
to also count managed_proxy_t items that are in PT_PROTO_COMPLETED but
which might need relaunching.  To make it so we can detect those, we
introduce another variable.

This commit also adds a function to assert that we haven't broken the
invariant.

Fix for bug 5084; bugfix on 0.2.3.6-alpha, I think.

13 years agoDon't smartlist_remove a managed proxy from a list we're iterating over.
Nick Mathewson [Mon, 13 Feb 2012 03:24:52 +0000 (22:24 -0500)] 
Don't smartlist_remove a managed proxy from a list we're iterating over.

In some cases, we solve this by doing a SMARTLIST_DEL_CURRENT before
calling managed_proxy_destroy.  But for a trickier one, we just make a
copy of the list before iterating over it, so that changes to the
manage proxy list don't hurt our iteration.

This could be related to bug 5084.

13 years agoFix a check-spaces complaint
Sebastian Hahn [Thu, 9 Feb 2012 15:22:01 +0000 (16:22 +0100)] 
Fix a check-spaces complaint

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Mon, 13 Feb 2012 04:27:31 +0000 (23:27 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

Conflicts:
src/common/Makefile.am
src/or/Makefile.am

13 years agoUnpack a smartlist_foreach and add an assert: try to hunt #5102
Nick Mathewson [Mon, 13 Feb 2012 00:42:35 +0000 (19:42 -0500)] 
Unpack a smartlist_foreach and add an assert: try to hunt #5102

13 years agoFix #5097 on Windows, too
Robert Ransom [Sun, 12 Feb 2012 23:44:10 +0000 (15:44 -0800)] 
Fix #5097 on Windows, too

13 years agoFix bug #5097: remove bogus envvar from managed proxies' environment
Robert Ransom [Sun, 12 Feb 2012 08:10:28 +0000 (00:10 -0800)] 
Fix bug #5097: remove bogus envvar from managed proxies' environment

13 years agofold in changes for 0.2.3.12-alpha
Roger Dingledine [Sun, 12 Feb 2012 03:14:59 +0000 (22:14 -0500)] 
fold in changes for 0.2.3.12-alpha

13 years agoProperly protect paths to sed, sha1sum, openssl
Sebastian Hahn [Thu, 9 Feb 2012 23:51:58 +0000 (00:51 +0100)] 
Properly protect paths to sed, sha1sum, openssl

in Makefile.am, we used it without quoting it, causing build failure if
your openssl/sed/sha1sum happened to live in a directory with a space in
it (very common on windows)

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Fri, 10 Feb 2012 17:03:46 +0000 (12:03 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

13 years agoDowngrade "missing a certificate" from notice to info
Nick Mathewson [Fri, 10 Feb 2012 17:01:56 +0000 (12:01 -0500)] 
Downgrade "missing a certificate" from notice to info

It was apparently getting mistaken for a problem, even though it was
at notice.

Fixes 5067; fix on 0.2.0.10-alpha.

13 years agoAdd a changes file for bug 5066.
Nick Mathewson [Fri, 10 Feb 2012 15:57:57 +0000 (10:57 -0500)] 
Add a changes file for bug 5066.

(It appeared in 0.2.3.11-alpha, but never in a released 0.2.2 afaict)

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Fri, 10 Feb 2012 15:56:37 +0000 (10:56 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

Conflicts:
src/common/tortls.c

Conflict on comment near use of the new OPENSSL_V macro

13 years agoUse correct CVE number for CVE-2011-4576. Found by fermenthor. bug 5066
Nick Mathewson [Fri, 10 Feb 2012 15:55:39 +0000 (10:55 -0500)] 
Use correct CVE number for CVE-2011-4576. Found by fermenthor. bug 5066

13 years agoMerge branch 'maint-0.2.2'
Roger Dingledine [Thu, 9 Feb 2012 09:21:20 +0000 (04:21 -0500)] 
Merge branch 'maint-0.2.2'

13 years agoMerge branch 'maint-0.2.1' into maint-0.2.2
Roger Dingledine [Thu, 9 Feb 2012 09:21:08 +0000 (04:21 -0500)] 
Merge branch 'maint-0.2.1' into maint-0.2.2

13 years agorevert the revert in master, since I didn't want to revert it there
Roger Dingledine [Thu, 9 Feb 2012 09:03:36 +0000 (04:03 -0500)] 
revert the revert in master, since I didn't want to revert it there

13 years agoMerge branch 'maint-0.2.2'
Roger Dingledine [Thu, 9 Feb 2012 09:02:18 +0000 (04:02 -0500)] 
Merge branch 'maint-0.2.2'

13 years agoRevert "add a "docs" to the manual URI as listed in torrc.sample.in"
Roger Dingledine [Thu, 9 Feb 2012 08:57:04 +0000 (03:57 -0500)] 
Revert "add  a "docs" to the manual URI as listed in torrc.sample.in"

This reverts commit 55e8cae81553678ec77ce6b8fb1bf2d5e483e0aa.

The conversation from irc:
> weasel: i had intended to leave torrc.sample.in alone in maint-0.2.2,
since i don't want to make all your stable users have to deal with
a torrc change. but nickm changed it. is it in fact the case that a
change in that file means a change in the deb?
<weasel> it means you'll prompt every single user who ever touched
their torrc
<weasel> and they will be asked if they like your new version better
than what they have right now
<weasel> so it's not great

Instead I changed the website to redirect requests for the tor-manual
URL listed in maint-0.2.2's torrc.sample.in so the link will still work.

13 years agoUpdate to the February 2012 GeoIP database. maint-0.2.1
Karsten Loesing [Thu, 9 Feb 2012 08:16:24 +0000 (09:16 +0100)] 
Update to the February 2012 GeoIP database.

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Wed, 8 Feb 2012 15:52:34 +0000 (10:52 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

13 years agoadd a "docs" to the manual URI as listed in torrc.sample.in
Nick Mathewson [Wed, 8 Feb 2012 15:52:05 +0000 (10:52 -0500)] 
add  a "docs" to the manual URI as listed in torrc.sample.in

13 years agoFix fencepost error with HearbeatPeriod option
Sebastian Hahn [Sun, 22 Jan 2012 12:39:56 +0000 (13:39 +0100)] 
Fix fencepost error with HearbeatPeriod option

We'd only log every HeartbeatPeriod + 1 seconds. Discovered by Scott
Bennett, reported as bug 4942.

13 years agoUpdate sample torrc file for 0.2.3.x
Roger Dingledine [Wed, 8 Feb 2012 09:40:26 +0000 (04:40 -0500)] 
Update sample torrc file for 0.2.3.x

Fix broken URLs.

Tell readers about the OutboundBindAddress, ExitPolicyRejectPrivate,
and PublishServerDescriptor options.

13 years agoMerge branch 'maint-0.2.2'
Roger Dingledine [Thu, 2 Feb 2012 07:32:44 +0000 (02:32 -0500)] 
Merge branch 'maint-0.2.2'

13 years agoUpdate "ClientOnly" man page entry
Roger Dingledine [Thu, 2 Feb 2012 07:31:28 +0000 (02:31 -0500)] 
Update "ClientOnly" man page entry

There isn't really any point to messing with it. Resolves ticket 5005.

13 years agoMerge branch 'bug4991_v2'
Nick Mathewson [Tue, 31 Jan 2012 20:59:28 +0000 (15:59 -0500)] 
Merge branch 'bug4991_v2'

13 years agoChange WIN32 to _WIN32 in configure.in, too.
Sebastian Hahn [Tue, 31 Jan 2012 17:05:03 +0000 (18:05 +0100)] 
Change WIN32 to _WIN32 in configure.in, too.

13 years agoFix straggling MS_WINDOWS issues; add a changes file
Nick Mathewson [Tue, 31 Jan 2012 16:04:27 +0000 (11:04 -0500)] 
Fix straggling MS_WINDOWS issues; add a changes file

There was one MS_WINDOWS that remained because it wasn't on a macro
line; a few remaining uses (and the definition!) in configure.in;
and a now-nonsensical stanza of eventdns_tor.h that previously
defined 'WIN32' if it didn't exist.

13 years agoUse the standard _WIN32, not the Torism MS_WINDOWS or deprecated WIN32
Nick Mathewson [Tue, 31 Jan 2012 15:59:42 +0000 (10:59 -0500)] 
Use the standard _WIN32, not the Torism MS_WINDOWS or deprecated WIN32

This commit is completely mechanical; I used this perl script to make it:

 #!/usr/bin/perl -w -i.bak -p

 if (/^\s*\#/) {
     s/MS_WINDOWS/_WIN32/g;
     s/\bWIN32\b/_WIN32/g;
 }

13 years agoMerge remote-tracking branch 'arma/bug4013'
Nick Mathewson [Tue, 31 Jan 2012 16:25:29 +0000 (11:25 -0500)] 
Merge remote-tracking branch 'arma/bug4013'

13 years agoActually enable the windows absolute-path code
Nick Mathewson [Tue, 31 Jan 2012 15:42:41 +0000 (10:42 -0500)] 
Actually enable the windows absolute-path code

Checking for "WINDOWS" is wrong; our magic macro is MS_WINDOWS

Fixes bug 4973; bugfix on 0.2.3.11-alpha.

13 years agoif we ever have an old bridge, never again use microdescs
Roger Dingledine [Fri, 27 Jan 2012 22:22:31 +0000 (17:22 -0500)] 
if we ever have an old bridge, never again use microdescs

should reduce the risk of oscillation if our 0.2.2 bridge comes and goes

13 years agoMerge remote-tracking branch 'sebastian/osx_deadstrip'
Nick Mathewson [Fri, 27 Jan 2012 16:49:34 +0000 (11:49 -0500)] 
Merge remote-tracking branch 'sebastian/osx_deadstrip'

13 years agoAllow 0.2.3.x clients to use 0.2.2.x bridges.
Roger Dingledine [Wed, 25 Jan 2012 23:54:59 +0000 (18:54 -0500)] 
Allow 0.2.3.x clients to use 0.2.2.x bridges.

Previously the client would ask the bridge for microdescriptors, which are
only supported in 0.2.3.x and later, and then fail to bootstrap when it
didn't get the answers it wanted. Fixes bug 4013; bugfix on 0.2.3.2-alpha.

The fix here is to revert to using normal descriptors if any of our
bridges are known to not support microdescs. This is not ideal, a) because
we'll start downloading a microdesc consensus as soon as we get a bridge
descriptor, and that will waste time if we later get a bridge descriptor
that tells us we don't like microdescriptors; and b) by changing our mind
we're leaking to our other bridges that we have an old-version bridge.

The alternate fix would have been to change
we_use_microdescriptors_for_circuits() to ask if *any* of our bridges
can support microdescriptors, and then change the directory logic that
picks a bridge to only select from those that do. For people living in
the future, where 0.2.2.x is obsolete, there won't be a difference.

Note that in either of these potential fixes, we have risk of oscillation
if our one funny-looking bridges goes away / comes back.

13 years agoset SO_REUSEADDR before we bind, not after
Roger Dingledine [Mon, 23 Jan 2012 20:54:02 +0000 (15:54 -0500)] 
set SO_REUSEADDR before we bind, not after

resolves bug 4950 (fixes a bug on commit aba7bb705a6 from #2850)

13 years agogo nuts rewriting (changelog) history
Roger Dingledine [Mon, 23 Jan 2012 08:47:48 +0000 (03:47 -0500)] 
go nuts rewriting (changelog) history

13 years agobump to 0.2.3.11-alpha-dev
Roger Dingledine [Mon, 23 Jan 2012 07:34:01 +0000 (02:34 -0500)] 
bump to 0.2.3.11-alpha-dev

13 years agoUse !SOCKET_OK to test if a socket is uninitialized tor-0.2.3.11-alpha
Sebastian Hahn [Mon, 23 Jan 2012 01:06:04 +0000 (02:06 +0100)] 
Use !SOCKET_OK to test if a socket is uninitialized

This fixes a compile warning on Windows. Fixes bug 4946, not in any
released version.

13 years agoupdate comment to reflect our TOR_INVALID_SOCKET convention
Roger Dingledine [Mon, 23 Jan 2012 00:39:29 +0000 (19:39 -0500)] 
update comment to reflect our TOR_INVALID_SOCKET convention

13 years agobump to 0.2.3.11-alpha
Roger Dingledine [Sun, 22 Jan 2012 07:52:38 +0000 (02:52 -0500)] 
bump to 0.2.3.11-alpha

13 years agogive it a blurb and a release date
Roger Dingledine [Sun, 22 Jan 2012 05:49:29 +0000 (00:49 -0500)] 
give it a blurb and a release date

13 years agofold in recent changelog entries
Roger Dingledine [Sun, 22 Jan 2012 05:15:45 +0000 (00:15 -0500)] 
fold in recent changelog entries

13 years agoBetter documentation of transport-related torrc options.
George Kadianakis [Sat, 21 Jan 2012 14:28:48 +0000 (16:28 +0200)] 
Better documentation of transport-related torrc options.

Document ServerTransportPlugin and the managed proxy version of
ClientTransportPlugin.

13 years agoUse dead_strip to reduce binary size on OS X
Sebastian Hahn [Fri, 20 Jan 2012 22:13:35 +0000 (23:13 +0100)] 
Use dead_strip to reduce binary size on OS X

This option seems to be supported all the way back to at least 10.4, so
enabling it for OS X in general should be fine. If not, someone will
yell.

With no libs statically linked, that's a 3% win in binary size, with
just libevent linked statically, this gives us an advantage of 5% in
terms of binary size, and with libevent and openssl statically linked,
we gain over 18% or over 500KB.

Implements ticket 2915.

13 years agoMerge branch 'bug4893'
Nick Mathewson [Wed, 18 Jan 2012 20:54:56 +0000 (15:54 -0500)] 
Merge branch 'bug4893'

13 years agoRename nonconformant identifiers.
Nick Mathewson [Wed, 18 Jan 2012 20:53:30 +0000 (15:53 -0500)] 
Rename nonconformant identifiers.

Fixes bug 4893.

These changes are pure mechanical, and were generated with this
perl script:

  /usr/bin/perl -w -i.bak -p

  s/crypto_pk_env_t/crypto_pk_t/g;
  s/crypto_dh_env_t/crypto_dh_t/g;
  s/crypto_cipher_env_t/crypto_cipher_t/g;
  s/crypto_digest_env_t/crypto_digest_t/g;

  s/aes_free_cipher/aes_cipher_free/g;
  s/crypto_free_cipher_env/crypto_cipher_free/g;
  s/crypto_free_digest_env/crypto_digest_free/g;
  s/crypto_free_pk_env/crypto_pk_free/g;

  s/_crypto_dh_env_get_dh/_crypto_dh_get_dh/g;
  s/_crypto_new_pk_env_rsa/_crypto_new_pk_from_rsa/g;
  s/_crypto_pk_env_get_evp_pkey/_crypto_pk_get_evp_pkey/g;
  s/_crypto_pk_env_get_rsa/_crypto_pk_get_rsa/g;

  s/crypto_new_cipher_env/crypto_cipher_new/g;
  s/crypto_new_digest_env/crypto_digest_new/g;
  s/crypto_new_digest256_env/crypto_digest256_new/g;
  s/crypto_new_pk_env/crypto_pk_new/g;

  s/crypto_create_crypto_env/crypto_cipher_new/g;

  s/connection_create_listener/connection_listener_new/g;
  s/smartlist_create/smartlist_new/g;
  s/transport_create/transport_new/g;

13 years agoMerge remote-tracking branch 'public/bug4533_part1'
Nick Mathewson [Wed, 18 Jan 2012 20:33:04 +0000 (15:33 -0500)] 
Merge remote-tracking branch 'public/bug4533_part1'

Conflicts:
src/common/compat.h

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Wed, 18 Jan 2012 20:29:41 +0000 (15:29 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

13 years agoMerge remote-tracking branch 'public/bug4533_part2' into maint-0.2.2
Nick Mathewson [Wed, 18 Jan 2012 20:29:25 +0000 (15:29 -0500)] 
Merge remote-tracking branch 'public/bug4533_part2' into maint-0.2.2

13 years agoMerge branch 'bug4012_023_squashed'
Nick Mathewson [Wed, 18 Jan 2012 19:50:22 +0000 (14:50 -0500)] 
Merge branch 'bug4012_023_squashed'

13 years agoAdd missing documentation for some options introduced in 0.2.3.x
Nick Mathewson [Tue, 17 Jan 2012 20:51:32 +0000 (15:51 -0500)] 
Add missing documentation for some options introduced in 0.2.3.x

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Wed, 18 Jan 2012 19:45:18 +0000 (14:45 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

13 years agoDocumentation for GiveGuardFlagTo... option
Nick Mathewson [Tue, 17 Jan 2012 20:28:23 +0000 (15:28 -0500)] 
Documentation for GiveGuardFlagTo... option

13 years agoUse tor_socket_t, not unsigned, in tor-fw-helper-natmp.c
Nick Mathewson [Wed, 18 Jan 2012 18:14:44 +0000 (13:14 -0500)] 
Use tor_socket_t, not unsigned, in tor-fw-helper-natmp.c

13 years agoFix SOCKET_OK test on win64.
Nick Mathewson [Wed, 18 Jan 2012 15:47:22 +0000 (10:47 -0500)] 
Fix SOCKET_OK test on win64.

Bugfix on 0.2.2.29-beta; partial fix for 4533; found by wanoskarnet

13 years agoWarn if sizeof(tor_socket_t) != sizeof(SOCKET)
Nick Mathewson [Tue, 17 Jan 2012 21:38:47 +0000 (16:38 -0500)] 
Warn if sizeof(tor_socket_t) != sizeof(SOCKET)

13 years agoUse SOCKET_OK macros in even more places
Nick Mathewson [Tue, 17 Jan 2012 21:35:07 +0000 (16:35 -0500)] 
Use SOCKET_OK macros in even more places

Add a TOR_INVALID_SOCKET macro to wrap -1/INVALID_SOCKET.

Partial work for bug4533.

13 years agofix crash bug in original feature4207 branch
Roger Dingledine [Tue, 17 Jan 2012 02:20:46 +0000 (21:20 -0500)] 
fix crash bug in original feature4207 branch

PLURAL() assumes that the plural is the canonical name for the option,
so now it is.

13 years agoMerge remote-tracking branch 'asn-mytor/bug4751'
Nick Mathewson [Mon, 16 Jan 2012 20:16:41 +0000 (15:16 -0500)] 
Merge remote-tracking branch 'asn-mytor/bug4751'

13 years agoMerge remote-tracking branch 'public/bug3325'
Nick Mathewson [Mon, 16 Jan 2012 20:10:38 +0000 (15:10 -0500)] 
Merge remote-tracking branch 'public/bug3325'

13 years agoMerge branch 'bug4889_v2'
Nick Mathewson [Mon, 16 Jan 2012 20:07:58 +0000 (15:07 -0500)] 
Merge branch 'bug4889_v2'

13 years agowhitespace fixes
Nick Mathewson [Wed, 11 Jan 2012 19:53:17 +0000 (14:53 -0500)] 
whitespace fixes

13 years agoConvert instances of tor_malloc+tor_snprintf into tor_asprintf
Nick Mathewson [Wed, 11 Jan 2012 19:02:59 +0000 (14:02 -0500)] 
Convert instances of tor_malloc+tor_snprintf into tor_asprintf

These were found by looking for tor_snprintf() instances that were
preceeded closely by tor_malloc(), though I probably converted some
more snprintfs as well.

(In every case, make sure that the length variable (if any) is
removed, renamed, or lowered, so that anything else that might have
assumed a longer buffer doesn't exist.)

13 years agoConvert instances of tor_snprintf+strdup into tor_asprintf
Nick Mathewson [Wed, 11 Jan 2012 19:02:59 +0000 (14:02 -0500)] 
Convert instances of tor_snprintf+strdup into tor_asprintf

These were found by looking for tor_snprintf() instances that were
followed closely by tor_strdup(), though I probably converted some
other snprintfs as well.

13 years agoTry to use smartlist_add_asprintf consistently
Nick Mathewson [Wed, 11 Jan 2012 18:44:10 +0000 (13:44 -0500)] 
Try to use smartlist_add_asprintf consistently

(To ensure correctness, in every case, make sure that the temporary
variable is deleted, renamed, or lowered in scope, so we can't have
any bugs related to accidentally relying on the no-longer-filled
variable.)

13 years agoRename smartlist_{v,}asprintf_add to smartlist_add_{v,}asprintf
Nick Mathewson [Wed, 11 Jan 2012 18:15:52 +0000 (13:15 -0500)] 
Rename smartlist_{v,}asprintf_add to smartlist_add_{v,}asprintf

13 years agoMerge branch 'feature3946_squashed'
Nick Mathewson [Mon, 16 Jan 2012 19:50:22 +0000 (14:50 -0500)] 
Merge branch 'feature3946_squashed'

13 years agocheck-spaces fix
Sebastian Hahn [Sat, 14 Jan 2012 02:58:11 +0000 (03:58 +0100)] 
check-spaces fix

13 years agoProvide consensus params to constrain the threshold for Fast
Nick Mathewson [Fri, 13 Jan 2012 17:05:08 +0000 (12:05 -0500)] 
Provide consensus params to constrain the threshold for Fast

resolves ticket 3946

13 years agoComment fixups on 4207 suggested by arma
Nick Mathewson [Mon, 16 Jan 2012 19:45:12 +0000 (14:45 -0500)] 
Comment fixups on 4207 suggested by arma

13 years agoAllow authorities to baddir/badexit/invalid/reject nodes by cc
Nick Mathewson [Fri, 13 Jan 2012 17:28:32 +0000 (12:28 -0500)] 
Allow authorities to baddir/badexit/invalid/reject nodes by cc

Implements ticket #4207

13 years agoImprove names of some pluggable transport-related functions.
George Kadianakis [Fri, 13 Jan 2012 14:44:30 +0000 (16:44 +0200)] 
Improve names of some pluggable transport-related functions.

13 years agoDon't crash when HS circs which have not yet found an OR conn time out
Robert Ransom [Fri, 13 Jan 2012 03:20:52 +0000 (19:20 -0800)] 
Don't crash when HS circs which have not yet found an OR conn time out

Fixes bug #4897, not yet in any release.

Using n_circ_id alone here (and below, when n_conn is NULL) really sucks,
but that's a separate bug which will need a changes/ file.

13 years agoMove logging of bad hostnames into parse_extended_hostname
Nick Mathewson [Wed, 11 Jan 2012 20:55:21 +0000 (15:55 -0500)] 
Move logging of bad hostnames into parse_extended_hostname

This fixes bug 3325, where a bad .exit would get logged as a bad .onion

13 years agoMake openssl 0.9.8l log message accurate
Nick Mathewson [Wed, 11 Jan 2012 20:41:46 +0000 (15:41 -0500)] 
Make openssl 0.9.8l log message accurate

fixes 4837

13 years agoDo not pretend to allow PADDING as the first cell of a v3 handshake
Nick Mathewson [Wed, 11 Jan 2012 17:34:28 +0000 (12:34 -0500)] 
Do not pretend to allow PADDING as the first cell of a v3 handshake

13 years agoMerge branch 'prop187_squashed'
Nick Mathewson [Wed, 11 Jan 2012 17:27:14 +0000 (12:27 -0500)] 
Merge branch 'prop187_squashed'

13 years agoFix a missing iso_time_nospace_usec
Nick Mathewson [Wed, 11 Jan 2012 17:23:43 +0000 (12:23 -0500)] 
Fix a missing iso_time_nospace_usec

Apparently I missed a case when converting sec,usec to
yyyy-mm-ddThh:mm:ss.uuuuuu .

13 years agoMerge branch 'feature3457-v4-nm-squashed'
Nick Mathewson [Wed, 11 Jan 2012 17:10:14 +0000 (12:10 -0500)] 
Merge branch 'feature3457-v4-nm-squashed'

Conflicts:
src/or/rendclient.c