]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Fri, 17 Feb 2012 16:50:19 +0000 (11:50 -0500)]
Use get_environment(), not environ.
Nick Mathewson [Fri, 17 Feb 2012 16:50:10 +0000 (11:50 -0500)]
Merge branch 'bug5105-v2-squashed'
Conflicts:
src/or/transports.c
Robert Ransom [Thu, 16 Feb 2012 06:41:49 +0000 (22:41 -0800)]
Add unit tests for easily tested, non-trivial utility functions
Robert Ransom [Wed, 15 Feb 2012 22:09:53 +0000 (14:09 -0800)]
Heap-allocate strings returned by get_current_process_environment_variables
Robert Ransom [Mon, 13 Feb 2012 08:59:49 +0000 (00:59 -0800)]
Pass process_environment_t * to tor_spawn_background
Now tor_spawn_background's prototype is OS-independent.
Robert Ransom [Mon, 13 Feb 2012 08:47:54 +0000 (00:47 -0800)]
Remove (void)envp from tor_spawn_background
The envp argument is used on Windows.
Robert Ransom [Mon, 13 Feb 2012 08:46:18 +0000 (00:46 -0800)]
Rewrite managed proxy environment setup code
Now, the environment setup is entirely OS-independent, as well as less
hacky and brittle.
Robert Ransom [Mon, 13 Feb 2012 08:43:48 +0000 (00:43 -0800)]
Change type of unixoid_environment_block to match tor_spawn_background's arg
Robert Ransom [Mon, 13 Feb 2012 05:17:11 +0000 (21:17 -0800)]
Add set_environment_variable_in_smartlist
Robert Ransom [Mon, 13 Feb 2012 04:34:52 +0000 (20:34 -0800)]
Add get_current_process_environment_variables
Robert Ransom [Mon, 13 Feb 2012 04:14:48 +0000 (20:14 -0800)]
Add process_environment_make and related utilities
Robert Ransom [Mon, 13 Feb 2012 04:09:56 +0000 (20:09 -0800)]
Add tor_calloc
Nick Mathewson [Thu, 16 Feb 2012 20:22:15 +0000 (15:22 -0500)]
Merge remote-tracking branch 'asn/bug4725_take2'
Nick Mathewson [Wed, 15 Feb 2012 17:58:36 +0000 (12:58 -0500)]
Downgrade "Registered server transport" msg to notice. Bug 5136
George Kadianakis [Tue, 14 Feb 2012 23:25:39 +0000 (01:25 +0200)]
Add a belated changes file for #4725.
Sebastian Hahn [Tue, 14 Feb 2012 20:53:50 +0000 (21:53 +0100)]
Include compat.h from natpmp-helper to fix build
This means tor_socket_t is declared.
Sebastian Hahn [Tue, 14 Feb 2012 11:21:03 +0000 (12:21 +0100)]
Use _NSGetEnviron() instead of environ where required
OS X would otherwise crash with a segfault when linked statically to
some libraries.
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.
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
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.
Nick Mathewson [Mon, 13 Feb 2012 22:56:13 +0000 (17:56 -0500)]
ht.h comment tweaks, upstreamed from libevent
Nick Mathewson [Mon, 13 Feb 2012 22:48:43 +0000 (17:48 -0500)]
Oops; there were a couple of typos in the upstream tinytest
Nick Mathewson [Mon, 13 Feb 2012 22:45:15 +0000 (17:45 -0500)]
Synchronize with upstream tinytest again: remove _identifiers
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.
Roger Dingledine [Mon, 13 Feb 2012 15:53:49 +0000 (10:53 -0500)]
bump to 0.2.3.12-alpha-dev
Roger Dingledine [Mon, 13 Feb 2012 14:59:23 +0000 (09:59 -0500)]
add a release blurb for 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
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
Roger Dingledine [Mon, 13 Feb 2012 05:16:05 +0000 (00:16 -0500)]
revise changelog entry for 5097 too
Roger Dingledine [Mon, 13 Feb 2012 05:14:17 +0000 (00:14 -0500)]
Merge branch 'tmp'
Nick Mathewson [Mon, 13 Feb 2012 05:00:40 +0000 (00:00 -0500)]
Reinstate TOR_PR_EXTENDED_SERVER_PORT, just a little
Nick Mathewson [Mon, 13 Feb 2012 04:40:23 +0000 (23:40 -0500)]
Merge branch 'bug5082_squashed'
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.
Sebastian Hahn [Sat, 11 Feb 2012 20:00:50 +0000 (21:00 +0100)]
Properly set up environment for managed-mode obfsproxy
Roger Dingledine [Mon, 13 Feb 2012 04:39:30 +0000 (23:39 -0500)]
integrate recent changes files
Nick Mathewson [Mon, 13 Feb 2012 04:32:53 +0000 (23:32 -0500)]
Merge branch 'bug5084_squashed'
Nick Mathewson [Mon, 13 Feb 2012 04:19:15 +0000 (23:19 -0500)]
Add a changes file for bug5084
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.
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.
Sebastian Hahn [Thu, 9 Feb 2012 15:22:01 +0000 (16:22 +0100)]
Fix a check-spaces complaint
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
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
Robert Ransom [Sun, 12 Feb 2012 23:44:10 +0000 (15:44 -0800)]
Fix #5097 on Windows, too
Robert Ransom [Sun, 12 Feb 2012 08:10:28 +0000 (00:10 -0800)]
Fix bug #5097: remove bogus envvar from managed proxies' environment
Roger Dingledine [Sun, 12 Feb 2012 03:14:59 +0000 (22:14 -0500)]
fold in changes for 0.2.3.12-alpha
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)
Nick Mathewson [Fri, 10 Feb 2012 17:03:46 +0000 (12:03 -0500)]
Merge remote-tracking branch 'origin/maint-0.2.2'
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.
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)
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
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
Roger Dingledine [Thu, 9 Feb 2012 09:21:20 +0000 (04:21 -0500)]
Merge branch '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
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
Roger Dingledine [Thu, 9 Feb 2012 09:02:18 +0000 (04:02 -0500)]
Merge branch 'maint-0.2.2'
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.
Karsten Loesing [Thu, 9 Feb 2012 08:16:24 +0000 (09:16 +0100)]
Update to the February 2012 GeoIP database.
Nick Mathewson [Wed, 8 Feb 2012 15:52:34 +0000 (10:52 -0500)]
Merge remote-tracking branch 'origin/maint-0.2.2'
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
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.
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.
Roger Dingledine [Thu, 2 Feb 2012 07:32:44 +0000 (02:32 -0500)]
Merge branch 'maint-0.2.2'
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.
Nick Mathewson [Tue, 31 Jan 2012 20:59:28 +0000 (15:59 -0500)]
Merge branch 'bug4991_v2'
Sebastian Hahn [Tue, 31 Jan 2012 17:05:03 +0000 (18:05 +0100)]
Change WIN32 to _WIN32 in configure.in, too.
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.
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;
}
Nick Mathewson [Tue, 31 Jan 2012 16:25:29 +0000 (11:25 -0500)]
Merge remote-tracking branch 'arma/bug4013'
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.
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
Nick Mathewson [Fri, 27 Jan 2012 16:49:34 +0000 (11:49 -0500)]
Merge remote-tracking branch 'sebastian/osx_deadstrip'
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.
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)
Roger Dingledine [Mon, 23 Jan 2012 08:47:48 +0000 (03:47 -0500)]
go nuts rewriting (changelog) history
Roger Dingledine [Mon, 23 Jan 2012 07:34:01 +0000 (02:34 -0500)]
bump to 0.2.3.11-alpha-dev
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.
Roger Dingledine [Mon, 23 Jan 2012 00:39:29 +0000 (19:39 -0500)]
update comment to reflect our TOR_INVALID_SOCKET convention
Roger Dingledine [Sun, 22 Jan 2012 07:52:38 +0000 (02:52 -0500)]
bump to 0.2.3.11-alpha
Roger Dingledine [Sun, 22 Jan 2012 05:49:29 +0000 (00:49 -0500)]
give it a blurb and a release date
Roger Dingledine [Sun, 22 Jan 2012 05:15:45 +0000 (00:15 -0500)]
fold in recent changelog entries
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.
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.
Nick Mathewson [Wed, 18 Jan 2012 20:54:56 +0000 (15:54 -0500)]
Merge branch 'bug4893'
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;
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
Nick Mathewson [Wed, 18 Jan 2012 20:29:41 +0000 (15:29 -0500)]
Merge remote-tracking branch 'origin/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
Nick Mathewson [Wed, 18 Jan 2012 19:50:22 +0000 (14:50 -0500)]
Merge branch 'bug4012_023_squashed'
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
Nick Mathewson [Wed, 18 Jan 2012 19:45:18 +0000 (14:45 -0500)]
Merge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Tue, 17 Jan 2012 20:28:23 +0000 (15:28 -0500)]
Documentation for GiveGuardFlagTo... option
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
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
Nick Mathewson [Tue, 17 Jan 2012 21:38:47 +0000 (16:38 -0500)]
Warn if sizeof(tor_socket_t) != sizeof(SOCKET)
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.
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.
Nick Mathewson [Mon, 16 Jan 2012 20:16:41 +0000 (15:16 -0500)]
Merge remote-tracking branch 'asn-mytor/bug4751'
Nick Mathewson [Mon, 16 Jan 2012 20:10:38 +0000 (15:10 -0500)]
Merge remote-tracking branch 'public/bug3325'
Nick Mathewson [Mon, 16 Jan 2012 20:07:58 +0000 (15:07 -0500)]
Merge branch 'bug4889_v2'
Nick Mathewson [Wed, 11 Jan 2012 19:53:17 +0000 (14:53 -0500)]
whitespace fixes