]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Sun, 27 Nov 2011 13:29:51 +0000 (08:29 -0500)]
Set renegotiation callbacks immediately on tls inititation
This way, we can't miss a renegotiation attempt in a v2 handshake,
or miss excess renegotiation attempts. Partial fix for bug 4587.
Nick Mathewson [Sun, 27 Nov 2011 13:21:59 +0000 (08:21 -0500)]
Don't schedule excess_renegotiations_callback unless it's set
Partial fix for bug 4587; reported by "frosty_un".
Roger Dingledine [Sat, 26 Nov 2011 00:24:42 +0000 (19:24 -0500)]
fold in changes files so far
Nick Mathewson [Sat, 26 Nov 2011 00:09:48 +0000 (19:09 -0500)]
use event_free() wrapper; fix bug 4582
Nick Mathewson [Fri, 25 Nov 2011 22:22:46 +0000 (17:22 -0500)]
Fix some wide lines in tortls.c
Nick Mathewson [Fri, 25 Nov 2011 22:21:11 +0000 (17:21 -0500)]
Avoid a double-mark in connection_or_close_connection_cb
Nick Mathewson [Fri, 25 Nov 2011 22:18:03 +0000 (17:18 -0500)]
Refactor tor_event_base_once to do what we actually want
This version avoids the timeout system entirely, gives a nicer
interface, and lets us manage allocation explicitly.
Nick Mathewson [Fri, 25 Nov 2011 22:00:47 +0000 (17:00 -0500)]
Merge remote-tracking branch 'asn/bug4312'
Nick Mathewson [Fri, 25 Nov 2011 21:54:06 +0000 (16:54 -0500)]
Make the pt/transports test not crash.
Nick Mathewson [Fri, 25 Nov 2011 21:47:25 +0000 (16:47 -0500)]
Make process_handle_t private and fix some unit tests
Let's *not* expose more cross-platform-compatibility structures, or
expect code to use them right.
Also, don't fclose() stdout_handle and stdin_handle until we do
tor_process_handle_destroy, or we risk a double-fclose.
Nick Mathewson [Fri, 25 Nov 2011 21:00:31 +0000 (16:00 -0500)]
Merge remote-tracking branch 'asn/bug3472_act2'
Nick Mathewson [Fri, 25 Nov 2011 19:54:04 +0000 (14:54 -0500)]
Merge remote-tracking branch 'sebastian/pure_removal'
Sebastian Hahn [Fri, 25 Nov 2011 16:56:00 +0000 (17:56 +0100)]
Purge ATTR_PURE from the code
We're using it incorrectly in many cases, and it doesn't help as far as
we know.
Nick Mathewson [Fri, 25 Nov 2011 15:36:13 +0000 (10:36 -0500)]
Merge branch 'more_aes_hackery_rebased'
Conflicts:
changes/aes_hackery
Nick Mathewson [Mon, 21 Nov 2011 15:42:49 +0000 (10:42 -0500)]
Make AES unit tests cover the AES and the EVP case.
Nick Mathewson [Mon, 21 Nov 2011 02:43:14 +0000 (21:43 -0500)]
Use openssl's counter mode implementation when we have 1.0.0 or later
This shaves about 7% off our per-cell AES crypto time for me; the
effect for accelerated AES crypto should be even more, since the AES
calculation itself will make an even smaller portion of the
counter-mode performance.
(We don't want to do this for pre-1.0.0 OpenSSL, since our AES_CTR
implementation was actually faster than OpenSSL's there, by about
10%.)
Fixes issue #4526.
Nick Mathewson [Mon, 21 Nov 2011 02:20:31 +0000 (21:20 -0500)]
Use EVP for AES only when hardware accel is present
Fixes bug 4525, fix on 0.2.3.8-alpha.
Peter Palfrader [Fri, 25 Nov 2011 13:16:57 +0000 (14:16 +0100)]
And add a changelog entry for the 4574 fix. (closes: #4574)
Peter Palfrader [Fri, 25 Nov 2011 13:16:33 +0000 (14:16 +0100)]
tor-gencert: Fix a minor formatting issue in an error message (re: #4574)
Peter Palfrader [Wed, 7 Sep 2011 16:14:03 +0000 (18:14 +0200)]
And a changes file for bug3953
Peter Palfrader [Wed, 7 Sep 2011 16:04:45 +0000 (18:04 +0200)]
Handle build-trees better.
Properly create git revision and source file sha1sums include files when
building tor not in its source tree but in a dedicated build tree.
Nick Mathewson [Fri, 25 Nov 2011 04:53:18 +0000 (23:53 -0500)]
Basic support for a "make version" target to declare the source version
This is katmagic's idea. See issue 4400.
Nick Mathewson [Fri, 25 Nov 2011 04:45:47 +0000 (23:45 -0500)]
Move disable-debugger-attachment fn to compat where it belongs. Fix whitespace
Nick Mathewson [Fri, 25 Nov 2011 04:39:44 +0000 (23:39 -0500)]
Tweak disable_debugger_attachment a little
Don't warn when we have no implementation of this function (since it's
on-by-default); reformat the changes entry; fix an overlong line.
Nick Mathewson [Fri, 25 Nov 2011 04:38:32 +0000 (23:38 -0500)]
Merge remote-tracking branch 'ioerror/DisableDebuggerAttachment'
Conflicts:
src/or/config.c
Nick Mathewson [Fri, 25 Nov 2011 03:59:37 +0000 (22:59 -0500)]
Merge remote-tracking branch 'public/feature4516'
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 [Fri, 18 Nov 2011 22:43:03 +0000 (17:43 -0500)]
New UserspaceIOCPBuffers option to set SO_{SND,RCV}BUF to zero
When running with IOCP, we are in theory able to use userspace-
allocated buffers to avoid filling up the stingy amount of kernel
space allocated for sockets buffers.
The bufferevent_async implementation in Libevent provides this
ability, in theory. (There are likely to be remaining bugs). This
patch adds a new option that, when using IOCP bufferevents, sets
each socket's send and receive buffers to 0, so that we should use
this ability.
When all the bugs are worked out here, if we are right about bug 98,
this might solve or mitigate bug 98.
This option is experimental and will likely require lots of testing
and debugging.
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
George Kadianakis [Sun, 13 Nov 2011 13:47:11 +0000 (14:47 +0100)]
Use callback-driven approach to block renegotiations.
Also use this new approach in the bufferevents-enabled case.
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