]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
7 years agoremove the now-duplicate 0.3.3.6 stanzas
Roger Dingledine [Tue, 22 May 2018 22:03:25 +0000 (18:03 -0400)] 
remove the now-duplicate 0.3.3.6 stanzas

7 years agocopy changelog and releasenotes from 0.3.3.6
Nick Mathewson [Tue, 22 May 2018 22:07:10 +0000 (18:07 -0400)] 
copy changelog and releasenotes from 0.3.3.6

7 years agoMerge branch 'maint-0.3.3'
Nick Mathewson [Tue, 22 May 2018 22:05:42 +0000 (18:05 -0400)] 
Merge branch 'maint-0.3.3'

"ours" merge to avoid version bump.

7 years agoUpdate version to 0.3.3.6-dev
Nick Mathewson [Tue, 22 May 2018 22:05:28 +0000 (18:05 -0400)] 
Update version to 0.3.3.6-dev

7 years agoforward-port all those changelog changes
Roger Dingledine [Tue, 22 May 2018 20:17:56 +0000 (16:17 -0400)] 
forward-port all those changelog changes

7 years agoreorder 0.3.3.3-alpha changelog
Roger Dingledine [Tue, 22 May 2018 18:34:53 +0000 (14:34 -0400)] 
reorder 0.3.3.3-alpha changelog

(it came out before 0.3.2.10, because 0.3.2.10 has backports from it)

7 years agoMerge branch 'maint-0.3.3'
Nick Mathewson [Tue, 22 May 2018 18:13:28 +0000 (14:13 -0400)] 
Merge branch 'maint-0.3.3'

7 years agoMerge branch 'trove-2018-005_032' into maint-0.3.3
Nick Mathewson [Tue, 22 May 2018 18:13:23 +0000 (14:13 -0400)] 
Merge branch 'trove-2018-005_032' into maint-0.3.3

7 years agoavoid a signed/unsigned comparison.
Nick Mathewson [Tue, 22 May 2018 18:12:44 +0000 (14:12 -0400)] 
avoid a signed/unsigned comparison.

7 years agoMerge branch 'maint-0.3.3'
Nick Mathewson [Tue, 22 May 2018 17:35:33 +0000 (13:35 -0400)] 
Merge branch 'maint-0.3.3'

7 years agoMake the TROVE-2018-005 fix work with rust.
Nick Mathewson [Tue, 22 May 2018 17:35:20 +0000 (13:35 -0400)] 
Make the TROVE-2018-005 fix work with rust.

7 years agoMerge branch 'maint-0.3.3'
Nick Mathewson [Tue, 22 May 2018 16:54:31 +0000 (12:54 -0400)] 
Merge branch 'maint-0.3.3'

7 years agoMerge branch 'trove-2018-005_032' into maint-0.3.3
Nick Mathewson [Tue, 22 May 2018 16:54:26 +0000 (12:54 -0400)] 
Merge branch 'trove-2018-005_032' into maint-0.3.3

7 years agouint breaks compilation on windows
Nick Mathewson [Tue, 22 May 2018 16:54:05 +0000 (12:54 -0400)] 
uint breaks compilation on windows

7 years agoMerge branch 'maint-0.3.3'
Nick Mathewson [Tue, 22 May 2018 16:40:40 +0000 (12:40 -0400)] 
Merge branch 'maint-0.3.3'

"ours" merge to avoid version bump

7 years agoversion bump to 0.3.3.6
Nick Mathewson [Tue, 22 May 2018 16:40:18 +0000 (12:40 -0400)] 
version bump to 0.3.3.6

7 years agoMerge branch 'trove-2018-005_034'
Nick Mathewson [Tue, 22 May 2018 16:33:49 +0000 (12:33 -0400)] 
Merge branch 'trove-2018-005_034'

7 years agoMerge branch 'maint-0.3.3'
Nick Mathewson [Tue, 22 May 2018 16:33:09 +0000 (12:33 -0400)] 
Merge branch 'maint-0.3.3'

"Ours" merge to avoid the maint-0.3.3 version of the TROVE-2018-005
fix, which touches the files in their old locations.

7 years agofix wide lines
Nick Mathewson [Tue, 22 May 2018 16:32:00 +0000 (12:32 -0400)] 
fix wide lines

7 years agochanges file for TROVE-2018-005
Nick Mathewson [Tue, 22 May 2018 16:21:00 +0000 (12:21 -0400)] 
changes file for TROVE-2018-005

7 years agovote: TROVE-2018-005 Make DirAuths omit misbehaving routers from their vote.
Isis Lovecruft [Mon, 7 May 2018 23:59:06 +0000 (23:59 +0000)] 
vote: TROVE-2018-005 Make DirAuths omit misbehaving routers from their vote.

7 years agorust: Mirror TROVE-2018-005 fix in Rust protover implementation.
Isis Lovecruft [Wed, 21 Mar 2018 02:22:54 +0000 (02:22 +0000)] 
rust: Mirror TROVE-2018-005 fix in Rust protover implementation.

 * REFACTORS `UnvalidatedProtoEntry::from_str` to place the bulk of the
   splitting/parsing logic in to a new
   `UnvalidatedProtoEntry::parse_protocol_and_version_str()` method (so that
   both `from_str()` and `from_str_any_len()` can call it.)
 * ADD a new `UnvalidatedProtoEntry::from_str_any_len()` method in order to
   maintain compatibility with consensus methods older than 29.
 * ADD a limit on the number of characters in a protocol name.
 * FIXES part of #25517: https://bugs.torproject.org/25517

7 years agoprotover: TROVE-2018-005 Fix potential DoS in protover protocol parsing.
Isis Lovecruft [Thu, 29 Mar 2018 01:54:05 +0000 (01:54 +0000)] 
protover: TROVE-2018-005 Fix potential DoS in protover protocol parsing.

In protover.c, the `expand_protocol_list()` function expands a `smartlist_t` of
`proto_entry_t`s to their protocol name concatenated with each version number.
For example, given a `proto_entry_t` like so:

    proto_entry_t *proto = tor_malloc(sizeof(proto_entry_t));
    proto_range_t *range = tor_malloc_zero(sizeof(proto_range_t));

    proto->name = tor_strdup("DoSaaaaaaaaaaaaaaaaaaaaaa[19KB]aaa");
    proto->ranges = smartlist_new();

    range->low = 1;
    range->high = 65536;

    smartlist_add(proto->ranges, range);

(Where `[19KB]` is roughly 19KB of `"a"` bytes.)  This would expand in
`expand_protocol_list()` to a `smartlist_t` containing 65536 copies of the
string, e.g.:

    "DoSaaaaaaaaaaaaaaaaaaaaaa[19KB]aaa=1"
    "DoSaaaaaaaaaaaaaaaaaaaaaa[19KB]aaa=2"
    […]
    "DoSaaaaaaaaaaaaaaaaaaaaaa[19KB]aaa=65535"

Thus constituting a potential resource exhaustion attack.

The Rust implementation is not subject to this attack, because it instead
expands the above string into a `HashMap<String, HashSet<u32>` prior to #24031,
and a `HashMap<UnvalidatedProtocol, ProtoSet>` after).  Neither Rust version is
subject to this attack, because it only stores the `String` once per protocol.
(Although a related, but apparently of too minor impact to be usable, DoS bug
has been fixed in #24031. [0])

[0]: https://bugs.torproject.org/24031

 * ADDS hard limit on protocol name lengths in protover.c and checks in
   parse_single_entry() and expand_protocol_list().
 * ADDS tests to ensure the bug is caught.
 * FIXES #25517: https://bugs.torproject.org/25517

7 years agorust: Mirror TROVE-2018-005 fix in Rust protover implementation.
Isis Lovecruft [Wed, 21 Mar 2018 02:22:54 +0000 (02:22 +0000)] 
rust: Mirror TROVE-2018-005 fix in Rust protover implementation.

 * REFACTORS `UnvalidatedProtoEntry::from_str` to place the bulk of the
   splitting/parsing logic in to a new
   `UnvalidatedProtoEntry::parse_protocol_and_version_str()` method (so that
   both `from_str()` and `from_str_any_len()` can call it.)
 * ADD a new `UnvalidatedProtoEntry::from_str_any_len()` method in order to
   maintain compatibility with consensus methods older than 29.
 * ADD a limit on the number of characters in a protocol name.
 * FIXES part of #25517: https://bugs.torproject.org/25517

7 years agoMerge branch 'trove-2018-005_032' into trove-2018-005_033
Nick Mathewson [Tue, 22 May 2018 16:27:15 +0000 (12:27 -0400)] 
Merge branch 'trove-2018-005_032' into trove-2018-005_033

7 years agochanges file for TROVE-2018-005
Nick Mathewson [Tue, 22 May 2018 16:21:00 +0000 (12:21 -0400)] 
changes file for TROVE-2018-005

7 years agoAdd stdbool to protover.h. Only needed for the 032 backport
Nick Mathewson [Tue, 22 May 2018 16:15:52 +0000 (12:15 -0400)] 
Add stdbool to protover.h. Only needed for the 032 backport

7 years agovote: TROVE-2018-005 Make DirAuths omit misbehaving routers from their vote.
Isis Lovecruft [Mon, 7 May 2018 23:59:06 +0000 (23:59 +0000)] 
vote: TROVE-2018-005 Make DirAuths omit misbehaving routers from their vote.

7 years agoprotover: TROVE-2018-005 Fix potential DoS in protover protocol parsing.
Isis Lovecruft [Thu, 29 Mar 2018 01:54:05 +0000 (01:54 +0000)] 
protover: TROVE-2018-005 Fix potential DoS in protover protocol parsing.

In protover.c, the `expand_protocol_list()` function expands a `smartlist_t` of
`proto_entry_t`s to their protocol name concatenated with each version number.
For example, given a `proto_entry_t` like so:

    proto_entry_t *proto = tor_malloc(sizeof(proto_entry_t));
    proto_range_t *range = tor_malloc_zero(sizeof(proto_range_t));

    proto->name = tor_strdup("DoSaaaaaaaaaaaaaaaaaaaaaa[19KB]aaa");
    proto->ranges = smartlist_new();

    range->low = 1;
    range->high = 65536;

    smartlist_add(proto->ranges, range);

(Where `[19KB]` is roughly 19KB of `"a"` bytes.)  This would expand in
`expand_protocol_list()` to a `smartlist_t` containing 65536 copies of the
string, e.g.:

    "DoSaaaaaaaaaaaaaaaaaaaaaa[19KB]aaa=1"
    "DoSaaaaaaaaaaaaaaaaaaaaaa[19KB]aaa=2"
    […]
    "DoSaaaaaaaaaaaaaaaaaaaaaa[19KB]aaa=65535"

Thus constituting a potential resource exhaustion attack.

The Rust implementation is not subject to this attack, because it instead
expands the above string into a `HashMap<String, HashSet<u32>` prior to #24031,
and a `HashMap<UnvalidatedProtocol, ProtoSet>` after).  Neither Rust version is
subject to this attack, because it only stores the `String` once per protocol.
(Although a related, but apparently of too minor impact to be usable, DoS bug
has been fixed in #24031. [0])

[0]: https://bugs.torproject.org/24031

 * ADDS hard limit on protocol name lengths in protover.c and checks in
   parse_single_entry() and expand_protocol_list().
 * ADDS tests to ensure the bug is caught.
 * FIXES #25517: https://bugs.torproject.org/25517

7 years agoMerge branch 'bug26101_26102'
Nick Mathewson [Tue, 22 May 2018 12:42:04 +0000 (08:42 -0400)] 
Merge branch 'bug26101_26102'

7 years agoremove already-merged changes file
Nick Mathewson [Tue, 22 May 2018 12:36:03 +0000 (08:36 -0400)] 
remove already-merged changes file

7 years agoMerge branch 'maint-0.3.3'
Nick Mathewson [Tue, 22 May 2018 12:35:41 +0000 (08:35 -0400)] 
Merge branch 'maint-0.3.3'

7 years agoFix a crash bug when testing reachability
Nick Mathewson [Sun, 4 Mar 2018 15:31:17 +0000 (10:31 -0500)] 
Fix a crash bug when testing reachability

Fixes bug 25415; bugfix on 0.3.3.2-alpha.

7 years agoWhoops -- add an entry I missed to the 0.3.4.1-alpha changelog
Nick Mathewson [Thu, 17 May 2018 16:47:06 +0000 (12:47 -0400)] 
Whoops -- add an entry I missed to the 0.3.4.1-alpha changelog

7 years agobump to 0.3.4.1-alpha-dev
Nick Mathewson [Thu, 17 May 2018 13:44:31 +0000 (09:44 -0400)] 
bump to 0.3.4.1-alpha-dev

7 years agoincrement changelog date tor-0.3.4.1-alpha
Nick Mathewson [Thu, 17 May 2018 13:00:49 +0000 (09:00 -0400)] 
increment changelog date

7 years agoBump version to 0.3.4.1-alpha; contemplate a release
Nick Mathewson [Wed, 16 May 2018 18:40:28 +0000 (14:40 -0400)] 
Bump version to 0.3.4.1-alpha; contemplate a release

7 years agoAdd comments explaining when a connected cell has an UNSPEC addr
Nick Mathewson [Wed, 16 May 2018 18:09:18 +0000 (14:09 -0400)] 
Add comments explaining when a connected cell has an UNSPEC addr

Should prevent other bugs like 26117.

7 years agoMerge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Wed, 16 May 2018 16:11:45 +0000 (12:11 -0400)] 
Merge branch 'maint-0.3.1' into maint-0.3.2

7 years agoMerge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Wed, 16 May 2018 16:11:45 +0000 (12:11 -0400)] 
Merge branch 'maint-0.3.2' into maint-0.3.3

7 years agoMerge branch 'maint-0.2.9' into maint-0.3.1
Nick Mathewson [Wed, 16 May 2018 16:11:45 +0000 (12:11 -0400)] 
Merge branch 'maint-0.2.9' into maint-0.3.1

7 years agoMerge branch 'bug26072_029' into maint-0.2.9
Nick Mathewson [Wed, 16 May 2018 16:11:40 +0000 (12:11 -0400)] 
Merge branch 'bug26072_029' into maint-0.2.9

7 years agoBug 26117: Move CIRC_BW field accounting.
Mike Perry [Tue, 15 May 2018 18:44:25 +0000 (18:44 +0000)] 
Bug 26117: Move CIRC_BW field accounting.

Previously, we used the AF_UNSPEC check to represent valid connected cell
data as a result of the lack of return. This was incorrect.

7 years agoMerge branch 'maint-0.3.3'
Nick Mathewson [Wed, 16 May 2018 16:11:46 +0000 (12:11 -0400)] 
Merge branch 'maint-0.3.3'

7 years agoupdate tor-rust-dependencies submodule
Nick Mathewson [Wed, 16 May 2018 13:16:47 +0000 (09:16 -0400)] 
update tor-rust-dependencies submodule

7 years agoMerge remote-tracking branch 'isis-github/bug26106'
Nick Mathewson [Wed, 16 May 2018 13:16:04 +0000 (09:16 -0400)] 
Merge remote-tracking branch 'isis-github/bug26106'

7 years agoMerge remote-tracking branch 'isis-github/bug26108'
Nick Mathewson [Wed, 16 May 2018 13:14:13 +0000 (09:14 -0400)] 
Merge remote-tracking branch 'isis-github/bug26108'

7 years agoMerge remote-tracking branch 'isis-github/bug26109'
Nick Mathewson [Wed, 16 May 2018 13:13:27 +0000 (09:13 -0400)] 
Merge remote-tracking branch 'isis-github/bug26109'

7 years agoreflow the blurb.
Nick Mathewson [Wed, 16 May 2018 13:06:43 +0000 (09:06 -0400)] 
reflow the blurb.

7 years agomove a changelog entry and try writing a blurb
Nick Mathewson [Wed, 16 May 2018 13:05:47 +0000 (09:05 -0400)] 
move a changelog entry and try writing a blurb

7 years agofix some changelog typos that Catalyst found.
Nick Mathewson [Tue, 15 May 2018 23:40:46 +0000 (19:40 -0400)] 
fix some changelog typos that Catalyst found.

7 years agorust: Update rand_core dependency to 0.2.0-pre.0.
Isis Lovecruft [Tue, 15 May 2018 19:33:20 +0000 (19:33 +0000)] 
rust: Update rand_core dependency to 0.2.0-pre.0.

7 years agorust: Update rand dev-dependency to 0.5.0-pre.2.
Isis Lovecruft [Tue, 15 May 2018 19:31:29 +0000 (19:31 +0000)] 
rust: Update rand dev-dependency to 0.5.0-pre.2.

7 years agovarious changelog edits
Nick Mathewson [Tue, 15 May 2018 19:06:43 +0000 (15:06 -0400)] 
various changelog edits

7 years agorust: Export digests subcrate from our crypto crate.
Isis Lovecruft [Tue, 15 May 2018 02:04:40 +0000 (02:04 +0000)] 
rust: Export digests subcrate from our crypto crate.

7 years agorust: Export crypto_rand::* functions from our external crate.
Isis Lovecruft [Tue, 15 May 2018 02:05:14 +0000 (02:05 +0000)] 
rust: Export crypto_rand::* functions from our external crate.

7 years agorust: Move rand crate into crypto parent crate.
Isis Lovecruft [Tue, 15 May 2018 02:02:02 +0000 (02:02 +0000)] 
rust: Move rand crate into crypto parent crate.

7 years agorust: Make Rng::new() methods public.
Isis Lovecruft [Tue, 15 May 2018 01:45:29 +0000 (01:45 +0000)] 
rust: Make Rng::new() methods public.

7 years agorun format-changelog
Nick Mathewson [Tue, 15 May 2018 16:34:12 +0000 (12:34 -0400)] 
run format-changelog

7 years agouse sortChanges to begin an 0.3.4.1-alpha changelog
Nick Mathewson [Tue, 15 May 2018 16:31:16 +0000 (12:31 -0400)] 
use sortChanges to begin an 0.3.4.1-alpha changelog

7 years agoMerge branch 'maint-0.3.3'
Nick Mathewson [Tue, 15 May 2018 13:32:45 +0000 (09:32 -0400)] 
Merge branch 'maint-0.3.3'

7 years agoMerge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Tue, 15 May 2018 13:32:44 +0000 (09:32 -0400)] 
Merge branch 'maint-0.3.1' into maint-0.3.2

7 years agoMerge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Tue, 15 May 2018 13:32:44 +0000 (09:32 -0400)] 
Merge branch 'maint-0.3.2' into maint-0.3.3

7 years agoMerge branch 'maint-0.2.9' into maint-0.3.1
Nick Mathewson [Tue, 15 May 2018 13:32:44 +0000 (09:32 -0400)] 
Merge branch 'maint-0.2.9' into maint-0.3.1

7 years agoUpdate geoip and geoip6 to the May 1 2018 database.
Karsten Loesing [Tue, 15 May 2018 13:16:47 +0000 (15:16 +0200)] 
Update geoip and geoip6 to the May 1 2018 database.

7 years agoUpdate cov-diff to handle new gcov, and remove timestamps
Nick Mathewson [Mon, 14 May 2018 22:04:10 +0000 (18:04 -0400)] 
Update cov-diff to handle new gcov, and remove timestamps

The new gcov sometimes emits *s if there is a line containing
multiple basic blocks, and some are not executed.  (The gcov
documentation says something weird about this point, so I'm trying
to interpret it into the compilerese that I'm familiar with.)
That's bug 26101.

Also, when we're looking for unique variations in our coverage, we
would like cov-diff to suppress timestamps on the diffs.  That's bug
26102.

Both of these are bugfixes on 0.2.5.1-alpha when the cov-diff script
was introduced.

My apologies for the perl.

7 years agoAdd a missing return after marking a stream for bad connected cell
Nick Mathewson [Mon, 14 May 2018 19:54:48 +0000 (15:54 -0400)] 
Add a missing return after marking a stream for bad connected cell

Fixes bug 26072; bugfix on 0.2.4.7-alpha.

7 years agoMerge branch 'bug25903_v5_squashed'
Nick Mathewson [Mon, 14 May 2018 18:25:07 +0000 (14:25 -0400)] 
Merge branch 'bug25903_v5_squashed'

7 years agoBug 25903: Tests
Mike Perry [Wed, 9 May 2018 04:00:59 +0000 (04:00 +0000)] 
Bug 25903: Tests

7 years agoUse router_get_my_routerinfo_with_err to implement the old version
Nick Mathewson [Mon, 14 May 2018 18:12:36 +0000 (14:12 -0400)] 
Use router_get_my_routerinfo_with_err to implement the old version

Having one function implemented in terms of the other should keep
them from diverging.

follow-up on #25852

7 years agoMerge remote-tracking branch 'rl1987/bug25852_take2'
Nick Mathewson [Mon, 14 May 2018 18:05:50 +0000 (14:05 -0400)] 
Merge remote-tracking branch 'rl1987/bug25852_take2'

7 years agoMerge remote-tracking branch 'catalyst-github/bug25756'
Nick Mathewson [Fri, 11 May 2018 22:15:43 +0000 (18:15 -0400)] 
Merge remote-tracking branch 'catalyst-github/bug25756'

7 years agoimprove a URL
Nick Mathewson [Fri, 11 May 2018 22:00:30 +0000 (18:00 -0400)] 
improve a URL

7 years agoMerge branch 'contributing'
Nick Mathewson [Fri, 11 May 2018 21:59:09 +0000 (17:59 -0400)] 
Merge branch 'contributing'

7 years agoMerge remote-tracking branch 'public/bug25994'
Nick Mathewson [Fri, 11 May 2018 21:57:59 +0000 (17:57 -0400)] 
Merge remote-tracking branch 'public/bug25994'

7 years agoget rid of whitespace before #ifdef's
Roger Dingledine [Fri, 11 May 2018 20:27:55 +0000 (16:27 -0400)] 
get rid of whitespace before #ifdef's

i don't know if whitespace is ok to have before preprocessing
directives on all platforms, but anyway we almost never have it,
so now things are more uniform.

7 years agoAdd a CONTRIBUTING file
Nick Mathewson [Fri, 11 May 2018 17:19:37 +0000 (13:19 -0400)] 
Add a CONTRIBUTING file

This file contains pointers to other important top-level resources,
and some info about acceptable licenses.  Also, add that info to
CodingStandards.md

7 years agocontrol: Mask the event(s) before using ANY_EVENT_IS_INTERESTING()
David Goulet [Fri, 11 May 2018 12:58:11 +0000 (08:58 -0400)] 
control: Mask the event(s) before using ANY_EVENT_IS_INTERESTING()

Before this commit, the control events were never triggered. It was introduced
with commit 0c19ce7bdece5906e035e71d3fb682632c8bb9cb.

Fixes #26082

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agoMerge remote-tracking branch 'asn-github/bug26078'
Nick Mathewson [Fri, 11 May 2018 12:20:49 +0000 (08:20 -0400)] 
Merge remote-tracking branch 'asn-github/bug26078'

7 years agoProperly ignore retval of event_del().
George Kadianakis [Fri, 11 May 2018 12:17:52 +0000 (15:17 +0300)] 
Properly ignore retval of event_del().

Fixes #26078: CID 1435546.

7 years agochanges file for 25943 and 25944
Nick Mathewson [Fri, 11 May 2018 12:16:02 +0000 (08:16 -0400)] 
changes file for 25943 and 25944

7 years agoMerge remote-tracking branch 'saper-github/x509_cert_free_crash'
Nick Mathewson [Fri, 11 May 2018 12:09:26 +0000 (08:09 -0400)] 
Merge remote-tracking branch 'saper-github/x509_cert_free_crash'

7 years agotesting: X509 certificate structure needs to be initialized
Marcin Cieślak [Fri, 11 May 2018 00:16:52 +0000 (00:16 +0000)] 
testing: X509 certificate structure needs to be initialized

We alloc/free X.509 structures in three ways:

1) X509 structure allocated with X509_new() and X509_free()

2) Fake X509 structure allocated with fake_x509_malloc() and fake_x509_free()
   May contain valid pointers inside.

3) Empty X509 structure shell allocated with tor_malloc_zero() and
   freed with tor_free()

7 years agoMerge remote-tracking branch 'public/bug25981'
Nick Mathewson [Thu, 10 May 2018 23:31:11 +0000 (19:31 -0400)] 
Merge remote-tracking branch 'public/bug25981'

7 years agoTweak error handling for #25852
rl1987 [Thu, 10 May 2018 13:45:57 +0000 (16:45 +0300)] 
Tweak error handling for #25852

7 years agoAvoid confusion with errno from libc
rl1987 [Thu, 10 May 2018 13:33:08 +0000 (16:33 +0300)] 
Avoid confusion with errno from libc

7 years agoMerge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Thu, 10 May 2018 13:22:32 +0000 (09:22 -0400)] 
Merge branch 'maint-0.3.1' into maint-0.3.2

7 years agoMerge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Thu, 10 May 2018 13:22:32 +0000 (09:22 -0400)] 
Merge branch 'maint-0.3.2' into maint-0.3.3

7 years agoMerge branch 'maint-0.3.3'
Nick Mathewson [Thu, 10 May 2018 13:22:32 +0000 (09:22 -0400)] 
Merge branch 'maint-0.3.3'

7 years agoMerge remote-tracking branch 'dgoulet/bug26069_031_01' into maint-0.3.1
Nick Mathewson [Thu, 10 May 2018 13:22:14 +0000 (09:22 -0400)] 
Merge remote-tracking branch 'dgoulet/bug26069_031_01' into maint-0.3.1

7 years agoMerge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Thu, 10 May 2018 13:19:28 +0000 (09:19 -0400)] 
Merge branch 'maint-0.3.1' into maint-0.3.2

7 years agoMerge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Thu, 10 May 2018 13:19:28 +0000 (09:19 -0400)] 
Merge branch 'maint-0.3.2' into maint-0.3.3

7 years agoMerge branch 'maint-0.3.3'
Nick Mathewson [Thu, 10 May 2018 13:19:28 +0000 (09:19 -0400)] 
Merge branch 'maint-0.3.3'

7 years agoMerge branch 'maint-0.2.9' into maint-0.3.1
Nick Mathewson [Thu, 10 May 2018 13:19:28 +0000 (09:19 -0400)] 
Merge branch 'maint-0.2.9' into maint-0.3.1

7 years agoMerge remote-tracking branch 'juga/ticket26007_029_02' into maint-0.2.9
Nick Mathewson [Thu, 10 May 2018 13:19:09 +0000 (09:19 -0400)] 
Merge remote-tracking branch 'juga/ticket26007_029_02' into maint-0.2.9

7 years agohs-v3: Add an extra white-space when parsing descriptor
David Goulet [Thu, 10 May 2018 13:16:50 +0000 (09:16 -0400)] 
hs-v3: Add an extra white-space when parsing descriptor

The specification describes the signature token to be right after a newline
(\n) then the token "signature" and then a white-space followed by the encoded
signature.

This commit makes sure that when we parse the signature from the descriptor,
we are always looking for that extra white-space at the end of the token.

It will allow us also to support future fields that might start with
"signature".

Fixes #26069

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agoMerge branch 'ticket26063_squashed'
Nick Mathewson [Thu, 10 May 2018 13:13:28 +0000 (09:13 -0400)] 
Merge branch 'ticket26063_squashed'

7 years agoMake _with_err return routerinfo, like old function does
rl1987 [Thu, 10 May 2018 13:13:16 +0000 (16:13 +0300)] 
Make _with_err return routerinfo, like old function does

7 years agoMerge branch 'ticket26064'
Nick Mathewson [Thu, 10 May 2018 13:05:15 +0000 (09:05 -0400)] 
Merge branch 'ticket26064'

7 years agoEnable/disable per-second callback as needed.
Nick Mathewson [Wed, 9 May 2018 16:47:59 +0000 (12:47 -0400)] 
Enable/disable per-second callback as needed.

There are three cases where this can happen: changes in our
controller events, changes in our DisableNetwork setting, and
changes in our hibernation state.

Closes ticket 26063.