]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
10 years agoGive test_util_format some succeeding test cases
Nick Mathewson [Fri, 2 Oct 2015 10:52:35 +0000 (12:52 +0200)] 
Give test_util_format some succeeding test cases

10 years agoAdd notes and whitespace fixes to test_util_format
Nick Mathewson [Fri, 2 Oct 2015 10:44:35 +0000 (12:44 +0200)] 
Add notes and whitespace fixes to test_util_format

10 years agoMerge remote-tracking branch 'twstrike/util_format_tests'
Nick Mathewson [Fri, 2 Oct 2015 10:40:30 +0000 (12:40 +0200)] 
Merge remote-tracking branch 'twstrike/util_format_tests'

10 years agoIgnore OS X .DS_Store files
teor (Tim Wilson-Brown) [Fri, 2 Oct 2015 08:51:53 +0000 (10:51 +0200)] 
Ignore OS X .DS_Store files

10 years agoDisallow transitions on SyslogIdentityTag, since they do not work right
Nick Mathewson [Wed, 30 Sep 2015 16:33:02 +0000 (18:33 +0200)] 
Disallow transitions on SyslogIdentityTag, since they do not work right

10 years agoDocument syslog_identity_tag for add_syslog_log
Peter Palfrader [Wed, 30 Sep 2015 16:02:52 +0000 (18:02 +0200)] 
Document syslog_identity_tag for add_syslog_log

10 years agoAdd SyslogIdentityTag
Peter Palfrader [Wed, 30 Sep 2015 15:54:56 +0000 (17:54 +0200)] 
Add SyslogIdentityTag

When logging to syslog, allow a tag to be added to the syslog identity
("Tor"), i.e. the string prepended to every log message.  The tag can be
configured by setting SyslogIdentityTag and defaults to none.  Setting
it to "foo" will cause logs to be tagged as "Tor-foo".  Closes: #17194.

10 years agoRemove comment about a workaround for libevent versions we no longer work around...
Nick Mathewson [Wed, 30 Sep 2015 13:29:16 +0000 (09:29 -0400)] 
Remove comment about a workaround for libevent versions we no longer work around. Fixes 16647

10 years agoMerge remote-tracking branch 'origin/maint-0.2.7'
Nick Mathewson [Tue, 29 Sep 2015 11:51:08 +0000 (13:51 +0200)] 
Merge remote-tracking branch 'origin/maint-0.2.7'

10 years agofix compilation; mark test fns static
Nick Mathewson [Tue, 29 Sep 2015 11:50:52 +0000 (13:50 +0200)] 
fix compilation; mark test fns static

10 years agoAdd a README for the trunnel directory
Nick Mathewson [Tue, 29 Sep 2015 11:43:12 +0000 (13:43 +0200)] 
Add a README for the trunnel directory

10 years agoMerge remote-tracking branch 'origin/maint-0.2.7'
Nick Mathewson [Tue, 29 Sep 2015 10:49:59 +0000 (12:49 +0200)] 
Merge remote-tracking branch 'origin/maint-0.2.7'

10 years agoFix past changelog spelling again!
Nick Mathewson [Tue, 29 Sep 2015 10:49:23 +0000 (12:49 +0200)] 
Fix past changelog spelling again!

10 years agoMerge remote-tracking branch 'origin/maint-0.2.7'
Nick Mathewson [Tue, 29 Sep 2015 08:22:38 +0000 (10:22 +0200)] 
Merge remote-tracking branch 'origin/maint-0.2.7'

10 years agogo back in time to fix a changelog entry. Fix for 17165
Nick Mathewson [Tue, 29 Sep 2015 08:21:52 +0000 (10:21 +0200)] 
go back in time to fix a changelog entry. Fix for 17165

10 years agoSocks->SOCKS in torrcs. Fixes 15609
Nick Mathewson [Tue, 29 Sep 2015 08:20:31 +0000 (10:20 +0200)] 
Socks->SOCKS in torrcs. Fixes 15609

10 years agoMerge remote-tracking branch 'origin/maint-0.2.7'
Nick Mathewson [Tue, 29 Sep 2015 08:18:09 +0000 (10:18 +0200)] 
Merge remote-tracking branch 'origin/maint-0.2.7'

10 years agoAdd checks and unit tests for get_interface_address* failure
teor (Tim Wilson-Brown) [Tue, 29 Sep 2015 05:04:49 +0000 (07:04 +0200)] 
Add checks and unit tests for get_interface_address* failure

Ensure that either a valid address is returned in address pointers,
or that the address data is zeroed on error.

Ensure that free_interface_address6_list handles NULL lists.

Add unit tests for get_interface_address* failure cases.

Fixes bug #17173.
Patch by fk/teor, not in any released version of tor.

10 years agoget_interface_address6_list(): Bring back a return code check
Fabian Keil [Mon, 28 Sep 2015 14:57:07 +0000 (16:57 +0200)] 
get_interface_address6_list(): Bring back a return code check

... that was removed by 31eb486c46 which first appeared in
0.2.7.3-rc.

If tor is running in a ElectroBSD (or FreeBSD) jail it can't
get any IP addresses that aren't assigned to the jail by
looking at the interfaces and (by design) the
get_interface_address6_via_udp_socket_hack() fallback doesn't
work either.

The missing return code check resulted in tor_addr_is_internal()
complaining about a "non-IP address of type 49", due to reading
uninitialised memory.

Fixes #17173.

10 years agoMerge remote-tracking branch 'origin/maint-0.2.7'
Nick Mathewson [Tue, 29 Sep 2015 08:12:05 +0000 (10:12 +0200)] 
Merge remote-tracking branch 'origin/maint-0.2.7'

10 years agoChanges file for bug17154
Nick Mathewson [Tue, 29 Sep 2015 08:10:52 +0000 (10:10 +0200)] 
Changes file for bug17154

10 years agoNo spaces around = in variable assignment
Marcin Cieślak [Fri, 25 Sep 2015 14:16:40 +0000 (14:16 +0000)] 
No spaces around = in variable assignment

BSD make takes spaces around = literally
and produces a "TESTING_TOR_BINARY "
variable with a trailing space, which leads
to test_keygen.sh failure.

Fixes 17154

10 years agoAdd changes file for bug17151
Nick Mathewson [Tue, 29 Sep 2015 08:08:02 +0000 (10:08 +0200)] 
Add changes file for bug17151

10 years agoFreeBSD needs -lexecinfo to get backtrace()
Marcin Cieślak [Fri, 25 Sep 2015 00:59:59 +0000 (00:59 +0000)] 
FreeBSD needs -lexecinfo to get backtrace()

10 years agoSkip tests if backtrace support not compiled-in
Marcin Cieślak [Thu, 24 Sep 2015 22:32:51 +0000 (22:32 +0000)] 
Skip tests if backtrace support not compiled-in

FreeBSD needs -lexecinfo to fully support
backtrace reporting.

10 years agoBump master to 0.2.8.0-alpha-dev
Nick Mathewson [Fri, 25 Sep 2015 13:27:39 +0000 (09:27 -0400)] 
Bump master  to 0.2.8.0-alpha-dev

10 years agoBump to 0.2.7.3-rc-dev
Nick Mathewson [Fri, 25 Sep 2015 13:26:35 +0000 (09:26 -0400)] 
Bump to 0.2.7.3-rc-dev

10 years agoA day has passed. tor-0.2.7.3-rc
Nick Mathewson [Fri, 25 Sep 2015 13:06:41 +0000 (09:06 -0400)] 
A day has passed.

10 years agoAdd test-network.sh to EXTRA_DIST
Nick Mathewson [Thu, 24 Sep 2015 23:38:50 +0000 (19:38 -0400)] 
Add test-network.sh to EXTRA_DIST

10 years agoMake our digest-mismatch warnings a touch better
Nick Mathewson [Thu, 24 Sep 2015 21:45:29 +0000 (17:45 -0400)] 
Make our digest-mismatch warnings a touch better

10 years agoMerge branch 'bug17149'
Nick Mathewson [Thu, 24 Sep 2015 21:19:21 +0000 (17:19 -0400)] 
Merge branch 'bug17149'

10 years agoInclude some content when exporting abs_top_srcdir and builddir
Nick Mathewson [Thu, 24 Sep 2015 21:06:49 +0000 (17:06 -0400)] 
Include some content when exporting abs_top_srcdir and builddir

FreeBSD make demands this.

10 years agoPut braces around reject-lines for IPv6 addrs
Nick Mathewson [Thu, 24 Sep 2015 20:51:25 +0000 (16:51 -0400)] 
Put braces around reject-lines for IPv6 addrs

Fixes bug 17149; bug not in any released Tor.

10 years agofold 17148 into changelog
Nick Mathewson [Thu, 24 Sep 2015 19:31:50 +0000 (15:31 -0400)] 
fold 17148 into changelog

10 years agoAdd more quotes in the test scripts
Nick Mathewson [Thu, 24 Sep 2015 19:25:53 +0000 (15:25 -0400)] 
Add more quotes in the test scripts

10 years agoStop trying to generate test scripts via autoconf substitution.
Nick Mathewson [Thu, 24 Sep 2015 19:07:39 +0000 (15:07 -0400)] 
Stop trying to generate test scripts via autoconf substitution.

Use environment variables instead. This repairs 'make distcheck',
which was running into trouble when it tried to chmod the generated
scripts.

Fixes 17148.

10 years agofix tor-fw-helper url
Nick Mathewson [Thu, 24 Sep 2015 18:12:45 +0000 (14:12 -0400)] 
fix tor-fw-helper url

10 years agoChangelog: more clarity and fixing
Nick Mathewson [Thu, 24 Sep 2015 18:08:30 +0000 (14:08 -0400)] 
Changelog: more clarity and fixing

10 years agoIncrement version.
Nick Mathewson [Thu, 24 Sep 2015 16:18:24 +0000 (12:18 -0400)] 
Increment version.

10 years agoNow I have a number here. (Had to use OSX becaue of #17146)
Nick Mathewson [Thu, 24 Sep 2015 16:15:20 +0000 (12:15 -0400)] 
Now I have a number here. (Had to use OSX becaue of #17146)

10 years agofold 17135 into changelog
Nick Mathewson [Thu, 24 Sep 2015 15:56:00 +0000 (11:56 -0400)] 
fold 17135 into changelog

10 years agoMerge branch 'underpinning_squashed'
Nick Mathewson [Thu, 24 Sep 2015 15:29:14 +0000 (11:29 -0400)] 
Merge branch 'underpinning_squashed'

10 years agochanges file and manpage entry for AuthDirPinKeys
Nick Mathewson [Wed, 23 Sep 2015 15:30:17 +0000 (11:30 -0400)] 
changes file and manpage entry for AuthDirPinKeys

10 years agoFold new entries into changelog
Nick Mathewson [Thu, 24 Sep 2015 15:00:30 +0000 (11:00 -0400)] 
Fold new entries into changelog

10 years agoReformat the changelog
Nick Mathewson [Thu, 24 Sep 2015 14:57:22 +0000 (10:57 -0400)] 
Reformat the changelog

10 years agomore edits to the changelog
Nick Mathewson [Thu, 24 Sep 2015 14:57:07 +0000 (10:57 -0400)] 
more edits to the changelog

10 years agoMerge remote-tracking branch 'origin/maint-0.2.6'
Nick Mathewson [Thu, 24 Sep 2015 14:06:36 +0000 (10:06 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.6'

10 years agoMerge remote-tracking branch 'origin/maint-0.2.5' into maint-0.2.6
Nick Mathewson [Thu, 24 Sep 2015 14:06:15 +0000 (10:06 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.5' into maint-0.2.6

10 years agoMerge remote-tracking branch 'origin/maint-0.2.4' into maint-0.2.5
Nick Mathewson [Thu, 24 Sep 2015 14:06:00 +0000 (10:06 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.4' into maint-0.2.5

10 years agoUpdate geoip and geoip6 to the September 3 2015 database.
Karsten Loesing [Thu, 24 Sep 2015 13:08:15 +0000 (15:08 +0200)] 
Update geoip and geoip6 to the September 3 2015 database.

10 years agovarious changelog entry rewrites/revisions
Nick Mathewson [Wed, 23 Sep 2015 23:48:41 +0000 (19:48 -0400)] 
various changelog entry rewrites/revisions

10 years agoNew AuthDirPinKeys option to enable/disable keypinning enforcement
Nick Mathewson [Wed, 23 Sep 2015 15:22:26 +0000 (11:22 -0400)] 
New AuthDirPinKeys option to enable/disable keypinning enforcement

Implements ticket #17135.  We're going to need this one to avoid
chaos as everybody figures out how ed25519 keys work.

10 years agoExtract the add-or-replace-keypin logic into a new function
Nick Mathewson [Wed, 23 Sep 2015 15:07:17 +0000 (11:07 -0400)] 
Extract the add-or-replace-keypin logic into a new function

We're about to need to call it in another place too.

10 years agoAllow conflicts to occur in keypinning journal
Nick Mathewson [Wed, 23 Sep 2015 14:44:38 +0000 (10:44 -0400)] 
Allow conflicts to occur in keypinning journal

When we find a conflict in the keypinning journal, treat the new
entry as superseding all old entries that overlap either of its
keys.

Also add a (not-yet-used) configuration option to disable keypinning
enforcement.

10 years agosome changelog work
Nick Mathewson [Wed, 23 Sep 2015 14:44:22 +0000 (10:44 -0400)] 
some changelog work

10 years agoadd a README to src/config
Nick Mathewson [Tue, 22 Sep 2015 21:06:39 +0000 (17:06 -0400)] 
add a README to src/config

10 years agoadd more clang checkers; find no new bugs.
Nick Mathewson [Tue, 22 Sep 2015 15:37:50 +0000 (11:37 -0400)] 
add more clang checkers; find no new bugs.

10 years agoscan-build is more mature now; no need to hardcode the one in my /opt/clang-3.4
Nick Mathewson [Tue, 22 Sep 2015 13:58:16 +0000 (09:58 -0400)] 
scan-build is more mature now; no need to hardcode the one in my /opt/clang-3.4

10 years agoFix a memory leak in router_parse_addr_policy_item_from_string. CID 1324770
Nick Mathewson [Tue, 22 Sep 2015 13:55:05 +0000 (09:55 -0400)] 
Fix a memory leak in router_parse_addr_policy_item_from_string.  CID 1324770

10 years agoMerge branch 'feature16769_squashed'
Nick Mathewson [Tue, 22 Sep 2015 13:26:30 +0000 (09:26 -0400)] 
Merge branch 'feature16769_squashed'

10 years agoRemove --master-key form the changes file
Nick Mathewson [Tue, 22 Sep 2015 13:22:09 +0000 (09:22 -0400)] 
Remove --master-key form the changes file

10 years agoDisable --master-key as not-yet-working for 0.2.7
Nick Mathewson [Mon, 21 Sep 2015 17:07:38 +0000 (13:07 -0400)] 
Disable --master-key as not-yet-working for 0.2.7

10 years agoAdd a --master-key option
Nick Mathewson [Tue, 1 Sep 2015 14:58:53 +0000 (10:58 -0400)] 
Add a --master-key option

This lets the user override the default location for the master key
when used with --keygen

Part of 16769.

10 years agoAdd a new --newpass option to add or remove secret key passphrases.
Nick Mathewson [Tue, 1 Sep 2015 14:41:02 +0000 (10:41 -0400)] 
Add a new --newpass option to add or remove secret key passphrases.

10 years agoMerge branch 'feature16944_v2'
Nick Mathewson [Tue, 22 Sep 2015 13:19:28 +0000 (09:19 -0400)] 
Merge branch 'feature16944_v2'

10 years agoSort changelog entries a little more
Nick Mathewson [Tue, 22 Sep 2015 13:14:07 +0000 (09:14 -0400)] 
Sort changelog entries a little more

10 years agoMerge branch 'bug17109_v2_squashed'
Nick Mathewson [Tue, 22 Sep 2015 12:36:39 +0000 (08:36 -0400)] 
Merge branch 'bug17109_v2_squashed'

10 years agoCheck that openssl has ECC support during configure
Sebastian Hahn [Sat, 19 Sep 2015 14:36:55 +0000 (16:36 +0200)] 
Check that openssl has ECC support during configure

This allows builds on machines with a crippled openssl to fail early
during configure. Bugfix on 0.2.7.1-alpha, which introduced the
requirement for ECC support. Fixes bug 17109.

10 years agoUpdate private ExitPolicy in man page and torrcs for 10727, formatting
teor (Tim Wilson-Brown) [Tue, 22 Sep 2015 01:50:04 +0000 (11:50 +1000)] 
Update private ExitPolicy in man page and torrcs for 10727, formatting

Update the definition of the private exit policy in the man page
and torrcs. It didn't get merged correctly into the man page, and
it was incomplete in the torrcs. (Unfortunately, we only reject the
primary configured IPv4 and IPv6 addresses, not all configured IPv4
and IPv6 addresses.)

Also fixup msn page formatting errors from changes in tickets 16069
and 17027, mainly unescaped *s.

10 years agoAdd IPv6 syntax to ExitPolicy intro paragraph in man page
teor (Tim Wilson-Brown) [Tue, 22 Sep 2015 01:44:13 +0000 (11:44 +1000)] 
Add IPv6 syntax to ExitPolicy intro paragraph in man page

10 years agoUpdate docs with advice for separate IPv4 and IPv6 exit policies
teor (Tim Wilson-Brown) [Tue, 22 Sep 2015 01:41:16 +0000 (11:41 +1000)] 
Update docs with advice for separate IPv4 and IPv6 exit policies

Advise users how to configure separate IPv4 and IPv6 exit
policies in the manpage and sample torrcs.

Related to fixes in ticket #16069 and #17027. Patch by "teor".
Patch on 2eb7eafc9d78 and a96c0affcb4c (25 Oct 2012),
released in 0.2.4.7-alpha.

10 years agofold new entries into changelog for 0.2.7.3
Nick Mathewson [Mon, 21 Sep 2015 17:58:20 +0000 (13:58 -0400)] 
fold new entries into changelog for 0.2.7.3

10 years agoMerge remote-tracking branch 'public/bug17047'
Nick Mathewson [Wed, 16 Sep 2015 12:46:13 +0000 (08:46 -0400)] 
Merge remote-tracking branch 'public/bug17047'

10 years agoMerge remote-tracking branch 'teor/bug16069-bug17027'
Nick Mathewson [Wed, 16 Sep 2015 12:20:15 +0000 (08:20 -0400)] 
Merge remote-tracking branch 'teor/bug16069-bug17027'

10 years agoDon't enable SSE2 on X86-64.
Sebastian Hahn [Wed, 16 Sep 2015 02:27:32 +0000 (04:27 +0200)] 
Don't enable SSE2 on X86-64.

This removes a comment presumably introduced for debugging that was left
in accidentally. Bug not in any released version of Tor. Fixes bug
17092.

10 years agoMerge branch 'bug17027-reject-private-all-interfaces-v2' into bug16069-bug17027
teor (Tim Wilson-Brown) [Tue, 15 Sep 2015 23:09:54 +0000 (09:09 +1000)] 
Merge branch 'bug17027-reject-private-all-interfaces-v2' into bug16069-bug17027

src/test/test_policy.c:
Merged calls to policies_parse_exit_policy by adding additional arguments.
fixup to remaining instance of ~EXIT_POLICY_IPV6_ENABLED.
Compacting logic test now produces previous list length of 4, corrected this.

src/config/torrc.sample.in:
src/config/torrc.minimal.in-staging:
Merged torrc modification dates in favour of latest.

10 years agofixup Clarify ambiguous log message in router_add_exit_policy
teor (Tim Wilson-Brown) [Tue, 15 Sep 2015 17:59:30 +0000 (03:59 +1000)] 
fixup Clarify ambiguous log message in router_add_exit_policy

10 years agofixup Only set TAPMP_STAR_IPV6_ONLY if TAPMP_EXTENDED_STAR is set
teor (Tim Wilson-Brown) [Tue, 15 Sep 2015 17:58:06 +0000 (03:58 +1000)] 
fixup Only set TAPMP_STAR_IPV6_ONLY if TAPMP_EXTENDED_STAR is set

Also fix a comment.

10 years agoLog an info-level message for each IP blocked by ExitPolicyRejectPrivate
teor (Tim Wilson-Brown) [Tue, 15 Sep 2015 08:57:00 +0000 (18:57 +1000)] 
Log an info-level message for each IP blocked by ExitPolicyRejectPrivate

Log an info-level message containing the reject line added to the
exit policy for each local IP address blocked by ExitPolicyRejectPrivate:
 - Published IPv4 and IPv6 addresses
 - Publicly routable IPv4 and IPv6 interface addresses

10 years agoExitPolicyRejectPrivate rejects local IPv6 address and interface addresses
teor (Tim Wilson-Brown) [Tue, 15 Sep 2015 08:34:18 +0000 (18:34 +1000)] 
ExitPolicyRejectPrivate rejects local IPv6 address and interface addresses

ExitPolicyRejectPrivate now rejects more local addresses by default:
 * the relay's published IPv6 address (if any), and
 * any publicly routable IPv4 or IPv6 addresses on any local interfaces.

This resolves a security issue for IPv6 Exits and multihomed Exits that
trust connections originating from localhost.

Resolves ticket 17027. Patch by "teor".
Patch on 42b8fb5a1523 (11 Nov 2007), released in 0.2.0.11-alpha.

10 years agoAdd tests for util_format
Ola Bini [Tue, 15 Sep 2015 15:40:16 +0000 (17:40 +0200)] 
Add tests for util_format

10 years agofixup add malformed_list to unit tests from d3358a0a05f6 IPv6 wildcards
teor (Tim Wilson-Brown) [Tue, 15 Sep 2015 14:34:12 +0000 (00:34 +1000)] 
fixup add malformed_list to unit tests from d3358a0a05f6 IPv6 wildcards

The unit tests added in e033d5e90bcb got malformed_list added to
router_parse_addr_policy_item_from_string calls, but unit tests from
subsequent commits didn't get the extra argument until now.

10 years agoExitPolicy accept6/reject6 produces IPv6 wildcard addresses only
teor (Tim Wilson-Brown) [Mon, 14 Sep 2015 01:46:58 +0000 (11:46 +1000)] 
ExitPolicy accept6/reject6 produces IPv6 wildcard addresses only

In previous versions of Tor, ExitPolicy accept6/reject6 * produced
policy entries for IPv4 and IPv6 wildcard addresses.

To reduce operator confusion, change accept6/reject6 * to only produce
an IPv6 wildcard address.

Resolves bug #16069.

Patch on 2eb7eafc9d78 and a96c0affcb4c (25 Oct 2012),
released in 0.2.4.7-alpha.

10 years agoWarn about redundant torrc ExitPolicy lines due to accept/reject *:*
teor (Tim Wilson-Brown) [Mon, 14 Sep 2015 11:56:14 +0000 (21:56 +1000)] 
Warn about redundant torrc ExitPolicy lines due to accept/reject *:*

Tor now warns when ExitPolicy lines occur after accept/reject *:*
or variants. These lines are redundant, and were always ignored.

Partial fix for ticket 16069. Patch by "teor".
Patch on 2eb7eafc9d78 and a96c0affcb4c (25 Oct 2012),
released in 0.2.4.7-alpha.

10 years agoIgnore accept6/reject6 IPv4, warn about unexpected rule outcomes
teor (Tim Wilson-Brown) [Fri, 11 Sep 2015 05:10:54 +0000 (15:10 +1000)] 
Ignore accept6/reject6 IPv4, warn about unexpected rule outcomes

When parsing torrc ExitPolicies, we now warn if:
  * an IPv4 address is used on an accept6 or reject6 line. The line is
    ignored, but the rest of the policy items in the list are used.
    (accept/reject continue to allow both IPv4 and IPv6 addresses in torrcs.)
  * a "private" address alias is used on an accept6 or reject6 line.
    The line filters both IPv4 and IPv6 private addresses, disregarding
    the 6 in accept6/reject6.

When parsing torrc ExitPolicies, we now issue an info-level message:
  * when expanding an accept/reject * line to include both IPv4 and IPv6
    wildcard addresses.

In each instance, usage advice is provided to avoid the message.

Partial fix for ticket 16069. Patch by "teor".
Patch on 2eb7eafc9d78 and a96c0affcb4c (25 Oct 2012),
released in 0.2.4.7-alpha.

10 years agoAdd get_interface_address[6]_list for a list of interface IP addresses
teor (Tim Wilson-Brown) [Tue, 15 Sep 2015 07:04:18 +0000 (17:04 +1000)] 
Add get_interface_address[6]_list for a list of interface IP addresses

Add get_interface_address[6]_list by refactoring
get_interface_address6. Add unit tests for new and existing functions.

Preparation for ticket 17027. Patch by "teor".
Patch on 42b8fb5a1523 (11 Nov 2007), released in 0.2.0.11-alpha.

10 years agoUpdate comments about ExitPolicy parsing
teor (Tim Wilson-Brown) [Wed, 9 Sep 2015 13:48:33 +0000 (23:48 +1000)] 
Update comments about ExitPolicy parsing

Fix incomplete and incorrect comments.

Comment changes only.

10 years agoConvince coverity that we do not have a particular memory leak
Nick Mathewson [Sun, 13 Sep 2015 18:44:46 +0000 (14:44 -0400)] 
Convince coverity that we do not have a particular memory leak

10 years agoUse SSL_get_client_ciphers() on openssl 1.1+, not SSL_get_ciphers...
Nick Mathewson [Sun, 13 Sep 2015 15:51:51 +0000 (11:51 -0400)] 
Use SSL_get_client_ciphers() on openssl 1.1+, not SSL_get_ciphers...

(which isn't correct.)

Fixes bug 17047; bugfix on 0.2.7.2-alpha, introduced by the merge in
0030765e04d8dfe3dfaf8124b01a4d578b7d8ceb, apparently.

10 years agoAdd a rend cache failure info dup function
David Goulet [Fri, 11 Sep 2015 13:09:07 +0000 (15:09 +0200)] 
Add a rend cache failure info dup function

When validating a new descriptor against our rend cache failure, we were
added the failure entry to the new cache entry without duplicating. It was
then freed just after the validation ending up in a very bad memory state
that was making tor abort(). To fix this, a dup function has been added and
used just before adding the failure entry.

Fixes #17041

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoMerge remote-tracking branch 'public/ed25519_hup_v2'
Nick Mathewson [Thu, 10 Sep 2015 14:37:13 +0000 (10:37 -0400)] 
Merge remote-tracking branch 'public/ed25519_hup_v2'

10 years agoMerge remote-tracking branch 'teor/make-test-network-all'
Nick Mathewson [Thu, 10 Sep 2015 14:35:06 +0000 (10:35 -0400)] 
Merge remote-tracking branch 'teor/make-test-network-all'

10 years agoMerge remote-tracking branch 'teor/configure-use-colon'
Nick Mathewson [Thu, 10 Sep 2015 14:03:44 +0000 (10:03 -0400)] 
Merge remote-tracking branch 'teor/configure-use-colon'

10 years agofixup Some slower configurations need 35 seconds to bootstrap
teor (Tim Wilson-Brown) [Thu, 10 Sep 2015 07:40:47 +0000 (17:40 +1000)] 
fixup Some slower configurations need 35 seconds to bootstrap

Some slower configurations, like OS X i386, need 35 seconds to reliably
bootstrap larger chutney networks. Increase default bootstrap time in
src/test/test-network.h to 35 seconds.

10 years agoUse : rather than /bin/true in configure.ac
teor (Tim Wilson-Brown) [Thu, 10 Sep 2015 07:33:59 +0000 (17:33 +1000)] 
Use : rather than /bin/true in configure.ac

Some platforms have true at different locations, like /usr/bin/true.

10 years agoBump default test-network bootstrap time to 35 sec (see 16953)
Nick Mathewson [Wed, 9 Sep 2015 17:23:32 +0000 (13:23 -0400)] 
Bump default test-network bootstrap time to 35 sec (see 16953)

10 years agoMerge remote-tracking branch 'yawning/feature15482_fixup'
Nick Mathewson [Wed, 9 Sep 2015 13:56:59 +0000 (09:56 -0400)] 
Merge remote-tracking branch 'yawning/feature15482_fixup'

10 years agoCheck NoKeepAliveIsolateSOCKSAuth in a better place.
Yawning Angel [Wed, 9 Sep 2015 13:52:30 +0000 (13:52 +0000)] 
Check NoKeepAliveIsolateSOCKSAuth in a better place.

No functional changes, but since NoKeepAliveIsolateSOCKSAuth isn't
part of isoflag, it should be checked where all other similar options
are, and bypass the (no-op) masking at the end.

10 years agoFold changes files into changelog
Nick Mathewson [Wed, 9 Sep 2015 13:44:02 +0000 (09:44 -0400)] 
Fold changes files into changelog

10 years agoFix warnings from lintChanges
Nick Mathewson [Wed, 9 Sep 2015 13:35:05 +0000 (09:35 -0400)] 
Fix warnings from lintChanges