]>
git.ipfire.org Git - thirdparty/tor.git/log
Robert Ransom [Tue, 31 May 2011 14:05:40 +0000 (07:05 -0700)]
Don't allow tor2web-mode Tors to connect to non-HS addresses
The client's anonymity when accessing a non-HS address in tor2web-mode
would be easily nuked by inserting an inline image with a .onion URL, so
don't even pretend to access non-HS addresses through Tor.
Robert Ransom [Thu, 24 Nov 2011 00:46:38 +0000 (16:46 -0800)]
Warn loudly on startup and SIGHUP if Tor is built for a non-anonymous mode
Robert Ransom [Thu, 24 Nov 2011 00:58:15 +0000 (16:58 -0800)]
Add a compile-time #define to control whether Tor runs in 'tor2web mode'
The Tor2webMode torrc option is still required to run a Tor client in
'tor2web mode', but now it can't be turned on at runtime in a normal build
of Tor. (And a tor2web build of Tor can't be used as a normal Tor client,
so we don't have to worry as much about someone distributing packages with
this particular pistol accessible to normal users.)
Robert Ransom [Wed, 1 Jun 2011 14:03:01 +0000 (07:03 -0700)]
Add Tor2webMode configuration option
Sebastian Hahn [Thu, 24 Nov 2011 08:24:59 +0000 (09:24 +0100)]
Update check-spaces to remove false positive for timercmp macro
The timercmp macro uses triggers a "space between function name and
opening parentheses" warning for the check spaces script. Work around
this by simply disabling the check for all "functions" named 'op()'.
Sebastian Hahn [Thu, 24 Nov 2011 08:20:51 +0000 (09:20 +0100)]
appease check-spaces
Sebastian Hahn [Thu, 24 Nov 2011 08:16:43 +0000 (09:16 +0100)]
Fix compile warning in tor_inet_pton() (on 64bit)
This slipped through into 0.2.3.8-alpha unfortunately.
Nick Mathewson [Wed, 23 Nov 2011 22:14:54 +0000 (17:14 -0500)]
Merge branch 'bug2474'
Had to resolve conflicts wrt the " (using bufferevents)" addition to the
startup string.
Conflicts:
src/or/main.c
Nick Mathewson [Wed, 23 Nov 2011 22:09:36 +0000 (17:09 -0500)]
Tweak the "this is not a stable release" warning some more
Nick Mathewson [Wed, 23 Nov 2011 21:28:18 +0000 (16:28 -0500)]
Merge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Wed, 23 Nov 2011 21:22:26 +0000 (16:22 -0500)]
Merge remote-tracking branch 'public/bug4230' into maint-0.2.2
Nick Mathewson [Wed, 23 Nov 2011 17:12:52 +0000 (12:12 -0500)]
Merge remote-tracking branch 'origin/maint-0.2.2'
Sebastian Hahn [Wed, 23 Nov 2011 00:41:37 +0000 (01:41 +0100)]
Fix a compile warning on 64bit OS X
Backport of
68475fc5c5a806ebbb5657de1667dab2c3e09b7c which accidentally
only made it into master. Fixes bug 4547. Bug isn't in any released
version.
Roger Dingledine [Wed, 23 Nov 2011 09:41:46 +0000 (04:41 -0500)]
sebastian is the new karsten, i hear
Roger Dingledine [Wed, 23 Nov 2011 09:41:19 +0000 (04:41 -0500)]
bump to 0.2.3.8-alpha-dev
Sebastian Hahn [Wed, 23 Nov 2011 00:41:37 +0000 (01:41 +0100)]
Fix a compile warning on 64bit OS X
Roger Dingledine [Tue, 22 Nov 2011 23:29:57 +0000 (18:29 -0500)]
bump to 0.2.3.8-alpha
Roger Dingledine [Tue, 22 Nov 2011 23:29:34 +0000 (18:29 -0500)]
add a blurb for 0.2.3.8-alpha
Roger Dingledine [Tue, 22 Nov 2011 00:34:30 +0000 (19:34 -0500)]
and rm the old ones
Roger Dingledine [Tue, 22 Nov 2011 00:34:12 +0000 (19:34 -0500)]
fold in more changes files
Roger Dingledine [Mon, 21 Nov 2011 23:45:44 +0000 (18:45 -0500)]
update the man page for the new AuthDirFastGuarantee value
Roger Dingledine [Thu, 17 Nov 2011 03:08:01 +0000 (22:08 -0500)]
raise AuthDirFastGuarantee from 20KB to 100KB
This patch reverts part of
39ceda7e05d7 (where it used to be 100KB).
Roger Dingledine [Mon, 21 Nov 2011 23:42:07 +0000 (18:42 -0500)]
apparently or_options_t likes being a const in master
Roger Dingledine [Mon, 21 Nov 2011 23:36:49 +0000 (18:36 -0500)]
Merge branch 'maint-0.2.2'
Conflicts:
src/or/dirserv.c
Roger Dingledine [Mon, 21 Nov 2011 23:32:32 +0000 (18:32 -0500)]
man page entries for AuthDir{Fast,GuardBW}Guarantee
Roger Dingledine [Thu, 17 Nov 2011 01:55:33 +0000 (20:55 -0500)]
parameterize bw cutoffs to guarantee Fast and Guard flags
Now it will be easier for researchers to simulate Tor networks with
different values. Resolves ticket 4484.
Roger Dingledine [Mon, 21 Nov 2011 23:04:01 +0000 (18:04 -0500)]
fold in more changes entries
Nick Mathewson [Mon, 21 Nov 2011 22:25:51 +0000 (17:25 -0500)]
Merge branch 'bug4518' into maint-0.2.2
Roger Dingledine [Mon, 21 Nov 2011 04:12:34 +0000 (23:12 -0500)]
further cleanups
Roger Dingledine [Mon, 21 Nov 2011 02:40:03 +0000 (21:40 -0500)]
fold in more changes entries
Nick Mathewson [Mon, 21 Nov 2011 15:52:38 +0000 (10:52 -0500)]
Merge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Mon, 21 Nov 2011 15:52:15 +0000 (10:52 -0500)]
Merge remote-tracking branch 'public/bug3963' into maint-0.2.2
Nick Mathewson [Mon, 21 Nov 2011 15:48:02 +0000 (10:48 -0500)]
Merge branch 'bug4360'
Nick Mathewson [Mon, 21 Nov 2011 15:47:57 +0000 (10:47 -0500)]
Changes file for bug4360
Nick Mathewson [Mon, 21 Nov 2011 01:16:49 +0000 (20:16 -0500)]
Merge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Mon, 21 Nov 2011 01:15:13 +0000 (20:15 -0500)]
Changes file for bug4521 backports.
Sebastian Hahn [Tue, 9 Aug 2011 08:59:03 +0000 (10:59 +0200)]
Sockets are unsigned on windows
this gets rid of a warning about signed/unsigned comparison
This is a backport of
0a5338e03cdf14ef80584c6ff8adeb49200b8a76 that
accidentally only went into master
Nick Mathewson [Thu, 3 Nov 2011 17:01:59 +0000 (13:01 -0400)]
Log more loudly on a bad cert from an authority.
Clock skew made this situation way too frequent so we demoted it to
"protocol_warn", but when there's an authority, it should really just
be warn.
Sebastian Hahn [Tue, 9 Aug 2011 09:00:25 +0000 (11:00 +0200)]
Get rid of an unused parameter warning on win
This is a backport of
bed79c47f4ec0ee72b19e2b81c54131d516d07ef which
accidentally only went into master
Nick Mathewson [Sat, 19 Nov 2011 23:46:15 +0000 (18:46 -0500)]
changes file for bug4515
Nick Mathewson [Sat, 19 Nov 2011 23:29:42 +0000 (18:29 -0500)]
Only call cull_wedged_cpuworkers once every 60 seconds.
The function is over 10 or 20% on some of Moritz's profiles, depending
on how you could.
Since it's checking for a multi-hour timeout, this is safe to do.
Fixes bug 4518.
Anders Sundman [Fri, 18 Nov 2011 22:52:00 +0000 (23:52 +0100)]
Imporved unit test coverage for tor_inet_pton
Anders Sundman [Fri, 18 Nov 2011 22:37:54 +0000 (23:37 +0100)]
Minor tor_inet_pton bug fixes
In particular:
* Disallow "0x10::"
* Don't blow up on ":"
* Disallow "::10000"
Nick Mathewson [Sat, 19 Nov 2011 00:09:08 +0000 (19:09 -0500)]
Merge remote-tracking branch 'origin/maint-0.2.2'
Sebastian Hahn [Fri, 18 Nov 2011 23:50:03 +0000 (00:50 +0100)]
Don't log about stats when running as a client without geoip
Completely disable stats if we aren't running as a relay. We won't
collect any anyway, so setting up the infrastructure for them and
logging about them is wrong. This also removes a confusing log
message that clients without a geoip db would have seen.
Fixes bug 4353.
Nick Mathewson [Fri, 18 Nov 2011 23:42:49 +0000 (18:42 -0500)]
Merge remote-tracking branch 'public/benchmark'
Nick Mathewson [Thu, 17 Nov 2011 22:14:49 +0000 (17:14 -0500)]
Fix a couple of memory leaks in rend_add_service spotted by coverity
Roger Dingledine [Wed, 16 Nov 2011 23:59:20 +0000 (18:59 -0500)]
trivial code cleanup in generate_v2_networkstatus_opinion()
Roger Dingledine [Wed, 16 Nov 2011 23:10:13 +0000 (18:10 -0500)]
fix trivial typo
somebody should s/authoritative directory server/directory authority/g
at some point
Nick Mathewson [Wed, 16 Nov 2011 22:30:24 +0000 (17:30 -0500)]
Merge remote-tracking branch 'sebastian/bug2893'
Nick Mathewson [Wed, 16 Nov 2011 21:23:24 +0000 (16:23 -0500)]
Merge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Wed, 16 Nov 2011 21:23:15 +0000 (16:23 -0500)]
Merge branch 'bug4457_master'
Nick Mathewson [Wed, 16 Nov 2011 21:22:47 +0000 (16:22 -0500)]
Merge branch 'bug4457_022' into maint-0.2.2
Sebastian Hahn [Wed, 16 Nov 2011 16:44:20 +0000 (17:44 +0100)]
Eat all whitespace after a control command
Roger Dingledine [Mon, 11 Apr 2011 20:51:10 +0000 (16:51 -0400)]
allow manual control port authenticate via netcat
Sebastian Hahn [Wed, 16 Nov 2011 15:40:56 +0000 (16:40 +0100)]
Fix a check-spaces complaint
Sebastian Hahn [Wed, 16 Nov 2011 15:39:04 +0000 (16:39 +0100)]
Don't allow building on platforms where AF_UNSPEC != 0
Sebastian Hahn [Wed, 16 Nov 2011 13:07:10 +0000 (14:07 +0100)]
Don't fail to send netinfo if real_addr is unset
If we haven't set real_addr on a connection, we also now that _base.addr
hasn't been tampered with. So we can use that.
Nick Mathewson [Tue, 15 Nov 2011 20:58:00 +0000 (15:58 -0500)]
Merge branch 'bug4371_squashed'
Nick Mathewson [Tue, 15 Nov 2011 16:56:21 +0000 (11:56 -0500)]
Make certificate skew into a protocol warning
Nick Mathewson [Tue, 15 Nov 2011 03:21:45 +0000 (22:21 -0500)]
Allow up to a 30 days future skew, 48 hours past skew in certs.
Nick Mathewson [Tue, 15 Nov 2011 16:59:37 +0000 (11:59 -0500)]
Merge remote-tracking branch 'sebastian/bug4469'
Nick Mathewson [Tue, 15 Nov 2011 16:42:38 +0000 (11:42 -0500)]
Merge remote-tracking branch 'origin/maint-0.2.2'
Sebastian Hahn [Tue, 15 Nov 2011 12:29:32 +0000 (13:29 +0100)]
Fix compile warnings on windows
Nick Mathewson [Tue, 15 Nov 2011 03:42:10 +0000 (22:42 -0500)]
Use real_addr in send_netinfo
Reported by "troll_un"; bugfix on 0.2.0.10-alpha; fixes bug 4349.
Nick Mathewson [Tue, 15 Nov 2011 03:35:49 +0000 (22:35 -0500)]
Merge remote-tracking branch 'public/bug4367'
Nick Mathewson [Mon, 14 Nov 2011 23:12:29 +0000 (18:12 -0500)]
Disable IOCP and retry event_base_new_with_config once on failure
This is a fancier bug4457 workaround for 0.2.3. In 0.2.2, we could
just tell Libevent "Don't enable locking!" so it wouldn't try to make
the event_base notifiable. But for IOCP, we need a notifiable base.
(Eventually, we'll want a notifiable base for other stuff, like
multithreaded crypto.) So the solution is to try a full-featured
initialization, and then retry with all the options turned off if that
fails.
Nick Mathewson [Mon, 14 Nov 2011 22:59:42 +0000 (17:59 -0500)]
Merge remote-tracking branch 'public/bug4457_022' into bug4457_master
Conflicts:
src/common/compat_libevent.c
Resolving conflict by not taking
7363eae13cb8 ("Use the
EVENT_BASE_FLAG_NOLOCK flag to prevent socketpair() invocation"): in
Tor 0.2.3.x, we _do_ sometimes use notifiable event bases.
Nick Mathewson [Mon, 14 Nov 2011 22:53:45 +0000 (17:53 -0500)]
Detect failure from event_init() or event_base_new_with_config()
Nick Mathewson [Mon, 14 Nov 2011 22:46:43 +0000 (17:46 -0500)]
Use the EVENT_BASE_FLAG_NOLOCK flag to prevent socketpair() invocation
In Tor 0.2.2, we never need the event base to be notifiable, since we
don't call it from other threads. This is a workaround for bug 4457,
which is not actually a Tor bug IMO.
Nick Mathewson [Mon, 14 Nov 2011 17:53:34 +0000 (12:53 -0500)]
Merge remote-tracking branch '4ZM/topic/test/4433_address'
Nick Mathewson [Mon, 14 Nov 2011 16:10:45 +0000 (11:10 -0500)]
Merge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Mon, 14 Nov 2011 16:10:27 +0000 (11:10 -0500)]
Merge remote-tracking branch 'origin/maint-0.2.1' into maint-0.2.2
Nick Mathewson [Mon, 14 Nov 2011 16:10:10 +0000 (11:10 -0500)]
Merge remote-tracking branch 'karsten/geoip-november2011' into maint-0.2.1
Gisle Vanem [Sat, 12 Nov 2011 04:49:02 +0000 (23:49 -0500)]
Fix test_util.c compilation on MSVC
"Those '{}' constructs are not well liked by MSVC (cl v.16.xx)."
Received on tor-dev; fixes bug on 0.2.3.3-alpha.
Nick Mathewson [Fri, 11 Nov 2011 18:06:17 +0000 (13:06 -0500)]
All-in-one benchmark test for cell crypto
Nick Mathewson [Fri, 11 Nov 2011 17:46:22 +0000 (12:46 -0500)]
Convert bench_dmap to produce reasonable output.
Nick Mathewson [Fri, 11 Nov 2011 17:34:03 +0000 (12:34 -0500)]
New src/test/bench.c to allow us to actually _run_ benchmark code
Yes, the timing functions are suboptimal. Please improve!
Sebastian Hahn [Wed, 9 Nov 2011 10:06:37 +0000 (11:06 +0100)]
Remove the torint.h include from aes.h
This hasn't been needed for a while, there's nothing in aes.h now that
would need uint* stuff.
Sebastian Hahn [Wed, 9 Nov 2011 09:54:00 +0000 (10:54 +0100)]
Fix the bench_{aes,dmap} test functions to work with TT
TT expects them to be named test_bench_{aes,dmap}. Also change the
DISABLED macro to reflect that.
Nick Mathewson [Wed, 9 Nov 2011 03:57:15 +0000 (22:57 -0500)]
Remove vestiges of RIJNDAEL_COUNTER_OPTIMIZATION
Nick Mathewson [Wed, 9 Nov 2011 03:54:52 +0000 (22:54 -0500)]
Stop using "u32" and "u8" in aes.c
Nick Mathewson [Wed, 9 Nov 2011 03:51:59 +0000 (22:51 -0500)]
Dump our internal AES implementation
This thing was pretty pointless on versions of OpenSSL 0.9.8 and later,
and almost totally pointless on OpenSSL 1.0.0.
Also, favor EVP by default, since it lets us get hardware acceleration
where present. (See issue 4442)
Nick Mathewson [Fri, 11 Nov 2011 16:11:15 +0000 (11:11 -0500)]
Changes file for patches from 4ZM
Nick Mathewson [Fri, 11 Nov 2011 16:07:29 +0000 (11:07 -0500)]
Merge remote-tracking branch '4ZM/topic/test/4434_address'
Anders Sundman [Fri, 11 Nov 2011 06:55:20 +0000 (07:55 +0100)]
Unit tests for tor_addr_to_str
Anders Sundman [Fri, 11 Nov 2011 07:05:50 +0000 (08:05 +0100)]
Unit tests for tor_addr_to_PTR_name
Anders Sundman [Fri, 11 Nov 2011 07:04:05 +0000 (08:04 +0100)]
Return value bugfix of tor_addr_to_PTR_name
Returns value semantics was inconsitent between IPv4 and IPv6
Anders Sundman [Fri, 11 Nov 2011 06:53:58 +0000 (07:53 +0100)]
Fixed buffer bounds check bug in tor_addr_to_str
Anders Sundman [Fri, 11 Nov 2011 06:49:41 +0000 (07:49 +0100)]
Unit tests for tor_inet_ntop
Anders Sundman [Fri, 11 Nov 2011 06:47:00 +0000 (07:47 +0100)]
Fixed of-by-one error in tor_inet_ntop
The of-by-one error could lead to 1 byte buffer over runs IPv6 for addresses.
Anders Sundman [Mon, 31 Oct 2011 22:48:29 +0000 (23:48 +0100)]
Unit tests for eat_whitespace functions
Anders Sundman [Mon, 31 Oct 2011 22:47:11 +0000 (23:47 +0100)]
Unit test for n_bits_set func
Anders Sundman [Mon, 31 Oct 2011 22:36:35 +0000 (23:36 +0100)]
Unit test for hex_str func
Note: Too long input is undefined by contract. That behaviour should not be asserted in test.
Nick Mathewson [Wed, 9 Nov 2011 17:08:28 +0000 (12:08 -0500)]
Correct the handling of overflow behavior in smartlist_ensure_capacity
The old behavior was susceptible to the compiler optimizing out our
assertion check, *and* could still overflow size_t on 32-bit systems
even when it did work.
Nick Mathewson [Wed, 9 Nov 2011 16:04:40 +0000 (11:04 -0500)]
Merge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Wed, 9 Nov 2011 16:03:20 +0000 (11:03 -0500)]
Merge remote-tracking branch 'rransom-tor/bug4426' into maint-0.2.2
Nick Mathewson [Wed, 9 Nov 2011 15:28:43 +0000 (10:28 -0500)]
Merge remote-tracking branch 'origin/maint-0.2.2'
Sebastian Hahn [Tue, 8 Nov 2011 07:09:40 +0000 (08:09 +0100)]
Don't warn when compiling with --disable-threads
STMT_VOID semantics suggested by nick, thanks!
Nick Mathewson [Wed, 9 Nov 2011 05:23:44 +0000 (00:23 -0500)]
Rewrite comment at head of eventdns.c
Let's make it more obvious to the everyday reader that eventdns.c is
a) Based on Libevent's evdns.c
b) Slated for demolition
c) Supposed to keep API-compatibility with Libevent.
d) Not worth tweaking unless there's a bug.