]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
5 years agoUpdate version to 0.4.2.8.
Nick Mathewson [Thu, 9 Jul 2020 14:30:37 +0000 (10:30 -0400)] 
Update version to 0.4.2.8.

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.2
Nick Mathewson [Thu, 9 Jul 2020 14:30:03 +0000 (10:30 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.2

`-s ours` to avoid version bump.

5 years agobump to 0.3.5.11
Nick Mathewson [Thu, 9 Jul 2020 14:28:21 +0000 (10:28 -0400)] 
bump to 0.3.5.11

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.2
Nick Mathewson [Thu, 9 Jul 2020 13:28:53 +0000 (09:28 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.2

5 years agoMerge branch 'trove_2020_001_035' into maint-0.3.5
Nick Mathewson [Thu, 9 Jul 2020 13:28:36 +0000 (09:28 -0400)] 
Merge branch 'trove_2020_001_035' into maint-0.3.5

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.2
Alexander Færøy [Wed, 8 Jul 2020 00:36:47 +0000 (00:36 +0000)] 
Merge branch 'maint-0.3.5' into maint-0.4.2

5 years agoResolve a compiler warning from a 32-bit signed/unsigned comparison
Nick Mathewson [Tue, 7 Jul 2020 18:58:49 +0000 (14:58 -0400)] 
Resolve a compiler warning from a 32-bit signed/unsigned comparison

This warning only affects platforms (like win32) with 32-bit time_t.

Fixes bug 40028; bugfix on 0.3.2.8-rc.

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.2
Alexander Færøy [Tue, 7 Jul 2020 14:48:35 +0000 (14:48 +0000)] 
Merge branch 'maint-0.3.5' into maint-0.4.2

5 years agoCI: Fix Appveyor printf format error
David Goulet [Tue, 7 Jul 2020 13:20:28 +0000 (09:20 -0400)] 
CI: Fix Appveyor printf format error

For some reasons, Appveyor started to use the stdio printf format for 64 bit
values (PRIu64, ...). Mingw doesn't like that so force it to use the Windows
specific macros by setting D__USE_MINGW_ANSI_STDIO=0.

Fixes #40026

5 years agoUse ((x + 7) >> 3) instead of (x >> 3) when converting from bits to bytes.
Alexander Færøy [Sat, 16 May 2020 19:18:56 +0000 (19:18 +0000)] 
Use ((x + 7) >> 3) instead of (x >> 3) when converting from bits to bytes.

This patch changes our bits-to-bytes conversion logic in the NSS
implementation of `tor_tls_cert_matches_key()` from using (x >> 3) to
((x + 7) >> 3) since DER bit-strings are allowed to contain a number of
bits that is not a multiple of 8.

Additionally, we add a comment on why we cannot use the
`DER_ConvertBitString()` macro from NSS, as we would potentially apply
the bits-to-bytes conversion logic twice, which would lead to an
insignificant amount of bytes being compared in
`SECITEM_ItemsAreEqual()` and thus turn the logic into being a
prefix match instead of a full match.

The `DER_ConvertBitString()` macro is defined in NSS as:

    /*
    ** Macro to convert der decoded bit string into a decoded octet
    ** string. All it needs to do is fiddle with the length code.
    */
    #define DER_ConvertBitString(item)            \
        {                                         \
            (item)->len = ((item)->len + 7) >> 3; \
        }

Thanks to Taylor Yu for spotting this problem.

This patch is part of the fix for TROVE-2020-001.

See: https://bugs.torproject.org/33119

5 years agoAdd constness to length variables in `tor_tls_cert_matches_key`.
Alexander Færøy [Sat, 16 May 2020 15:34:37 +0000 (15:34 +0000)] 
Add constness to length variables in `tor_tls_cert_matches_key`.

We add constness to `peer_info_orig_len` and `cert_info_orig_len` in
`tor_tls_cert_matches_key` to ensure that we don't accidentally alter
the variables.

This patch is part of the fix for TROVE-2020-001.

See: https://bugs.torproject.org/33119

5 years agoFix out-of-bound memory read in `tor_tls_cert_matches_key()` for NSS.
Alexander Færøy [Tue, 31 Mar 2020 02:33:54 +0000 (02:33 +0000)] 
Fix out-of-bound memory read in `tor_tls_cert_matches_key()` for NSS.

This patch fixes an out-of-bound memory read in
`tor_tls_cert_matches_key()` when Tor is compiled to use Mozilla's NSS
instead of OpenSSL.

The NSS library stores some length fields in bits instead of bytes, but
the comparison function found in `SECITEM_ItemsAreEqual()` needs the
length to be encoded in bytes. This means that for a 140-byte,
DER-encoded, SubjectPublicKeyInfo struct (with a 1024-bit RSA public key
in it), we would ask `SECITEM_ItemsAreEqual()` to compare the first 1120
bytes instead of 140 (140bytes * 8bits = 1120bits).

This patch fixes the issue by converting from bits to bytes before
calling `SECITEM_ItemsAreEqual()` and convert the `len`-fields back to
bits before we leave the function.

This patch is part of the fix for TROVE-2020-001.

See: https://bugs.torproject.org/33119

5 years agoRun `tor_tls_cert_matches_key()` Test Suite with both OpenSSL and NSS.
Alexander Færøy [Tue, 31 Mar 2020 02:28:12 +0000 (02:28 +0000)] 
Run `tor_tls_cert_matches_key()` Test Suite with both OpenSSL and NSS.

This patch lifts the `tor_tls_cert_matches_key()` tests out of the
OpenSSL specific TLS test suite and moves it into the generic TLS test
suite that is executed for both OpenSSL and NSS.

This patch is largely a code movement, but we had to rewrite parts of
the test to avoid using OpenSSL specific data-types (such as `X509 *`)
and replace it with the generic Tor abstraction type
(`tor_x509_cert_impl_t *`).

This patch is part of the fix for TROVE-2020-001.

See: https://bugs.torproject.org/33119

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.2
David Goulet [Thu, 2 Jul 2020 11:20:57 +0000 (07:20 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.2

5 years agoDowngrade "Bug: No entry found in extrainfo map" message.
Nick Mathewson [Tue, 30 Jun 2020 15:54:13 +0000 (11:54 -0400)] 
Downgrade "Bug: No entry found in extrainfo map" message.

This is not actually a bug!  It can happen for a bunch of reasons,
which all boil down to "trying to add an extrainfo for which we no
longer have the corresponding routerinfo".

Fixes #16016; bugfix on 0.2.6.3-alpha.

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.2
Alexander Færøy [Tue, 30 Jun 2020 14:23:41 +0000 (14:23 +0000)] 
Merge branch 'maint-0.3.5' into maint-0.4.2

5 years agoMerge branch 'tor-github/pr/1909' into maint-0.3.5
Alexander Færøy [Tue, 30 Jun 2020 14:23:17 +0000 (14:23 +0000)] 
Merge branch 'tor-github/pr/1909' into maint-0.3.5

5 years agoMerge branch 'tor-github/pr/1806' into maint-0.4.2
Alexander Færøy [Tue, 30 Jun 2020 14:15:57 +0000 (14:15 +0000)] 
Merge branch 'tor-github/pr/1806' into maint-0.4.2

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.2
Alexander Færøy [Tue, 30 Jun 2020 14:03:04 +0000 (14:03 +0000)] 
Merge branch 'maint-0.3.5' into maint-0.4.2

5 years agoMerge branch 'tor-github/pr/1793' into maint-0.3.5
Alexander Færøy [Tue, 30 Jun 2020 13:55:39 +0000 (13:55 +0000)] 
Merge branch 'tor-github/pr/1793' into maint-0.3.5

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.2
Alexander Færøy [Tue, 30 Jun 2020 13:48:49 +0000 (13:48 +0000)] 
Merge branch 'maint-0.3.5' into maint-0.4.2

5 years agoMerge branch 'tor-github/pr/1785' into maint-0.3.5
Alexander Færøy [Tue, 30 Jun 2020 13:47:55 +0000 (13:47 +0000)] 
Merge branch 'tor-github/pr/1785' into maint-0.3.5

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.2
Alexander Færøy [Tue, 30 Jun 2020 13:37:20 +0000 (13:37 +0000)] 
Merge branch 'maint-0.3.5' into maint-0.4.2

5 years agoMerge remote-tracking branch 'nickm-github/bug32884_035' into maint-0.3.5
Alexander Færøy [Tue, 30 Jun 2020 13:35:13 +0000 (13:35 +0000)] 
Merge remote-tracking branch 'nickm-github/bug32884_035' into maint-0.3.5

5 years agoMerge branch 'ticket33290_v2_042' into maint-0.4.2
Nick Mathewson [Mon, 29 Jun 2020 17:57:13 +0000 (13:57 -0400)] 
Merge branch 'ticket33290_v2_042' into maint-0.4.2

5 years agoMerge remote-tracking branch 'tor-github/pr/1696/head' into maint-0.4.2
Nick Mathewson [Mon, 29 Jun 2020 17:53:27 +0000 (13:53 -0400)] 
Merge remote-tracking branch 'tor-github/pr/1696/head' into maint-0.4.2

5 years agoMerge remote-tracking branch 'tor-github/pr/1697/head' into maint-0.4.2
Nick Mathewson [Mon, 29 Jun 2020 17:48:25 +0000 (13:48 -0400)] 
Merge remote-tracking branch 'tor-github/pr/1697/head' into maint-0.4.2

5 years agoMerge remote-tracking branch 'tor-github/pr/1722/head' into maint-0.4.2
Nick Mathewson [Mon, 29 Jun 2020 16:58:23 +0000 (12:58 -0400)] 
Merge remote-tracking branch 'tor-github/pr/1722/head' into maint-0.4.2

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.2
Nick Mathewson [Mon, 29 Jun 2020 16:55:35 +0000 (12:55 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.2

5 years agoMerge remote-tracking branch 'tor-github/pr/1725/head' into maint-0.3.5
Nick Mathewson [Mon, 29 Jun 2020 16:55:27 +0000 (12:55 -0400)] 
Merge remote-tracking branch 'tor-github/pr/1725/head' into maint-0.3.5

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.2
David Goulet [Fri, 12 Jun 2020 16:55:41 +0000 (12:55 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.2

5 years agoMerge branch 'tor-github/pr/1912' into maint-0.3.5
David Goulet [Fri, 12 Jun 2020 16:55:17 +0000 (12:55 -0400)] 
Merge branch 'tor-github/pr/1912' into maint-0.3.5

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.2
Nick Mathewson [Fri, 5 Jun 2020 16:37:29 +0000 (12:37 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.2

5 years agoUpdate and upgrade Pacman before installing dependencies in AppVeyor.
Alexander Færøy [Tue, 2 Jun 2020 13:07:54 +0000 (13:07 +0000)] 
Update and upgrade Pacman before installing dependencies in AppVeyor.

This patch makes sures that AppVeyor upgrades its Pacman (the package
manager) before installing the Tor dependencies.

See: https://bugs.torproject.org/34384

5 years agoRevert "Travis: temporarily fix stem version to d1174a83c2dcb7b8"
Nick Mathewson [Wed, 3 Jun 2020 18:48:05 +0000 (14:48 -0400)] 
Revert "Travis: temporarily fix stem version to d1174a83c2dcb7b8"

This reverts commit e63bfca5f2d98788d11b9a0a82bf67277a228c71, now
that Stem has been upgraded to fix the underlying issue.

5 years agoPreemptive circs should work with UseEntryGuards 0
Roger Dingledine [Sat, 30 May 2020 05:54:22 +0000 (01:54 -0400)] 
Preemptive circs should work with UseEntryGuards 0

Resume being willing to use preemptively-built circuits when
UseEntryGuards is set to 0. We accidentally disabled this feature with
that config setting (in our fix for #24469), leading to slower load times.

Fixes bug 34303; bugfix on 0.3.3.2-alpha.

5 years agoMerge branch 'maint-0.4.1' into maint-0.4.2
Nick Mathewson [Fri, 15 May 2020 14:25:27 +0000 (10:25 -0400)] 
Merge branch 'maint-0.4.1' into maint-0.4.2

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.1 maint-0.4.1
Nick Mathewson [Fri, 15 May 2020 14:25:27 +0000 (10:25 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.1

5 years agoFix use of non-portable == in configure.ac.
Nick Mathewson [Fri, 15 May 2020 13:58:49 +0000 (09:58 -0400)] 
Fix use of non-portable == in configure.ac.

Fixes bug 34233.

(This has bug has been backported to 0.3.5, but only released in
0.4.3, so it only needs a changes file there.)

5 years agoMerge branch 'maint-0.4.1' into maint-0.4.2
Nick Mathewson [Thu, 14 May 2020 14:20:08 +0000 (10:20 -0400)] 
Merge branch 'maint-0.4.1' into maint-0.4.2

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.1
Nick Mathewson [Thu, 14 May 2020 14:20:08 +0000 (10:20 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.1

5 years agoTravis: temporarily fix stem version to d1174a83c2dcb7b8
Nick Mathewson [Wed, 13 May 2020 12:53:02 +0000 (08:53 -0400)] 
Travis: temporarily fix stem version to d1174a83c2dcb7b8

This is a workaround for https://github.com/torproject/stem/issues/63

5 years agoMerge branch 'maint-0.4.1' into maint-0.4.2
Nick Mathewson [Wed, 6 May 2020 21:07:27 +0000 (17:07 -0400)] 
Merge branch 'maint-0.4.1' into maint-0.4.2

5 years agobtrack_orconn_cevent.c: Add a missing "break;"
Nick Mathewson [Wed, 6 May 2020 21:07:12 +0000 (17:07 -0400)] 
btrack_orconn_cevent.c: Add a missing "break;"

5 years agoMerge branch 'maint-0.4.1' into maint-0.4.2
Nick Mathewson [Wed, 6 May 2020 20:58:12 +0000 (16:58 -0400)] 
Merge branch 'maint-0.4.1' into maint-0.4.2

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.1
Nick Mathewson [Wed, 6 May 2020 20:58:12 +0000 (16:58 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.1

5 years agochanges file for bug 34078.
Nick Mathewson [Wed, 6 May 2020 20:58:06 +0000 (16:58 -0400)] 
changes file for bug 34078.

5 years agoUse __attribute__((fallthrough)) rather than magic GCC comments.
Nick Mathewson [Wed, 6 May 2020 14:45:48 +0000 (10:45 -0400)] 
Use __attribute__((fallthrough)) rather than magic GCC comments.

GCC added an implicit-fallthrough warning a while back, where it
would complain if you had a nontrivial "case:" block that didn't end
with break, return, or something like that.  Clang recently added
the same thing.

GCC, however, would let you annotate a fall-through as intended by
any of various magic "/* fall through */" comments.  Clang, however,
only seems to like "__attribute__((fallthrough))".  Fortunately, GCC
accepts that too.

A previous commit in this branch defined a FALLTHROUGH macro to do
the right thing if GNUC is defined; here we replace all of our "fall
through" comments with uses of that macro.

This is an automated commit, made with the following perl one-liner:

  #!/usr/bin/perl -i -p
  s#/\* *falls? ?thr.*?\*/#FALLTHROUGH;#i;

(In order to avoid conflicts, I'm applying this script separately to
each maint branch. This is the 0.4.2 version.)

5 years agoMerge branch 'maint-0.4.1' into maint-0.4.2
Nick Mathewson [Wed, 6 May 2020 20:53:06 +0000 (16:53 -0400)] 
Merge branch 'maint-0.4.1' into maint-0.4.2

This is an "ours" merge to avoid taking the 0.4.1 version of the 34078 fix.

5 years agoUse __attribute__((fallthrough)) rather than magic GCC comments.
Nick Mathewson [Wed, 6 May 2020 14:45:48 +0000 (10:45 -0400)] 
Use __attribute__((fallthrough)) rather than magic GCC comments.

GCC added an implicit-fallthrough warning a while back, where it
would complain if you had a nontrivial "case:" block that didn't end
with break, return, or something like that.  Clang recently added
the same thing.

GCC, however, would let you annotate a fall-through as intended by
any of various magic "/* fall through */" comments.  Clang, however,
only seems to like "__attribute__((fallthrough))".  Fortunately, GCC
accepts that too.

A previous commit in this branch defined a FALLTHROUGH macro to do
the right thing if GNUC is defined; here we replace all of our "fall
through" comments with uses of that macro.

This is an automated commit, made with the following perl one-liner:

  #!/usr/bin/perl -i -p
  s#/\* *falls? ?thr.*?\*/#FALLTHROUGH;#i;

(In order to avoid conflicts, I'm applying this script separately to
each maint branch. This is the 0.4.1 version.)

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.1
Nick Mathewson [Wed, 6 May 2020 20:51:33 +0000 (16:51 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.1

This is an "ours" merge to avoid taking the 0.3.5 fix for 34078.

5 years agoUse __attribute__((fallthrough)) rather than magic GCC comments.
Nick Mathewson [Wed, 6 May 2020 14:45:48 +0000 (10:45 -0400)] 
Use __attribute__((fallthrough)) rather than magic GCC comments.

GCC added an implicit-fallthrough warning a while back, where it
would complain if you had a nontrivial "case:" block that didn't end
with break, return, or something like that.  Clang recently added
the same thing.

GCC, however, would let you annotate a fall-through as intended by
any of various magic "/* fall through */" comments.  Clang, however,
only seems to like "__attribute__((fallthrough))".  Fortunately, GCC
accepts that too.

A previous commit in this branch defined a FALLTHROUGH macro to do
the right thing if GNUC is defined; here we replace all of our "fall
through" comments with uses of that macro.

This is an automated commit, made with the following perl one-liner:

  #!/usr/bin/perl -i -p
  s#/\* *falls? ?thr.*?\*/#FALLTHROUGH;#i;

5 years agoMerge branch 'maint-0.4.1' into maint-0.4.2
Nick Mathewson [Wed, 6 May 2020 20:47:03 +0000 (16:47 -0400)] 
Merge branch 'maint-0.4.1' into maint-0.4.2

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.1
Nick Mathewson [Wed, 6 May 2020 20:47:03 +0000 (16:47 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.1

5 years agoMerge branch 'bug34078_prelim_041' into maint-0.4.1
Nick Mathewson [Wed, 6 May 2020 20:46:52 +0000 (16:46 -0400)] 
Merge branch 'bug34078_prelim_041' into maint-0.4.1

5 years agoMerge branch 'bug34078_prelim_035' into maint-0.3.5
Nick Mathewson [Wed, 6 May 2020 20:46:31 +0000 (16:46 -0400)] 
Merge branch 'bug34078_prelim_035' into maint-0.3.5

5 years agoMerge branch 'bug34078_prelim_035' into bug34078_prelim_041
Nick Mathewson [Wed, 6 May 2020 19:18:36 +0000 (15:18 -0400)] 
Merge branch 'bug34078_prelim_035' into bug34078_prelim_041

5 years agoRemove an incorrect "Fall through" comment.
Nick Mathewson [Wed, 6 May 2020 18:47:38 +0000 (14:47 -0400)] 
Remove an incorrect "Fall through" comment.

5 years agoaddress.c: add a single (harmless) missing break;
Nick Mathewson [Wed, 6 May 2020 14:42:17 +0000 (10:42 -0400)] 
address.c: add a single (harmless) missing break;

5 years agoinclude compat_compiler for ed25519_donna
Nick Mathewson [Wed, 6 May 2020 14:38:59 +0000 (10:38 -0400)] 
include compat_compiler for ed25519_donna

5 years agoReplace some "fall through" comments not at the end of a case.
Nick Mathewson [Wed, 6 May 2020 14:35:36 +0000 (10:35 -0400)] 
Replace some "fall through" comments not at the end of a case.

5 years agoReplace a "fall through" comment that was outside a switch.
Nick Mathewson [Wed, 6 May 2020 14:32:35 +0000 (10:32 -0400)] 
Replace a "fall through" comment that was outside a switch.

5 years agoAdd a fallthrough macro.
Nick Mathewson [Wed, 6 May 2020 14:24:21 +0000 (10:24 -0400)] 
Add a fallthrough macro.

This macro defers to __attribute__((fallthrough)) on GCC (and
clang).  Previously we had been using GCC's magic /* fallthrough */
comments, but clang very sensibly doesn't accept those.

Since not all compiler recognize it, we only define it when our
configure script detects that it works.

Part of a fix for 34078.

5 years agoMerge branch 'maint-0.4.1' into maint-0.4.2
Nick Mathewson [Mon, 4 May 2020 14:25:52 +0000 (10:25 -0400)] 
Merge branch 'maint-0.4.1' into maint-0.4.2

5 years agoMerge branch 'bug34077_041' into maint-0.4.1
Nick Mathewson [Mon, 4 May 2020 14:14:38 +0000 (10:14 -0400)] 
Merge branch 'bug34077_041' into maint-0.4.1

5 years agoFix a GCC 10.0.1 compilation warning.
Nick Mathewson [Fri, 1 May 2020 02:56:31 +0000 (22:56 -0400)] 
Fix a GCC 10.0.1 compilation warning.

Fixes 34077 for 0.4.1; bugfix on 0.4.0.3-alpha. (Specifically, GCC
first gives this warning for 9eeff921ae7b786d960ea4286d5bba56)

5 years agoremove practracker from check-local (0.4.2 and 0.4.3 only)
Nick Mathewson [Wed, 19 Jun 2019 18:29:08 +0000 (14:29 -0400)] 
remove practracker from check-local (0.4.2 and 0.4.3 only)

practracker shouldn't be running in release or maint branches.

5 years agoMerge branch 'maint-0.4.1' into maint-0.4.2
teor [Thu, 9 Apr 2020 01:03:27 +0000 (11:03 +1000)] 
Merge branch 'maint-0.4.1' into maint-0.4.2

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.1
teor [Thu, 9 Apr 2020 01:03:20 +0000 (11:03 +1000)] 
Merge branch 'maint-0.3.5' into maint-0.4.1

5 years agoMerge remote-tracking branch 'tor-github/pr/1784' into maint-0.3.5
teor [Thu, 9 Apr 2020 01:02:49 +0000 (11:02 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1784' into maint-0.3.5

5 years agoMerge branch 'maint-0.4.1' into maint-0.4.2
Nick Mathewson [Wed, 25 Mar 2020 14:56:27 +0000 (10:56 -0400)] 
Merge branch 'maint-0.4.1' into maint-0.4.2

5 years agoMerge branch 'bug33673_035' into bug33673_041
teor [Fri, 20 Mar 2020 04:49:11 +0000 (14:49 +1000)] 
Merge branch 'bug33673_035' into bug33673_041

Merge duplicate DLL copies from maint-0.4.1 with bug33673_035.

5 years agoAppveyor: Copy required DLLs to test and app
teor [Thu, 19 Mar 2020 07:35:49 +0000 (17:35 +1000)] 
Appveyor: Copy required DLLs to test and app

Copy required DLLs to test and app, before running tor's tests.

This ensures that tor.exe and test*.exe use the correct version of each
DLL. This fix is not required, but we hope it will avoid DLL search
issues in future.

Closes bug 33673; bugfix on 0.3.4.2-alpha.

5 years agoMerge branch 'maint-0.4.1' into maint-0.4.2
teor [Fri, 20 Mar 2020 01:24:51 +0000 (11:24 +1000)] 
Merge branch 'maint-0.4.1' into maint-0.4.2

5 years agoMerge branch 'ticket33643_skip_035' into ticket33643_skip_041
Nick Mathewson [Thu, 19 Mar 2020 22:38:18 +0000 (18:38 -0400)] 
Merge branch 'ticket33643_skip_035' into ticket33643_skip_041

5 years agoAppveyor: disable crypto/openssl_version
Nick Mathewson [Thu, 19 Mar 2020 19:28:55 +0000 (15:28 -0400)] 
Appveyor: disable crypto/openssl_version

5 years agoAdd a TOR_SKIP_TESTCASES environment variable for suppressing tests.
Nick Mathewson [Thu, 19 Mar 2020 19:25:11 +0000 (15:25 -0400)] 
Add a TOR_SKIP_TESTCASES environment variable for suppressing tests.

For example, "TOR_SKIP_TESTCASES=crypto/.. ./src/test/test" will run
the tests and suppress all the "crypto/" tests.  You could get the
same effect by running "./src/test/test :crypto/..", but that can be
harder to arrange from CI.

Part of a fix/workaround for 33643.

5 years agoMerge branch 'maint-0.4.1' into maint-0.4.2
Nick Mathewson [Wed, 18 Mar 2020 16:17:11 +0000 (12:17 -0400)] 
Merge branch 'maint-0.4.1' into maint-0.4.2

"ours" to avoid version bump.

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.1
Nick Mathewson [Wed, 18 Mar 2020 16:16:59 +0000 (12:16 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.1

"ours" to avoid version bump.

5 years agoBump version to 0.4.2.7-dev
Nick Mathewson [Wed, 18 Mar 2020 16:16:11 +0000 (12:16 -0400)] 
Bump version to 0.4.2.7-dev

5 years agoBump version to 0.4.1.9-dev
Nick Mathewson [Wed, 18 Mar 2020 16:15:53 +0000 (12:15 -0400)] 
Bump version to 0.4.1.9-dev

5 years agoBump version to 0.3.5.10-dev
Nick Mathewson [Wed, 18 Mar 2020 16:15:32 +0000 (12:15 -0400)] 
Bump version to 0.3.5.10-dev

5 years agoMerge branch 'maint-0.4.1' into maint-0.4.2
Nick Mathewson [Wed, 18 Mar 2020 12:20:16 +0000 (08:20 -0400)] 
Merge branch 'maint-0.4.1' into maint-0.4.2

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.1
Nick Mathewson [Wed, 18 Mar 2020 12:20:16 +0000 (08:20 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.1

5 years agoPort rsa_private_key_too_long() to work on OpenSSL 1.1.0.
Nick Mathewson [Wed, 18 Mar 2020 12:19:48 +0000 (08:19 -0400)] 
Port rsa_private_key_too_long() to work on OpenSSL 1.1.0.

5 years agoMerge branch 'maint-0.4.1' into maint-0.4.2
Nick Mathewson [Tue, 17 Mar 2020 19:22:36 +0000 (15:22 -0400)] 
Merge branch 'maint-0.4.1' into maint-0.4.2

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.1
Nick Mathewson [Tue, 17 Mar 2020 19:22:36 +0000 (15:22 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.1

5 years agoMerge branch 'trove_2020_002_041' into maint-0.4.1
Nick Mathewson [Tue, 17 Mar 2020 19:22:02 +0000 (15:22 -0400)] 
Merge branch 'trove_2020_002_041' into maint-0.4.1

5 years agoMerge branch 'trove_2020_002_035' into maint-0.3.5
Nick Mathewson [Tue, 17 Mar 2020 19:21:48 +0000 (15:21 -0400)] 
Merge branch 'trove_2020_002_035' into maint-0.3.5

5 years agoMerge branch 'maint-0.4.1' into maint-0.4.2
Nick Mathewson [Tue, 17 Mar 2020 17:56:10 +0000 (13:56 -0400)] 
Merge branch 'maint-0.4.1' into maint-0.4.2

5 years agoMerge branch 'trove_2020_004_041_v2' into maint-0.4.1
Nick Mathewson [Tue, 17 Mar 2020 17:56:03 +0000 (13:56 -0400)] 
Merge branch 'trove_2020_004_041_v2' into maint-0.4.1

5 years agoMerge branch 'maint-0.4.1' into maint-0.4.2
Nick Mathewson [Tue, 17 Mar 2020 15:45:16 +0000 (11:45 -0400)] 
Merge branch 'maint-0.4.1' into maint-0.4.2

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.1
Nick Mathewson [Tue, 17 Mar 2020 15:45:16 +0000 (11:45 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.1

5 years agoFix TROVE-2020-003.
George Kadianakis [Tue, 11 Feb 2020 16:37:55 +0000 (18:37 +0200)] 
Fix TROVE-2020-003.

Given that ed25519 public key validity checks are usually not needed
and (so far) they are only necessary for onion addesses in the Tor
protocol, we decided to fix this specific bug instance without
modifying the rest of the codebase (see below for other fix
approaches).

In our minimal fix we check that the pubkey in
hs_service_add_ephemeral() is valid and error out otherwise.

5 years agoTrivial bugfixes found during TROVE investigation.
George Kadianakis [Mon, 10 Feb 2020 14:35:40 +0000 (16:35 +0200)] 
Trivial bugfixes found during TROVE investigation.

5 years agoMerge branch 'trove_2020_002_035' into trove_2020_002_041
Nick Mathewson [Tue, 17 Mar 2020 14:45:03 +0000 (10:45 -0400)] 
Merge branch 'trove_2020_002_035' into trove_2020_002_041

5 years agoUse >= consistently with max_bits.
Nick Mathewson [Tue, 17 Mar 2020 14:09:58 +0000 (10:09 -0400)] 
Use >= consistently with max_bits.

5 years agoAdd off-by-one checks for key length.
Nick Mathewson [Tue, 17 Mar 2020 14:07:54 +0000 (10:07 -0400)] 
Add off-by-one checks for key length.

5 years agoExtract key length check into a new function, and check more fields.
Nick Mathewson [Tue, 17 Mar 2020 14:04:38 +0000 (10:04 -0400)] 
Extract key length check into a new function, and check more fields.

In the openssl that I have, it should be safe to only check the size
of n.  But if I'm wrong, or if other openssls work differently, we
should check whether any of the fields are too large.

Issue spotted by Teor.

5 years agosendme: Emit version 1 by default
David Goulet [Tue, 17 Mar 2020 14:14:57 +0000 (10:14 -0400)] 
sendme: Emit version 1 by default

Closes #33623

Signed-off-by: David Goulet <dgoulet@torproject.org>