]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
10 years agoFix a logic error in connection_tls_continue_handshake().
Nick Mathewson [Wed, 25 Nov 2015 14:12:50 +0000 (09:12 -0500)] 
Fix a logic error in connection_tls_continue_handshake().

(If we take the branch above this assertion, than we *didn't* have a
v1 handshake.  So if we don't take the branch, we did.  So if we
reach this assertion, we must be running as a server, since clients
no longer attempt v1 handshakes.)

Fix for bug 17654; bugfix on 9d019a7db725dca3dfdbf8d4dbc3b51835e0b49e.

Bug not in any released Tor.

10 years agoMerge remote-tracking branch 'teor/comments-20151123'
Nick Mathewson [Wed, 25 Nov 2015 14:08:15 +0000 (09:08 -0500)] 
Merge remote-tracking branch 'teor/comments-20151123'

10 years agoMerge remote-tracking branch 'atagar/man_page_fixes'
Nick Mathewson [Wed, 25 Nov 2015 14:07:02 +0000 (09:07 -0500)] 
Merge remote-tracking branch 'atagar/man_page_fixes'

10 years agoTweak gtank's sha512 patch a little
Nick Mathewson [Wed, 25 Nov 2015 14:04:17 +0000 (09:04 -0500)] 
Tweak gtank's sha512 patch a little

10 years agoMerge remote-tracking branch 'gtank/feature17663'
Nick Mathewson [Wed, 25 Nov 2015 14:00:01 +0000 (09:00 -0500)] 
Merge remote-tracking branch 'gtank/feature17663'

10 years agoMerge remote-tracking branch 'teor/feature8961-replaycache-sha256'
Nick Mathewson [Wed, 25 Nov 2015 13:55:18 +0000 (08:55 -0500)] 
Merge remote-tracking branch 'teor/feature8961-replaycache-sha256'

10 years agoMerge branch 'maint-0.2.7'
Nick Mathewson [Wed, 25 Nov 2015 13:53:46 +0000 (08:53 -0500)] 
Merge branch 'maint-0.2.7'

10 years agoFixes for tor's man page
Damian Johnson [Tue, 24 Nov 2015 02:29:19 +0000 (18:29 -0800)] 
Fixes for tor's man page

I'm adding Stem test coverage for tor's man page and in doing so ran into quite
a few issues. All of them are pretty minor (worst was misnaming a couple config
options), but still good things to fix. :P

10 years agoDrop HidServDirectoryV2 and VoteOnHidServDirectoriesV2
Damian Johnson [Tue, 24 Nov 2015 02:27:17 +0000 (18:27 -0800)] 
Drop HidServDirectoryV2 and VoteOnHidServDirectoriesV2

These options were removed from tor in July. Time to axe them from our man
page. :P

  https://gitweb.torproject.org/tor.git/commit/?id=2f8cf524ba4e565ab613504a4c41fd724d32facc

10 years agoadd changes for feature17663
George Tankersley [Tue, 24 Nov 2015 02:24:22 +0000 (02:24 +0000)] 
add changes for feature17663

10 years agoSplit 'slop' man page options to their own lines
Damian Johnson [Tue, 24 Nov 2015 02:21:38 +0000 (18:21 -0800)] 
Split 'slop' man page options to their own lines

The slop testing options are the only spot where we try to enumerate multiple
options on the same line. Changing them to each be on their own line as we do
elsewhere.

10 years agoimplement teor's comments
George Tankersley [Tue, 24 Nov 2015 02:02:13 +0000 (02:02 +0000)] 
implement teor's comments

10 years agoTestingLinkCertLifetime was misnamed as 'TestingLinkCertifetime'
Damian Johnson [Tue, 24 Nov 2015 01:51:30 +0000 (17:51 -0800)] 
TestingLinkCertLifetime was misnamed as 'TestingLinkCertifetime'

Simple typo - we were missing a letter.

10 years agoRename RecommendedPackageVersions to RecommendedPackages
Damian Johnson [Tue, 24 Nov 2015 01:44:52 +0000 (17:44 -0800)] 
Rename RecommendedPackageVersions to RecommendedPackages

A 'RecommendedPackageVersions' option doesn't exist in tor. However, it *does*
have RecommendedPackages...

  feature: https://gitweb.torproject.org/tor.git/commit/?id=c83d8381
  man addition: https://gitweb.torproject.org/tor.git/commit/?id=ddfdeb56

10 years agoadd SHA512 support to crypto
George Tankersley [Wed, 18 Nov 2015 08:37:05 +0000 (08:37 +0000)] 
add SHA512 support to crypto

10 years agoReplace 'SOCKSPort' with 'SocksPort'
Damian Johnson [Tue, 24 Nov 2015 01:32:49 +0000 (17:32 -0800)] 
Replace 'SOCKSPort' with 'SocksPort'

When applying changes from proposal 171 Nick renamed SocksPort to SOCKSPort,
and SocksListenAddress to SOCKSListenAddress...

  https://gitweb.torproject.org/tor.git/commit/?id=891ccd3cd0690e83f1dc4dde7698c3bd9d7fe98d

However, this didn't change the option itself in tor (it's still SocksPort),
and wasn't even uniform in the man page. Functionally this doesn't matter
(tor's config options are case insensitive) but this is a pretty clear
regression.

10 years agoNote in man page where users can file bugs
Damian Johnson [Tue, 24 Nov 2015 01:26:46 +0000 (17:26 -0800)] 
Note in man page where users can file bugs

In addition to inviting users to tell us about bugs, lets say where.

10 years agoControlPort's section on flags wasn't indented
Damian Johnson [Tue, 24 Nov 2015 01:25:26 +0000 (17:25 -0800)] 
ControlPort's section on flags wasn't indented

Minor formatting issue with our ControlPort entry. The part about flags wasn't
indented with the rest of its description.

10 years agoMalformed ExtORPort entry in man page
Damian Johnson [Tue, 24 Nov 2015 01:23:14 +0000 (17:23 -0800)] 
Malformed ExtORPort entry in man page

Minor formatting issue with our ExtORPort that caused its description to be on
the same line as the option (munging the two together).

10 years agoUse SHA256 in the replaycache, rather than SHA1
teor (Tim Wilson-Brown) [Mon, 23 Nov 2015 22:08:53 +0000 (09:08 +1100)] 
Use SHA256 in the replaycache, rather than SHA1

This migrates away from SHA1, and provides further hash flooding
protection on top of the randomised siphash implementation.

Add unit tests to make sure that different inputs don't have the
same hash.

10 years agoFix: use the right list in find_expiring_intro_point()
David Goulet [Mon, 23 Nov 2015 14:02:54 +0000 (09:02 -0500)] 
Fix: use the right list in find_expiring_intro_point()

The wrong list was used when looking up expired intro points in a rend
service object causing what we think could be reachability issues and
triggering a BUG log.

Fixes #16702

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agofix two typos in comments
Roger Dingledine [Mon, 23 Nov 2015 12:40:13 +0000 (07:40 -0500)] 
fix two typos in comments

10 years agoFix comments to describe actual return values (crypto.c)
teor (Tim Wilson-Brown) [Mon, 23 Nov 2015 09:31:57 +0000 (20:31 +1100)] 
Fix comments to describe actual return values (crypto.c)

10 years agoFix typo in comment on crypto_add_spaces_to_fp
teor (Tim Wilson-Brown) [Mon, 23 Nov 2015 07:59:11 +0000 (18:59 +1100)] 
Fix typo in comment on crypto_add_spaces_to_fp

10 years agoComment only: crypto_seed_rng no longer has a "startup" parameter
teor (Tim Wilson-Brown) [Sun, 22 Nov 2015 23:26:07 +0000 (10:26 +1100)] 
Comment only: crypto_seed_rng no longer has a "startup" parameter

10 years agofix "make check-spaces"
Nick Mathewson [Fri, 20 Nov 2015 15:52:56 +0000 (10:52 -0500)] 
fix "make check-spaces"

10 years agoFix compilation warnings
Nick Mathewson [Fri, 20 Nov 2015 15:51:19 +0000 (10:51 -0500)] 
Fix compilation warnings

10 years agoMerge branch 'getinfo-private-exitpolicy-v4-squashed'
Nick Mathewson [Fri, 20 Nov 2015 15:48:28 +0000 (10:48 -0500)] 
Merge branch 'getinfo-private-exitpolicy-v4-squashed'

10 years agoAdd controller getinfo exit-policy/reject-private
teor (Tim Wilson-Brown) [Mon, 16 Nov 2015 09:40:17 +0000 (20:40 +1100)] 
Add controller getinfo exit-policy/reject-private

exit-policy/reject-private lists the reject rules added by
ExitPolicyRejectPrivate. This makes it easier for stem to
display exit policies.

Add unit tests for getinfo exit-policy/*.

Completes ticket #17183. Patch by "teor".

10 years agoMerge branch 'maint-0.2.7'
Nick Mathewson [Fri, 20 Nov 2015 15:28:43 +0000 (10:28 -0500)] 
Merge branch 'maint-0.2.7'

10 years agobump version to 0.2.7-dev
Nick Mathewson [Fri, 20 Nov 2015 15:27:35 +0000 (10:27 -0500)] 
bump version to 0.2.7-dev

10 years agoRefactor router_dump_exit_policy_to_string
teor (Tim Wilson-Brown) [Mon, 16 Nov 2015 12:02:49 +0000 (23:02 +1100)] 
Refactor router_dump_exit_policy_to_string

Split out policy_dump_to_string to use it in getinfo_helper_policies.

10 years agoAdd changes file for ExitPolicyRejectPrivate outbound and port
teor (Tim Wilson-Brown) [Mon, 16 Nov 2015 08:58:36 +0000 (19:58 +1100)] 
Add changes file for ExitPolicyRejectPrivate outbound and port

10 years agoman update: ExitPolicyRejectPrivate outbound and port addresses
teor (Tim Wilson-Brown) [Mon, 16 Nov 2015 07:37:01 +0000 (18:37 +1100)] 
man update: ExitPolicyRejectPrivate outbound and port addresses

ExitPolicyRejectPrivate now rejects addresses configured via
OutboundBindAddress and any port options, such as ORPort and DirPort.

10 years agoBlock OutboundBindAddressIPv[4|6]_ and configured ports on exit relays
teor (Tim Wilson-Brown) [Mon, 16 Nov 2015 04:54:57 +0000 (15:54 +1100)] 
Block OutboundBindAddressIPv[4|6]_ and configured ports on exit relays

Modify policies_parse_exit_policy_reject_private so it also blocks
the addresses configured for OutboundBindAddressIPv4_ and
OutboundBindAddressIPv6_, and any publicly routable port addresses
on exit relays.

Add and update unit tests for these functions.

10 years agoAdd unit tests for policies_parse_exit_policy_reject_private
teor (Tim Wilson-Brown) [Mon, 16 Nov 2015 04:36:28 +0000 (15:36 +1100)] 
Add unit tests for policies_parse_exit_policy_reject_private

Test that policies_parse_exit_policy_reject_private rejects supplied
IPv4 and IPv6 relay addresses, and the addresses of local interfaces.

10 years agoRefactor policies_parse_exit_policy_internal
teor (Tim Wilson-Brown) [Mon, 16 Nov 2015 02:58:26 +0000 (13:58 +1100)] 
Refactor policies_parse_exit_policy_internal

Move the code that rejects publicly routable exit relay addresses
to policies_parse_exit_policy_reject_private. Add
addr_policy_append_reject_addr_list and use it to reject interface
addresses.

This removes the duplicate reject checks on local_address and
ipv6_local_address, but duplicates will be removed by
exit_policy_remove_redundancies at the end of the function.

This also removes the info-level logging on rejected interface
addresses. Instead, log a debug-level message in
addr_policy_append_reject_addr.

This simplifies policies_parse_exit_policy_internal and prepares for
reporting these addresses over the control port in #17183.

10 years agoMerge remote-tracking branch 'teor/bug17632-no-ipv4-no-localhost-squashed'
Nick Mathewson [Thu, 19 Nov 2015 16:19:31 +0000 (11:19 -0500)] 
Merge remote-tracking branch 'teor/bug17632-no-ipv4-no-localhost-squashed'

10 years agoMerge remote-tracking branch 'teor/bug17638-ipv6-ersatz-socketpair'
Nick Mathewson [Thu, 19 Nov 2015 15:48:40 +0000 (10:48 -0500)] 
Merge remote-tracking branch 'teor/bug17638-ipv6-ersatz-socketpair'

10 years agoMerge remote-tracking branch 'public/decouple_conn_attach_2'
Nick Mathewson [Thu, 19 Nov 2015 15:44:31 +0000 (10:44 -0500)] 
Merge remote-tracking branch 'public/decouple_conn_attach_2'

10 years agoFixup #17638: ignore EINVAL from FreeBSD jails without ::1
teor (Tim Wilson-Brown) [Thu, 19 Nov 2015 08:20:01 +0000 (19:20 +1100)] 
Fixup #17638: ignore EINVAL from FreeBSD jails without ::1

In my testing, an IPv6-only FreeBSD jail without ::1 returned EINVAL
from tor_ersatz_socketpair. Let's not fail the unit test because of
this - it would only ever use tor_socketpair() anyway.

10 years agoMake tor_ersatz_socketpair work on IPv6-only systems
teor (Tim Wilson-Brown) [Thu, 19 Nov 2015 08:08:22 +0000 (19:08 +1100)] 
Make tor_ersatz_socketpair work on IPv6-only systems

(But it won't work on some systems without IPv4/IPv6 localhost
(some BSD jails) by design, to avoid creating sockets on routable
IP addresses. However, those systems likely have the AF_UNIX socketpair,
which tor prefers.)

Fixes bug #17638; bugfix on a very early tor version,
earlier than 22dba27d8dd5 (23 Nov 2004) / svn:r2943.

Patch by "teor".

10 years agoMerge remote-tracking branch 'teor/bug17632-no-ipv4-no-localhost'
Nick Mathewson [Wed, 18 Nov 2015 20:02:45 +0000 (15:02 -0500)] 
Merge remote-tracking branch 'teor/bug17632-no-ipv4-no-localhost'

10 years agoUpdate comments in get_interface_addresses_ioctl
teor (Tim Wilson-Brown) [Wed, 18 Nov 2015 12:30:25 +0000 (23:30 +1100)] 
Update comments in get_interface_addresses_ioctl

Comment-only change noting platforms that can return IPv6
addresses from SIOCGIFCONF (or SIOCGLIFCONF).

10 years agoFix unit tests on systems without IPv4 or localhost addresses
teor (Tim Wilson-Brown) [Wed, 18 Nov 2015 12:25:21 +0000 (23:25 +1100)] 
Fix unit tests on systems without IPv4 or localhost addresses

Make unit tests pass on IPv6-only systems, and systems without
localhost addresses (like some FreeBSD jails).

Fixes:
* get_if_addrs_ifaddrs: systems without localhost
* get_if_addrs_ioctl: only works on IPv4 systems
* socket: check IPv4 and IPv6, skip on EPROTONOSUPPORT
* socketpair_ersatz: uses IPv4, skip on EPROTONOSUPPORT

Fixes bug #17632; bugfix on unit tests in 0.2.7.3-rc.
c464a367728d was a partial fix for this issue in #17255;
it was released in unit tests in 0.2.7.4-rc.

Patch by "teor".

10 years agoReally Really Fixup 86eba14ac549: Windows support, error return values
teor (Tim Wilson-Brown) [Wed, 18 Nov 2015 13:13:58 +0000 (00:13 +1100)] 
Really Really Fixup 86eba14ac549: Windows support, error return values

10 years agoReally Fixup 86eba14ac549: error return values are negative
teor (Tim Wilson-Brown) [Wed, 18 Nov 2015 12:54:26 +0000 (23:54 +1100)] 
Really Fixup 86eba14ac549: error return values are negative

10 years agoFixup 86eba14ac549: add errno.h for EPROTONOSUPPORT
teor (Tim Wilson-Brown) [Wed, 18 Nov 2015 12:47:12 +0000 (23:47 +1100)] 
Fixup 86eba14ac549: add errno.h for EPROTONOSUPPORT

10 years agoUpdate comments in get_interface_addresses_ioctl
teor (Tim Wilson-Brown) [Wed, 18 Nov 2015 12:30:25 +0000 (23:30 +1100)] 
Update comments in get_interface_addresses_ioctl

Comment-only change noting platforms that can return IPv6
addresses from SIOCGIFCONF (or SIOCGLIFCONF).

10 years agoFix unit tests on systems without IPv4 or localhost addresses
teor (Tim Wilson-Brown) [Wed, 18 Nov 2015 12:25:21 +0000 (23:25 +1100)] 
Fix unit tests on systems without IPv4 or localhost addresses

Make unit tests pass on IPv6-only systems, and systems without
localhost addresses (like some FreeBSD jails).

Fixes:
* get_if_addrs_ifaddrs: systems without localhost
* get_if_addrs_ioctl: only works on IPv4 systems
* socket: check IPv4 and IPv6, skip on EPROTONOSUPPORT
* socketpair_ersatz: uses IPv4, skip on EPROTONOSUPPORT

Fixes bug #17632; bugfix on unit tests in 0.2.7.3-rc.
c464a367728d was a partial fix for this issue in #17255;
it was released in unit tests in 0.2.7.4-rc.

Patch by "teor".

10 years agoFix a startup time assert caused by periodic events not being initialized.
Yawning Angel [Wed, 18 Nov 2015 11:27:24 +0000 (11:27 +0000)] 
Fix a startup time assert caused by periodic events not being initialized.

Loading a on disk bridge descriptor causes a directory download to be
scheduled, which asserts due to the periodic events not being
initialized yet.

Fixes bug #17635, not in any released version of tor.

10 years agowindows already has a CALLBACK macro...
Nick Mathewson [Tue, 17 Nov 2015 15:00:41 +0000 (10:00 -0500)] 
windows already has a CALLBACK macro...

10 years agoFix a server-side crash on DNS init
Nick Mathewson [Tue, 17 Nov 2015 14:37:50 +0000 (09:37 -0500)] 
Fix a server-side crash on DNS init

10 years agoSome unit tests now require that periodic events be initialized.
Nick Mathewson [Tue, 17 Nov 2015 14:26:50 +0000 (09:26 -0500)] 
Some unit tests now require that periodic events be initialized.

10 years agoFree pending_entry_connections on shutdown.
Nick Mathewson [Tue, 17 Nov 2015 14:06:47 +0000 (09:06 -0500)] 
Free pending_entry_connections on shutdown.

10 years agoBe more conservative in scanning the list of pending streams
Nick Mathewson [Tue, 17 Nov 2015 13:49:30 +0000 (08:49 -0500)] 
Be more conservative in scanning the list of pending streams

Now we only re-scan the list in the cases we did before: when we
have a new circuit that we should try attaching to, or when we have
added a new stream that we haven't tried to attach yet.

This is part of 17590.

10 years agoDecouple ..attach_circuit() from most of its callers.
Nick Mathewson [Fri, 13 Nov 2015 18:38:01 +0000 (13:38 -0500)] 
Decouple ..attach_circuit() from most of its callers.

Long ago we used to call connection_ap_handshake_attach_circuit()
only in a few places, since connection_ap_attach_pending() attaches
all the pending connections, and does so regularly.  But this turned
out to have a performance problem: it would introduce a delay to
launching or connecting a stream.

We couldn't just call connection_ap_attach_pending() every time we
make a new connection, since it walks the whole connection list.  So
we started calling connection_ap_attach_pending all over, instead!
But that's kind of ugly and messes up our callgraph.

So instead, we now have connection_ap_attach_pending() use a list
only of the pending connections, so we can call it much more
frequently.  We have a separate function to scan the whole
connection array to see if we missed adding anything, and log a
warning if so.

Closes ticket #17590

10 years agoWhoops; in this context the EV_TIMEOUT flag is needed
Nick Mathewson [Tue, 17 Nov 2015 13:53:16 +0000 (08:53 -0500)] 
Whoops; in this context the EV_TIMEOUT flag is needed

10 years agoMerge branch 'bug3199_redux_3'
Nick Mathewson [Tue, 17 Nov 2015 13:27:42 +0000 (08:27 -0500)] 
Merge branch 'bug3199_redux_3'

10 years agoChanges to 3199 branch based on feedback from special
Nick Mathewson [Tue, 17 Nov 2015 13:26:04 +0000 (08:26 -0500)] 
Changes to 3199 branch based on feedback from special

10 years agoAdd documentation for periodic event api
Nick Mathewson [Mon, 16 Nov 2015 15:40:23 +0000 (10:40 -0500)] 
Add documentation for periodic event api

10 years agoAdd a missing "if" in the comment on warn_nonlocal_controller_ports
teor (Tim Wilson-Brown) [Mon, 16 Nov 2015 05:27:11 +0000 (16:27 +1100)] 
Add a missing "if" in the comment on warn_nonlocal_controller_ports

Also reflow all the lines of that comment so that they're under
the maximum width.

10 years agoAdd missing " in AccountingMax comment in or.h
teor (Tim Wilson-Brown) [Mon, 16 Nov 2015 01:34:53 +0000 (12:34 +1100)] 
Add missing " in AccountingMax comment in or.h

10 years agoChange periodic.c to use libevent directly
Nick Mathewson [Mon, 2 Nov 2015 20:36:09 +0000 (15:36 -0500)] 
Change periodic.c to use libevent directly

Libevent's periodic timers aren't the right solution when the
timeout potentially changes every time.

10 years agofix whitespace; remove dead code
Nick Mathewson [Mon, 2 Nov 2015 20:11:16 +0000 (15:11 -0500)] 
fix whitespace; remove dead code

10 years agoFold all of the run-every-second stuff back into run_scheduled_events()
Nick Mathewson [Mon, 2 Nov 2015 20:09:48 +0000 (15:09 -0500)] 
Fold all of the run-every-second stuff back into run_scheduled_events()

10 years agoTurn all of run_scheduled_events() into a bunch of periodic events
Nick Mathewson [Mon, 2 Nov 2015 19:59:29 +0000 (14:59 -0500)] 
Turn all of run_scheduled_events() into a bunch of periodic events

This patch is designed to look good when you see it through 'diff -b':
it mostly leaves entries in the same order, and leaves the code unmodified.

10 years agoConnect periodic events to main
Nick Mathewson [Mon, 2 Nov 2015 15:49:33 +0000 (10:49 -0500)] 
Connect periodic events to main

10 years agoInfrastructure for replacing global periodic events in main.c
Kevin Butler [Mon, 2 Nov 2015 14:48:18 +0000 (09:48 -0500)] 
Infrastructure for replacing global periodic events in main.c

(This is from Kevin's bug3199 patch series; nick extracted it into
 a new file and changed the interface a little, then did some API
 tweaks on it.)

10 years agoappease check-spaces
Nick Mathewson [Fri, 13 Nov 2015 18:46:47 +0000 (13:46 -0500)] 
appease check-spaces

10 years agoMerge remote-tracking branch 'public/ticket11150_client_only'
Nick Mathewson [Fri, 13 Nov 2015 14:58:16 +0000 (09:58 -0500)] 
Merge remote-tracking branch 'public/ticket11150_client_only'

10 years agoRemove a little duplicated code in TAP key expansion
Nick Mathewson [Fri, 13 Nov 2015 14:46:32 +0000 (09:46 -0500)] 
Remove a little duplicated code in TAP key expansion

patch from pfrankw; closes 17587.

10 years agofix an email address in doc/HACKING/ReleasingTor.md
Nick Mathewson [Fri, 13 Nov 2015 14:01:55 +0000 (09:01 -0500)] 
fix an email address in doc/HACKING/ReleasingTor.md

10 years agoMerge commit '741d2dc685a0e380bc4d8fbcda5a33b70272b3f7'
Nick Mathewson [Fri, 13 Nov 2015 13:42:31 +0000 (08:42 -0500)] 
Merge commit '741d2dc685a0e380bc4d8fbcda5a33b70272b3f7'

10 years agoMerge commit '7b859fd8c558c9cf08add79db87fb1cb76537535'
Nick Mathewson [Fri, 13 Nov 2015 13:42:20 +0000 (08:42 -0500)] 
Merge commit '7b859fd8c558c9cf08add79db87fb1cb76537535'

10 years agoBump to 0.2.7.5
Nick Mathewson [Fri, 13 Nov 2015 13:41:30 +0000 (08:41 -0500)] 
Bump to 0.2.7.5

10 years agoMerge branch 'decouple_circuit_mark_squashed'
Nick Mathewson [Thu, 12 Nov 2015 19:20:24 +0000 (14:20 -0500)] 
Merge branch 'decouple_circuit_mark_squashed'

10 years agoExperimentally decouple the main body of circuit_mark_for_close
Nick Mathewson [Fri, 2 Oct 2015 15:55:25 +0000 (17:55 +0200)] 
Experimentally decouple the main body of circuit_mark_for_close

10 years ago+ and / usage clarification - Fixes #13158
Joan Queralt [Mon, 2 Nov 2015 00:36:19 +0000 (01:36 +0100)] 
+ and / usage clarification - Fixes #13158

10 years agoMerge branch 'karsten_bug13192_026_03_teor'
Nick Mathewson [Thu, 12 Nov 2015 16:40:58 +0000 (11:40 -0500)] 
Merge branch 'karsten_bug13192_026_03_teor'

10 years agoRename cast_double_to_int64 to clamp_double_to_int64
Nick Mathewson [Thu, 9 Jul 2015 20:54:17 +0000 (16:54 -0400)] 
Rename cast_double_to_int64 to clamp_double_to_int64

10 years agoMake round_to_next_multiple_of always round upwards.
Nick Mathewson [Thu, 12 Nov 2015 16:32:14 +0000 (11:32 -0500)] 
Make round_to_next_multiple_of always round upwards.

Yes, even if it has to return a non-multiple.  This prevents us from
ever having a bug where we try to use it for allocation, and under-allocate.

10 years agoMerge branch 'bug17549'
Nick Mathewson [Tue, 10 Nov 2015 15:40:31 +0000 (10:40 -0500)] 
Merge branch 'bug17549'

10 years agoappease check-spaces
Nick Mathewson [Tue, 10 Nov 2015 15:40:19 +0000 (10:40 -0500)] 
appease check-spaces

10 years agoevery version of openssl we support has SSL_get_state
Nick Mathewson [Tue, 10 Nov 2015 15:14:58 +0000 (10:14 -0500)] 
every version of openssl we support has SSL_get_state

10 years agoEvery openssl we support has ERR_remove_thread_state
Nick Mathewson [Tue, 10 Nov 2015 15:13:04 +0000 (10:13 -0500)] 
Every openssl we support has ERR_remove_thread_state

10 years agoMove openssl version compatibility defines into a new header.
Nick Mathewson [Tue, 10 Nov 2015 15:02:21 +0000 (10:02 -0500)] 
Move openssl version compatibility defines into a new header.

10 years agoMark fallback directoriess as too busy after a 503 response
teor (Tim Wilson-Brown) [Mon, 9 Nov 2015 22:47:48 +0000 (09:47 +1100)] 
Mark fallback directoriess as too busy after a 503 response

Mark fallback directory mirrors as "too busy" when they return
a 503 response. Previously, the code just marked authorities as busy.

Unless clients set their own fallback directories, they will never see
this bug. (There are no default fallbacks yet.)

Fixes bug 17572; bugfix on 5c51b3f1f0d4 released in 0.2.4.7-alpha.
Patch by "teor".

10 years agoFix the tortls.c unit tests to pass with OpenSSL 1.1.0-dev.
Yawning Angel [Fri, 6 Nov 2015 19:42:39 +0000 (19:42 +0000)] 
Fix the tortls.c unit tests to pass with OpenSSL 1.1.0-dev.

The string description for the states got changed slightly.

10 years agoFix compilation with OpenSSL 1.1.0 --enable-gcc-warnings is set.
Yawning Angel [Fri, 6 Nov 2015 19:12:43 +0000 (19:12 +0000)] 
Fix compilation with OpenSSL 1.1.0 --enable-gcc-warnings is set.

10 years agoFix compilation with OpenSSL 1.1.0-dev.
Yawning Angel [Fri, 6 Nov 2015 19:02:56 +0000 (19:02 +0000)] 
Fix compilation with OpenSSL 1.1.0-dev.

OpenSSL changed the API:
 * https://github.com/openssl/openssl/commit/5998e2903589e7b19e102ebff06521f2dcb60409
 * https://github.com/openssl/openssl/commit/b0700d2c8de79252ba605748a075cf2e5d670da1

10 years ago"And now a better patch which builds the tests if LibreSSL is used."
Nick Mathewson [Fri, 6 Nov 2015 15:58:00 +0000 (10:58 -0500)] 
"And now a better patch which builds the tests if LibreSSL is used."

Works on the latest LibreSSL (in OpenBSD-current).

(Patch from 'rubiate' on #17253.

10 years agoFix SipHash-2-4 performance for non multiple of 8 buffers.
Yawning Angel [Thu, 5 Nov 2015 18:21:43 +0000 (18:21 +0000)] 
Fix SipHash-2-4 performance for non multiple of 8 buffers.

Code cribbed from Andrew Moon's Public Domain SipHash-2-4
implementation (which IMO is also cleaner).

Fixes bug 17544.

10 years agoDelete trailing whitespace in md files
Nick Mathewson [Thu, 5 Nov 2015 14:53:05 +0000 (09:53 -0500)] 
Delete trailing whitespace in md files

10 years agoadd release notes
Nick Mathewson [Thu, 5 Nov 2015 14:46:40 +0000 (09:46 -0500)] 
add release notes

10 years agoadded some markdown formatting
tom lurge [Thu, 5 Nov 2015 14:13:53 +0000 (09:13 -0500)] 
added some markdown formatting

10 years agoFix filename endings in HACKING. Patch from "ckomlo", ticket #17515.
Nick Mathewson [Tue, 3 Nov 2015 13:23:08 +0000 (08:23 -0500)] 
Fix filename endings in HACKING. Patch from "ckomlo", ticket #17515.

10 years agoremove changes files that have been used in existing changelogs
Nick Mathewson [Sat, 31 Oct 2015 18:44:34 +0000 (14:44 -0400)] 
remove changes files that have been used in existing changelogs

10 years agoRefer to the actual minima and the preferred minimum
Nick Mathewson [Fri, 30 Oct 2015 14:57:47 +0000 (10:57 -0400)] 
Refer to the actual minima and the preferred minimum

10 years agoBump up minimum BandwidthRate from 30KB to 250KBytes - Fixes #16382
Nima Fatemi [Mon, 15 Jun 2015 23:12:52 +0000 (23:12 +0000)] 
Bump up minimum BandwidthRate from 30KB to 250KBytes - Fixes #16382