]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Thu, 27 Oct 2016 16:03:52 +0000 (12:03 -0400)]
Comment the heck out of the stream/circuit attaching process.
Nick Mathewson [Thu, 27 Oct 2016 14:25:26 +0000 (10:25 -0400)]
Document main.c a lot better
Nick Mathewson [Thu, 27 Oct 2016 13:41:19 +0000 (09:41 -0400)]
Resolve memory leaks in test_dir_networkstatus_compute_bw_weights_v10
overcaffeinated [Thu, 27 Oct 2016 10:15:57 +0000 (11:15 +0100)]
Convert remaining files to smartlist_add_strdup
The coccinelle script produced errors with these test files so
convert the remaining cases of smartlist_add to
smartlist_add_strdup by hand.
overcaffeinated [Thu, 27 Oct 2016 09:26:06 +0000 (10:26 +0100)]
Automated change to use smartlist_add_strdup
Use the following coccinelle script to change uses of
smartlist_add(sl, tor_strdup(str)) to
smartlist_add_strdup(sl, string) (coccinelle script from nickm
via bug 20048):
@@
expression a;
expression b;
@@
- smartlist_add
+ smartlist_add_strdup
(a,
- tor_strdup(
b
- )
)
overcaffeinated [Thu, 27 Oct 2016 09:12:28 +0000 (10:12 +0100)]
Add implementation of smartlist_add_strdup
Add smartlist_add_strdup(sl, string) - replaces the use of
smartlist_add(sl, tor_strdup(string)). Fixes bug 20048.
Nick Mathewson [Wed, 26 Oct 2016 20:40:11 +0000 (16:40 -0400)]
Merge branch 'ticket14881-v3'
Nick Mathewson [Wed, 26 Oct 2016 20:39:59 +0000 (16:39 -0400)]
Small refactoring: explain G,M,E,D,T initialization
Matt Traudt [Sun, 9 Oct 2016 19:41:08 +0000 (15:41 -0400)]
Add historic bwweight tests, comments, line len fixes
Matt Traudt [Tue, 4 Oct 2016 01:09:25 +0000 (21:09 -0400)]
Add consensus weight calculation tests
Matt Traudt [Tue, 6 Sep 2016 16:09:13 +0000 (12:09 -0400)]
Fix default bw weights with new consensus method
See #14881
Nick Mathewson [Wed, 26 Oct 2016 20:22:06 +0000 (16:22 -0400)]
Merge remote-tracking branch 'pastly/ticket20459'
Nick Mathewson [Wed, 26 Oct 2016 18:17:21 +0000 (14:17 -0400)]
Merge branch 'maint-0.2.9'
Nick Mathewson [Wed, 26 Oct 2016 16:52:34 +0000 (12:52 -0400)]
Avoid tor_fragile_assert() failure with DNSPort on RESOLVED_TYPE_ERROR
The tor_fragile_assert() bug has existed here since
c8a5e2d588e0d91
in tor-0.2.1.7-alpha forever, but tor_fragile_assert() was mostly a
no-op until 0.2.9.1-alpha.
Fixes bug 19869.
Nick Mathewson [Wed, 26 Oct 2016 17:30:23 +0000 (13:30 -0400)]
Continue the module documentation effort with circuitbuild and circuituse
Nick Mathewson [Wed, 26 Oct 2016 16:38:50 +0000 (12:38 -0400)]
More module documentation (circpathbias, circuitlist)
Nick Mathewson [Wed, 26 Oct 2016 15:06:45 +0000 (11:06 -0400)]
Regenerate trunnel code with trunnel 1.5
Nick Mathewson [Wed, 26 Oct 2016 15:02:57 +0000 (11:02 -0400)]
More module-level documentation.
Nick Mathewson [Wed, 26 Oct 2016 12:39:04 +0000 (08:39 -0400)]
Whitespace fixes
Nick Mathewson [Tue, 25 Oct 2016 23:30:50 +0000 (19:30 -0400)]
Allow asking a bridge's own descriptor over one-hop connection
When we refactored purpose_needs_anonymity(), we made it so _all_
bridge requests required anonymity. But that missed the case
that we are allowed to ask a bridge for its own descriptor.
With this patch, we consider the resource, and allow "authority.z"
("your own descriptor, compressed") for a bridge's server descriptor
to be non-anonymous.
Fix for bug 20410; bug not in any released Tor.
Matt Traudt [Tue, 25 Oct 2016 14:07:05 +0000 (10:07 -0400)]
Fix ewma_cmp_cmux never considering policies different
Nick Mathewson [Mon, 24 Oct 2016 16:47:29 +0000 (12:47 -0400)]
Merge remote-tracking branch 'pastly/ticket20273'
Nick Mathewson [Mon, 24 Oct 2016 16:24:37 +0000 (12:24 -0400)]
Merge remote-tracking branch 'dgoulet/bug20435_030_01'
Nick Mathewson [Mon, 24 Oct 2016 15:47:40 +0000 (11:47 -0400)]
Module-document dnsserv.c, policies.c, routerkeys.c
Nick Mathewson [Mon, 24 Oct 2016 14:31:16 +0000 (10:31 -0400)]
html error in doxygen comment in rendservice.c
Nick Mathewson [Mon, 24 Oct 2016 14:31:05 +0000 (10:31 -0400)]
doxygen says these options are obsolete
Nick Mathewson [Mon, 24 Oct 2016 14:16:46 +0000 (10:16 -0400)]
Module documentation for config.c and confparse.c
Nick Mathewson [Mon, 24 Oct 2016 13:21:54 +0000 (09:21 -0400)]
Module documentation (and an important caveat) for dirvote.c
David Goulet [Sun, 23 Oct 2016 14:57:06 +0000 (10:57 -0400)]
man: Fix default value of AuthDirGuardBWGuarantee to 2MB
Closes #20435
Signed-off-by: David Goulet <dgoulet@torproject.org>
Nick Mathewson [Thu, 20 Oct 2016 15:02:04 +0000 (11:02 -0400)]
Turn scheduler.c documentation into doxygen.
Nick Mathewson [Wed, 19 Oct 2016 22:07:02 +0000 (18:07 -0400)]
changes file for 20389
Ivan Markin [Mon, 17 Oct 2016 20:10:39 +0000 (20:10 +0000)]
Say 'Invalid argument' instead of unclear 'Unrecognized'
Nick Mathewson [Wed, 19 Oct 2016 21:23:11 +0000 (17:23 -0400)]
BUG in purpose_needs_anonymity if switch not matched.
I believe that this should never trigger, but if it does, it
suggests that there was a gap between is_sensitive_dir_purpose and
purpose_needs_anonymity that we need to fill. Related to 20077.
Nick Mathewson [Wed, 19 Oct 2016 21:17:12 +0000 (17:17 -0400)]
Merge remote-tracking branch 'chelseakomlo/master'
Nick Mathewson [Wed, 19 Oct 2016 21:15:42 +0000 (17:15 -0400)]
Compilation fix. (function pointer implicit cast in tests.)
Nick Mathewson [Wed, 19 Oct 2016 21:11:47 +0000 (17:11 -0400)]
Merge remote-tracking branch 'andrea/ticket19858_v2'
Conflict in entrynodes.c: any_bridge_supports_microdescriptors was
removed in master, and modified in 19858_v2
Nick Mathewson [Wed, 19 Oct 2016 21:07:23 +0000 (17:07 -0400)]
Unify code in channel_write_*cell()
Patch from pingl; patch for 13827.
Nick Mathewson [Wed, 19 Oct 2016 21:04:44 +0000 (17:04 -0400)]
Merge remote-tracking branch 'arma/bug6769'
Nick Mathewson [Wed, 19 Oct 2016 21:03:22 +0000 (17:03 -0400)]
Bump version on master to 0.3.0.0-alpha-dev.
Chelsea H. Komlo [Wed, 19 Oct 2016 00:04:22 +0000 (19:04 -0500)]
Refactor purpose_needs_anonymity to use switch statement
Chelsea H. Komlo [Sun, 9 Oct 2016 00:28:38 +0000 (19:28 -0500)]
Refactor to use purpose_needs_anonymity and remove is_sensitive_dir_purpose
Nick Mathewson [Tue, 18 Oct 2016 23:35:10 +0000 (19:35 -0400)]
changes file for module docs
Nick Mathewson [Tue, 18 Oct 2016 23:32:49 +0000 (19:32 -0400)]
Module-level docs for ext_orport and router.c
Nick Mathewson [Tue, 18 Oct 2016 16:31:50 +0000 (12:31 -0400)]
Turn replaycache.c module doc into doxygen
Nick Mathewson [Tue, 18 Oct 2016 16:25:55 +0000 (12:25 -0400)]
Document connection_or.c and connection.c at module level
Nick Mathewson [Tue, 18 Oct 2016 15:28:40 +0000 (11:28 -0400)]
Module documentation for circuitmux_ewma.c
Nick Mathewson [Tue, 18 Oct 2016 15:17:34 +0000 (11:17 -0400)]
Turn circuitmux.c comments into module docs.
Nick Mathewson [Mon, 17 Oct 2016 18:23:53 +0000 (14:23 -0400)]
Module docs for channel.c and channeltls.c
Nick Mathewson [Mon, 17 Oct 2016 20:32:31 +0000 (16:32 -0400)]
Merge branch 'maint-0.2.8'
"ours" commit to avoid bumping version.
Nick Mathewson [Mon, 17 Oct 2016 20:32:11 +0000 (16:32 -0400)]
Bump to 0.2.8.9-dev
Nick Mathewson [Mon, 17 Oct 2016 20:31:40 +0000 (16:31 -0400)]
Bump master to 0.2.9.4-alpha-dev
Nick Mathewson [Mon, 17 Oct 2016 19:00:58 +0000 (15:00 -0400)]
release-notes for 0.2.8.9
Nick Mathewson [Mon, 17 Oct 2016 18:57:44 +0000 (14:57 -0400)]
Merge branch 'maint-0.2.8'
("ours" merge to avoid taking version bump)
Nick Mathewson [Mon, 17 Oct 2016 18:57:26 +0000 (14:57 -0400)]
bump to 0.2.8.9
Nick Mathewson [Mon, 17 Oct 2016 18:55:05 +0000 (14:55 -0400)]
Fold 20384 into changelog
Nick Mathewson [Mon, 17 Oct 2016 18:52:44 +0000 (14:52 -0400)]
Update the buffer sentinel fix to work with our #20081 fix.
Nick Mathewson [Mon, 17 Oct 2016 18:51:45 +0000 (14:51 -0400)]
Merge branch 'maint-0.2.8'
Nick Mathewson [Mon, 17 Oct 2016 18:51:06 +0000 (14:51 -0400)]
Merge branch 'buf_sentinel_026_v2' into maint-0.2.8
Nick Mathewson [Fri, 14 Oct 2016 13:38:12 +0000 (09:38 -0400)]
Add a one-word sentinel value of 0x0 at the end of each buf_t chunk
This helps protect against bugs where any part of a buf_t's memory
is passed to a function that expects a NUL-terminated input.
It also closes TROVE-2016-10-001 (aka bug 20384).
Nick Mathewson [Mon, 17 Oct 2016 18:06:20 +0000 (14:06 -0400)]
changelog typo fixes from Rubiate
Nick Mathewson [Mon, 17 Oct 2016 18:05:42 +0000 (14:05 -0400)]
Bump version to 0.2.9.4-alpha.
Nick Mathewson [Mon, 17 Oct 2016 18:03:48 +0000 (14:03 -0400)]
edits to changelog from kate and david
Nick Mathewson [Mon, 17 Oct 2016 15:04:11 +0000 (11:04 -0400)]
Wrap the changelog, add a blurb
Nick Mathewson [Mon, 17 Oct 2016 14:57:50 +0000 (10:57 -0400)]
Start on an 0.2.9.4-alpha changelog
Nick Mathewson [Mon, 17 Oct 2016 14:25:13 +0000 (10:25 -0400)]
Fix a syntax problem
Nick Mathewson [Mon, 17 Oct 2016 14:18:45 +0000 (10:18 -0400)]
changes file for module docs
Nick Mathewson [Mon, 17 Oct 2016 14:17:32 +0000 (10:17 -0400)]
Merge branch 'module_docs_1'
Nick Mathewson [Sat, 15 Oct 2016 00:08:51 +0000 (20:08 -0400)]
Write a bunch of module documentation.
This commit adds or improves the module-level documenation for:
buffers.c circuitstats.c command.c connection_edge.c control.c
cpuworker.c crypto_curve25519.c crypto_curve25519.h
crypto_ed25519.c crypto_format.c dircollate.c dirserv.c dns.c
dns_structs.h fp_pair.c geoip.c hibernate.c keypin.c ntmain.c
onion.c onion_fast.c onion_ntor.c onion_tap.c periodic.c
protover.c protover.h reasons.c rephist.c replaycache.c
routerlist.c routerparse.c routerset.c statefile.c status.c
tor_main.c workqueue.c
In particular, I've tried to explain (for each documented module)
what each module does, what's in it, what the big idea is, why it
belongs in Tor, and who calls it. In a few cases, I've added TODO
notes about refactoring opportunities.
I've also renamed an argument, and fixed a few DOCDOC comments.
Nick Mathewson [Mon, 17 Oct 2016 12:27:10 +0000 (08:27 -0400)]
Add a logic-consistency test when parsing unix socket configs
Coverity couldn't tell that 'addrport' was always non-NULL at this
point in the function, so I'm adding an explicit check. This closes
CID
1374060 .
Nick Mathewson [Fri, 14 Oct 2016 14:40:31 +0000 (10:40 -0400)]
Whitespace cleaning
Chelsea H. Komlo [Fri, 14 Oct 2016 14:27:21 +0000 (10:27 -0400)]
adding instructions how to include new test files
Nick Mathewson [Fri, 14 Oct 2016 14:23:24 +0000 (10:23 -0400)]
Merge branch 'bug20176_v2'
Nick Mathewson [Fri, 14 Oct 2016 14:21:41 +0000 (10:21 -0400)]
Merge remote-tracking branch 'public/spaces_in_unix_addrs'
Nick Mathewson [Fri, 14 Oct 2016 13:14:07 +0000 (09:14 -0400)]
Make the FreeBSD ersatz_socketpair test even more skippable.
(This is safe, since only windows actually -uses- erstaz_socketpair.)
Nick Mathewson [Fri, 14 Oct 2016 13:10:34 +0000 (09:10 -0400)]
Merge branch 'bug18357_v2'
Nick Mathewson [Fri, 14 Oct 2016 13:08:51 +0000 (09:08 -0400)]
Extract ExitPolicy-and-IPv6Exit check into a new function
(I've done this instead of changing the semantics of
router_compare_to_my_exit_policy, because dns.c uses
router_compare_to_my_exit_policy too, in a slightly weird way.)
Andrea Shepard [Fri, 14 Oct 2016 00:15:30 +0000 (00:15 +0000)]
Refactor to always allocate chosen_entry_guards in new guard_selection_new() function
Andrea Shepard [Thu, 13 Oct 2016 23:48:49 +0000 (23:48 +0000)]
Use tor_memeq() instead of tor_memcmp() per code review
Andrea Shepard [Thu, 13 Oct 2016 23:47:08 +0000 (23:47 +0000)]
Adjust comment per code review
Nick Mathewson [Thu, 13 Oct 2016 13:47:28 +0000 (09:47 -0400)]
ersatz socketpair tests: work around freebsd jails.
Nick Mathewson [Thu, 13 Oct 2016 13:17:41 +0000 (09:17 -0400)]
Tweak patch for 18529.
- function doesn't need to be inline.
- rename function
- Make documentation more pedantically correct
- Remove needless "? 1 : 0."
Nick Mathewson [Thu, 13 Oct 2016 13:16:40 +0000 (09:16 -0400)]
Remove duplicate code that checks for default authorities
Patch from ericho.
Fixes 18529. Simple refactoring.
Nick Mathewson [Tue, 11 Oct 2016 23:22:46 +0000 (19:22 -0400)]
Fix a bug in displaying IPv6 addrs in test_op_ipv6_ with --verbose
The test code, if it failed, or if it was run in verbose mode, would
use the wrong variable for its loop. Patch from rubiate uploaded to
19999.
Nick Mathewson [Tue, 11 Oct 2016 15:11:21 +0000 (11:11 -0400)]
Switch from "AF_UNIX is always equal" to "always unequal" to avoid wacky bugs. See discussion on 20261
Nick Mathewson [Tue, 11 Oct 2016 15:08:20 +0000 (11:08 -0400)]
Merge remote-tracking branch 'yawning-schwanenlied/bug20261'
Nick Mathewson [Tue, 11 Oct 2016 14:29:43 +0000 (10:29 -0400)]
Fix a new compilation warning with broken-mulodi i386 clang builds. :(
Nick Mathewson [Tue, 11 Oct 2016 13:34:08 +0000 (09:34 -0400)]
Fix spurious compiler warning in do_getpass().
Some compilers apparently noticed that p2len was allowed to be equal
to msg, and so maybe we would be doing memset(prompt2, ' ', 0), and
decided that we probably meant to do memset(prompt2, 0, 0x20);
instead.
Stupid compilers, doing optimization before this kind of warning!
My fix is to just fill the entire prompt2 buffer with spaces,
because it's harmless.
Bugfix on
e59f0d4cb964387c5 , not in any released Tor.
paolo.ingls@gmail.com [Mon, 26 Sep 2016 21:25:16 +0000 (23:25 +0200)]
torrc parsing b0rks on carriage-return
(Specifically, carriage return after a quoted value in a config
line. Fixes bug 19167; bugfix on 0.2.0.16-alpha when we introduced
support for quoted values. Unit tests, changes file, and this
parenthetical by nickm.)
Nick Mathewson [Tue, 11 Oct 2016 12:48:39 +0000 (08:48 -0400)]
Merge remote-tracking branch 'asn/bug19223'
Yawning Angel [Mon, 10 Oct 2016 20:57:45 +0000 (20:57 +0000)]
Bug 20261: Treat AF_UNIX addresses as equal when comparing them.
This is a kludge to deal with the fact that `tor_addr_t` doesn't contain
`sun_path`. This currently ONLY happens when circuit isolation is being
checked, for an isolation mode that is force disabled anyway, so the
kludge is "ugly but adequate", but realistically, making `tor_addr_t`
and the AF_UNIX SocksPort code do the right thing is probably the better
option.
George Kadianakis [Mon, 10 Oct 2016 16:03:39 +0000 (12:03 -0400)]
Fix non-triggerable heap corruption at do_getpass().
Nick Mathewson [Thu, 6 Oct 2016 20:36:49 +0000 (16:36 -0400)]
Merge branch 'no_openssl_100'
Nick Mathewson [Thu, 6 Oct 2016 16:58:49 +0000 (12:58 -0400)]
Stop implying that we support openssl 1.0.0; we don't.
Closes ticket 20303.
The LIBRESSL_VERSION_NUMBER check is needed because if our openssl
is really libressl, it will have an openssl version number we can't
really believe.
Nick Mathewson [Thu, 6 Oct 2016 16:04:04 +0000 (12:04 -0400)]
comment tweak. Fixes 20271. patch from pastly.
Nick Mathewson [Thu, 6 Oct 2016 13:59:49 +0000 (09:59 -0400)]
Merge branch 'maint-0.2.8'
Nick Mathewson [Thu, 6 Oct 2016 13:59:42 +0000 (09:59 -0400)]
Merge branch 'maint-0.2.7' into maint-0.2.8
Nick Mathewson [Thu, 6 Oct 2016 13:59:18 +0000 (09:59 -0400)]
Merge branch 'maint-0.2.6' into maint-0.2.7
Nick Mathewson [Thu, 6 Oct 2016 13:59:03 +0000 (09:59 -0400)]
Merge branch 'maint-0.2.5' into maint-0.2.6
Nick Mathewson [Thu, 6 Oct 2016 13:58:54 +0000 (09:58 -0400)]
Merge branch 'maint-0.2.4' into maint-0.2.5
Nick Mathewson [Thu, 6 Oct 2016 13:16:21 +0000 (09:16 -0400)]
Only use -levent when checking functions if we will use it to link.
Fixes 19904; bugfix on
b62abf9f21499ab ; patch from Rubiate.