]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
7 years agowe've never been good at using "directory" well as a noun
Roger Dingledine [Sun, 24 Jun 2018 22:08:24 +0000 (18:08 -0400)] 
we've never been good at using "directory" well as a noun

7 years agoadd license statement to checkincludes, and have it return an error code
Nick Mathewson [Thu, 21 Jun 2018 18:29:00 +0000 (14:29 -0400)] 
add license statement to checkincludes, and have it return an error code

7 years agoFix wide lines in dirauth/dirvote.*
Nick Mathewson [Thu, 21 Jun 2018 18:23:32 +0000 (14:23 -0400)] 
Fix wide lines in dirauth/dirvote.*

7 years agoMake sure check-spaces applies in lib and dirauth.
Nick Mathewson [Thu, 21 Jun 2018 18:22:15 +0000 (14:22 -0400)] 
Make sure check-spaces applies in lib and dirauth.

7 years agoRun checkIncludes.py from "make check-includes"
Nick Mathewson [Thu, 21 Jun 2018 18:20:43 +0000 (14:20 -0400)] 
Run checkIncludes.py from "make check-includes"

7 years agoNew script to check includes for modularity violations
Nick Mathewson [Thu, 21 Jun 2018 18:02:11 +0000 (14:02 -0400)] 
New script to check includes for modularity violations

Includes configuration files to enforce these rules on lib and
common.  Of course, "common" *is* a modularity violation right now,
so these rules aren't as strict as I would like them to be.

7 years agoMerge branch 'extract_easy_common_libs'
Nick Mathewson [Thu, 21 Jun 2018 17:57:13 +0000 (13:57 -0400)] 
Merge branch 'extract_easy_common_libs'

7 years agoRectify include paths (automated).
Nick Mathewson [Thu, 21 Jun 2018 17:12:23 +0000 (13:12 -0400)] 
Rectify include paths (automated).

You have no idea how glad I am that this is automated.

7 years agoMove testsupport.h to its own directory
Nick Mathewson [Thu, 21 Jun 2018 17:12:06 +0000 (13:12 -0400)] 
Move testsupport.h to its own directory

7 years agoMove responsibility for libdonna out of src/common
Nick Mathewson [Thu, 21 Jun 2018 17:04:09 +0000 (13:04 -0400)] 
Move responsibility for libdonna out of src/common

7 years agoAdditional non-automated change to trunnel-local.h
Nick Mathewson [Thu, 21 Jun 2018 16:47:48 +0000 (12:47 -0400)] 
Additional non-automated change to trunnel-local.h

7 years agoRectify include paths (automated)
Nick Mathewson [Thu, 21 Jun 2018 16:47:11 +0000 (12:47 -0400)] 
Rectify include paths (automated)

7 years agoSplit crypto and tls libraries into directories
Nick Mathewson [Thu, 21 Jun 2018 16:46:11 +0000 (12:46 -0400)] 
Split crypto and tls libraries into directories

I am calling the crypto library "crypt_ops", since I want
higher-level crypto things to be separated from lower-level ones.
This library will hold only the low-level ones, once we have it
refactored.

7 years agoMove more compiler-compatibility stuff into compat_compiler.h
Nick Mathewson [Thu, 21 Jun 2018 16:29:34 +0000 (12:29 -0400)] 
Move more compiler-compatibility stuff into compat_compiler.h

7 years agodi_ops.c does not actually log anything.
Nick Mathewson [Thu, 21 Jun 2018 16:28:33 +0000 (12:28 -0400)] 
di_ops.c does not actually log anything.

7 years agoRectify include paths (automated)
Nick Mathewson [Thu, 21 Jun 2018 16:20:52 +0000 (12:20 -0400)] 
Rectify include paths (automated)

7 years agoMove compiler-compatibility headers into their own module
Nick Mathewson [Thu, 21 Jun 2018 16:20:26 +0000 (12:20 -0400)] 
Move compiler-compatibility headers into their own module

This one has no generated code.

7 years agoRemove unused pubsub module.
Nick Mathewson [Thu, 21 Jun 2018 16:12:56 +0000 (12:12 -0400)] 
Remove unused pubsub module.

7 years agoRectify include paths (automated)
Nick Mathewson [Thu, 21 Jun 2018 16:03:34 +0000 (12:03 -0400)] 
Rectify include paths (automated)

7 years agoMove trace into its own library in libs.
Nick Mathewson [Thu, 21 Jun 2018 16:02:14 +0000 (12:02 -0400)] 
Move trace into its own library in libs.

Apparently it has no testing variant.

7 years agoMake sure liberr-testing is build with testing flags.
Nick Mathewson [Thu, 21 Jun 2018 15:56:32 +0000 (11:56 -0400)] 
Make sure liberr-testing is build with testing flags.

7 years agoRectify include paths (automated)
Nick Mathewson [Thu, 21 Jun 2018 15:52:01 +0000 (11:52 -0400)] 
Rectify include paths (automated)

7 years agoExtract compression functions into a new library.
Nick Mathewson [Thu, 21 Jun 2018 15:51:49 +0000 (11:51 -0400)] 
Extract compression functions into a new library.

7 years agotiny comment and whitespace fixes
Roger Dingledine [Thu, 21 Jun 2018 17:07:51 +0000 (13:07 -0400)] 
tiny comment and whitespace fixes

7 years agoRename libtor.a to libtor-app.a
Nick Mathewson [Thu, 21 Jun 2018 15:01:10 +0000 (11:01 -0400)] 
Rename libtor.a to libtor-app.a

7 years agoRectify include paths (automated)
Nick Mathewson [Thu, 21 Jun 2018 14:53:36 +0000 (10:53 -0400)] 
Rectify include paths (automated)

7 years agoMove consttime library code into its own directory.
Nick Mathewson [Thu, 21 Jun 2018 14:53:29 +0000 (10:53 -0400)] 
Move consttime library code into its own directory.

7 years agoRectify include paths (automated)
Nick Mathewson [Thu, 21 Jun 2018 13:54:04 +0000 (09:54 -0400)] 
Rectify include paths (automated)

7 years agoExtract error functionality into a new lowest-level library.
Nick Mathewson [Thu, 21 Jun 2018 13:53:08 +0000 (09:53 -0400)] 
Extract error functionality into a new lowest-level library.

7 years agoRefactor makefiles to keep list of internal libraries in one place.
Nick Mathewson [Thu, 21 Jun 2018 14:34:29 +0000 (10:34 -0400)] 
Refactor makefiles to keep list of internal libraries in one place.

This change makes it possible for us to change the list of libraries
more easily, without changing every single linker line.

7 years agoRectify include paths (automated)
Nick Mathewson [Thu, 21 Jun 2018 13:55:16 +0000 (09:55 -0400)] 
Rectify include paths (automated)

7 years agoFix distcheck by naming header properly.
Nick Mathewson [Thu, 21 Jun 2018 13:37:32 +0000 (09:37 -0400)] 
Fix distcheck by naming header properly.

7 years agoMerge branch 'mikeperry_bug26214-rebased_squashed'
Nick Mathewson [Thu, 21 Jun 2018 13:20:03 +0000 (09:20 -0400)] 
Merge branch 'mikeperry_bug26214-rebased_squashed'

7 years agoBug 26214: Test updates.
Mike Perry [Tue, 19 Jun 2018 19:53:58 +0000 (19:53 +0000)] 
Bug 26214: Test updates.

7 years agoBug 26214: Changes file.
Mike Perry [Sun, 27 May 2018 01:43:19 +0000 (01:43 +0000)] 
Bug 26214: Changes file.

7 years agoBug 26214: Check stream SENDME against max.
Mike Perry [Sun, 27 May 2018 01:42:35 +0000 (01:42 +0000)] 
Bug 26214: Check stream SENDME against max.

7 years agoMerge branch 'maint-0.3.4'
Nick Mathewson [Thu, 21 Jun 2018 13:01:06 +0000 (09:01 -0400)] 
Merge branch 'maint-0.3.4'

"Ours" merge to avoid version bump.

7 years agoHang on; this branch is supposed to be 0.3.4.2-alpha-dev.
Nick Mathewson [Thu, 21 Jun 2018 13:01:00 +0000 (09:01 -0400)] 
Hang on; this branch is supposed to be 0.3.4.2-alpha-dev.

7 years agoMerge branch 'maint-0.3.4'
Nick Mathewson [Thu, 21 Jun 2018 12:59:58 +0000 (08:59 -0400)] 
Merge branch 'maint-0.3.4'

7 years agoMerge branch 'bug25787_squashed' into maint-0.3.4
Nick Mathewson [Thu, 21 Jun 2018 12:56:27 +0000 (08:56 -0400)] 
Merge branch 'bug25787_squashed' into maint-0.3.4

7 years agoRevise geoip tests to not require paths of actual geoip config
Nick Mathewson [Mon, 11 Jun 2018 21:49:38 +0000 (17:49 -0400)] 
Revise geoip tests to not require paths of actual geoip config

When I wrote the first one of these, it needed the path of the geoip
file.  But that doesn't translate well in at least two cases:

   - Mingw, where the compile-time path is /c/foo/bar and the
     run-time path is c:\foo\bar.

   - Various CI weirdnesses, where we cross-compile a test binary,
     then copy it into limbo and expect it to work.

Together, these problems precluded these tests running on windows.

So, instead let's just generate some minimal files ourselves, and
test against them.

Fixes bug 25787

7 years agoMerge branch 'maint-0.3.4'
Nick Mathewson [Thu, 21 Jun 2018 12:54:02 +0000 (08:54 -0400)] 
Merge branch 'maint-0.3.4'

7 years agoMerge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Thu, 21 Jun 2018 12:54:02 +0000 (08:54 -0400)] 
Merge branch 'maint-0.3.3' into maint-0.3.4

7 years agoMerge remote-tracking branch 'rl1987/ticket19979_2'
Nick Mathewson [Thu, 21 Jun 2018 12:53:48 +0000 (08:53 -0400)] 
Merge remote-tracking branch 'rl1987/ticket19979_2'

7 years agoFix changes file for memory leak.
Nick Mathewson [Thu, 21 Jun 2018 12:53:37 +0000 (08:53 -0400)] 
Fix changes file for memory leak.

7 years agoMerge branch 'maint-0.3.4'
Nick Mathewson [Thu, 21 Jun 2018 12:38:21 +0000 (08:38 -0400)] 
Merge branch 'maint-0.3.4'

7 years agoMerge branch 'additional_rust_test_fixes' into maint-0.3.4
Nick Mathewson [Thu, 21 Jun 2018 12:38:17 +0000 (08:38 -0400)] 
Merge branch 'additional_rust_test_fixes' into maint-0.3.4

7 years agoMerge branch 'maint-0.3.4'
Nick Mathewson [Thu, 21 Jun 2018 12:36:48 +0000 (08:36 -0400)] 
Merge branch 'maint-0.3.4'

7 years agoMerge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Thu, 21 Jun 2018 12:36:48 +0000 (08:36 -0400)] 
Merge branch 'maint-0.3.3' into maint-0.3.4

7 years agoadd a bn.h include to crypto_dh.c
Nick Mathewson [Thu, 21 Jun 2018 12:34:27 +0000 (08:34 -0400)] 
add a bn.h include to crypto_dh.c

7 years agoMerge branch 'maint-0.3.4'
Nick Mathewson [Thu, 21 Jun 2018 00:01:08 +0000 (20:01 -0400)] 
Merge branch 'maint-0.3.4'

7 years agoMerge remote-tracking branch 'catalyst-github/allow_fail_rust' into maint-0.3.4
Nick Mathewson [Thu, 21 Jun 2018 00:00:56 +0000 (20:00 -0400)] 
Merge remote-tracking branch 'catalyst-github/allow_fail_rust' into maint-0.3.4

7 years agofix memory leak in protover.c
Roger Dingledine [Wed, 20 Jun 2018 23:43:58 +0000 (19:43 -0400)] 
fix memory leak in protover.c

Fix a memory leak where directory authorities would leak a chunk of
memory for every router descriptor every time they considered voting.

This bug was taking down directory authorities in the live network due
to out-of-memory issues.

Fixes bug 26435; bugfix on 0.3.3.6.

7 years agoadd build.rs to EXTRA_DIST
Nick Mathewson [Wed, 20 Jun 2018 23:32:01 +0000 (19:32 -0400)] 
add build.rs to EXTRA_DIST

7 years agoAllow spaces in CCLD in linker.sh
Nick Mathewson [Wed, 20 Jun 2018 23:16:25 +0000 (19:16 -0400)] 
Allow spaces in CCLD in linker.sh

Hello71 spotted this first.

7 years agoeol@eof is still the law in 0.3.4 :(
Nick Mathewson [Wed, 20 Jun 2018 23:05:11 +0000 (19:05 -0400)] 
eol@eof is still the law in 0.3.4 :(

7 years agoAdd a leak suppression for backtrace_alloc
Nick Mathewson [Wed, 20 Jun 2018 22:02:49 +0000 (18:02 -0400)] 
Add a leak suppression for backtrace_alloc

This appears to be an internal rust thing: I don't know why it's
leaking.  We should investigate further.

7 years agoMerge branch 'maint-0.3.4' into additional_rust_test_fixes
Nick Mathewson [Wed, 20 Jun 2018 21:53:51 +0000 (17:53 -0400)] 
Merge branch 'maint-0.3.4' into additional_rust_test_fixes

7 years agoUse different RUST_LINKER_OPTIONS for sanitizers
Nick Mathewson [Wed, 20 Jun 2018 21:53:09 +0000 (17:53 -0400)] 
Use different RUST_LINKER_OPTIONS for sanitizers

These appear to work for me.

7 years agoMerge branch 'maint-0.3.4'
Nick Mathewson [Wed, 20 Jun 2018 21:49:56 +0000 (17:49 -0400)] 
Merge branch 'maint-0.3.4'

7 years agoFix clang warnings introduced by 9f2b887c5d251b93ee9def708
Nick Mathewson [Wed, 20 Jun 2018 21:49:06 +0000 (17:49 -0400)] 
Fix clang warnings introduced by 9f2b887c5d251b93ee9def708

7 years agoFix memory leak in CryptoDigest type
Nick Mathewson [Wed, 20 Jun 2018 21:28:28 +0000 (17:28 -0400)] 
Fix memory leak in CryptoDigest type

If you're owning a C pointer, you need to implement Drop.

7 years agoDisable doctests in src/rust/crypto module.
Nick Mathewson [Wed, 20 Jun 2018 21:16:44 +0000 (17:16 -0400)] 
Disable doctests in src/rust/crypto module.

These all need C linking to work, and so far, rustdoc does not seem
to respect cargo setting about build scripts or RUSTOPTIONS.

7 years agoFix bugs in rust digest tests
Nick Mathewson [Wed, 20 Jun 2018 21:08:00 +0000 (17:08 -0400)] 
Fix bugs in rust digest tests

7 years agoMerge branch 'rust_build_script_v3' into additional_rust_test_fixes
Nick Mathewson [Wed, 20 Jun 2018 21:07:47 +0000 (17:07 -0400)] 
Merge branch 'rust_build_script_v3' into additional_rust_test_fixes

7 years agoMerge branch 'maint-0.3.4'
Nick Mathewson [Wed, 20 Jun 2018 20:37:39 +0000 (16:37 -0400)] 
Merge branch 'maint-0.3.4'

7 years agorust: Remove --all-features flag from `cargo test` call in test_rust.sh.
Isis Lovecruft [Mon, 18 Jun 2018 18:37:07 +0000 (18:37 +0000)] 
rust: Remove --all-features flag from `cargo test` call in test_rust.sh.

We'd like to feature gate code that calls C from Rust, as a workaround
to several linker issues when running `cargo test` (#25386), and we
can't feature gate anything out of test code if `cargo test` is called
with `--all-features`.

 * FIXES #26400: https://bugs.torproject.org/26400

7 years agoAllow Rust to fail for now
Taylor Yu [Wed, 20 Jun 2018 20:10:18 +0000 (15:10 -0500)] 
Allow Rust to fail for now

Multiple issues are preventing Travis CI from passing with Rust right
now.

7 years agoDon't use any asserts(), even raw, in format_number_sigsafe().
Nick Mathewson [Wed, 20 Jun 2018 20:11:09 +0000 (16:11 -0400)] 
Don't use any asserts(), even raw, in format_number_sigsafe().

Also explain why.

7 years agoChanges file for logging circularity fixes.
Nick Mathewson [Wed, 20 Jun 2018 19:11:57 +0000 (15:11 -0400)] 
Changes file for logging circularity fixes.

7 years agoUse raw_assert() in write_all().
Nick Mathewson [Wed, 20 Jun 2018 19:09:42 +0000 (15:09 -0400)] 
Use raw_assert() in write_all().

This makes tor_log() finally non-circular.

7 years agoUse raw_assert() in central allocation functions.
Nick Mathewson [Wed, 20 Jun 2018 18:19:00 +0000 (14:19 -0400)] 
Use raw_assert() in central allocation functions.

This is, again, to avoid circularity in the log code.

7 years agoUse raw_assert in mutex functions to avoid circularity in logs.
Nick Mathewson [Wed, 20 Jun 2018 18:15:00 +0000 (14:15 -0400)] 
Use raw_assert in mutex functions to avoid circularity in logs.

7 years agoAllow raw_assert() to dump stack traces.
Nick Mathewson [Wed, 20 Jun 2018 18:04:03 +0000 (14:04 -0400)] 
Allow raw_assert() to dump stack traces.

It doesn't do this as beautifully as tor_assert(), but it doesn't
depend on any higher-level code.

7 years agoRemove log dependency from backtrace.[ch]
Nick Mathewson [Wed, 20 Jun 2018 17:51:49 +0000 (13:51 -0400)] 
Remove log dependency from backtrace.[ch]

7 years agoUse compat_compiler to restore macros in torerr.h
Nick Mathewson [Wed, 20 Jun 2018 17:51:21 +0000 (13:51 -0400)] 
Use compat_compiler to restore macros in torerr.h

7 years agoSplit compiler-compatibility parts of compat.h
Nick Mathewson [Wed, 20 Jun 2018 17:49:03 +0000 (13:49 -0400)] 
Split compiler-compatibility parts of compat.h

7 years agoMove horrible-emergency handling into torerr.[ch]
Nick Mathewson [Wed, 20 Jun 2018 17:02:05 +0000 (13:02 -0400)] 
Move horrible-emergency handling into torerr.[ch]

Previously we had code like this for bad things happening from
signal handlers, but it makes sense to use the same logic to handle
cases when something is happening at a level too low for log.c to be
involved.

My raw_assert*() stuff now uses this code.

7 years agoUse raw_assert in tor_gettimeofday
Nick Mathewson [Wed, 20 Jun 2018 14:42:06 +0000 (10:42 -0400)] 
Use raw_assert in tor_gettimeofday

We don't want to actually be calling logs when gettimeofday() fails,
since we need gettimeofday() to log.

7 years agoRemove all use of the assert.h header
Nick Mathewson [Wed, 20 Jun 2018 14:39:07 +0000 (10:39 -0400)] 
Remove all use of the assert.h header

Nothing in Tor has actually called assert() for some while.

7 years agoAdd raw_assert() variants for cases where we cannot log.
Nick Mathewson [Wed, 20 Jun 2018 14:35:40 +0000 (10:35 -0400)] 
Add raw_assert() variants for cases where we cannot log.

Remove a different raw_assert() macro declared in log.c

7 years agoRemove dmalloc support; closes #26426
Nick Mathewson [Wed, 20 Jun 2018 14:19:56 +0000 (10:19 -0400)] 
Remove dmalloc support; closes #26426

Dmalloc hasn't seen a release in over a decade, and there are much
better tools to use these days.

7 years agofix a changes file warning
Nick Mathewson [Wed, 20 Jun 2018 14:20:44 +0000 (10:20 -0400)] 
fix a changes file warning

7 years agoChanges file for full_include_paths
Nick Mathewson [Wed, 20 Jun 2018 13:36:28 +0000 (09:36 -0400)] 
Changes file for full_include_paths

7 years agoRun rectify_include_paths.py
Nick Mathewson [Wed, 20 Jun 2018 13:35:05 +0000 (09:35 -0400)] 
Run rectify_include_paths.py

7 years agoSimplify AM_CPPFLAGS include setup
Nick Mathewson [Wed, 20 Jun 2018 13:25:50 +0000 (09:25 -0400)] 
Simplify AM_CPPFLAGS include setup

We had accumulated a bunch of cruft here.  Now let's only include
src and src/ext.  (exception: src/trunnel is autogenerated code, and
need to include src/trunnel.)

This commit will break the build hard.  The next commit will fix it.

7 years agoScript to replace include paths with full paths under src/
Nick Mathewson [Wed, 20 Jun 2018 13:25:16 +0000 (09:25 -0400)] 
Script to replace include paths with full paths under src/

This will let us move around header files without having to fix up
all the include sites manually.

7 years agoMerge remote-tracking branch 'neel/b25886c'
Nick Mathewson [Wed, 20 Jun 2018 12:32:34 +0000 (08:32 -0400)] 
Merge remote-tracking branch 'neel/b25886c'

7 years agoMerge branch 'maint-0.3.4'
Nick Mathewson [Wed, 20 Jun 2018 12:29:52 +0000 (08:29 -0400)] 
Merge branch 'maint-0.3.4'

7 years agoeol@eof in test-dir.c
Nick Mathewson [Wed, 20 Jun 2018 12:29:38 +0000 (08:29 -0400)] 
eol@eof in test-dir.c

7 years agoUpdate copyrights to 2018.
Nick Mathewson [Wed, 20 Jun 2018 12:13:28 +0000 (08:13 -0400)] 
Update copyrights to 2018.

7 years agoMerge branch 'maint-0.3.4'
Nick Mathewson [Wed, 20 Jun 2018 12:05:07 +0000 (08:05 -0400)] 
Merge branch 'maint-0.3.4'

7 years agoMerge branch 'asn_bug24977_final_squashed' into maint-0.3.4
Nick Mathewson [Wed, 20 Jun 2018 12:02:27 +0000 (08:02 -0400)] 
Merge branch 'asn_bug24977_final_squashed' into maint-0.3.4

7 years agoAdd changes file for #24977.
George Kadianakis [Wed, 13 Jun 2018 10:47:36 +0000 (13:47 +0300)] 
Add changes file for #24977.

7 years agoRecreate nodelist before use if it's outdated.
George Kadianakis [Wed, 13 Jun 2018 10:28:39 +0000 (13:28 +0300)] 
Recreate nodelist before use if it's outdated.

We currently only do the check when we are about to use the HSDir indices.

7 years agoRecreate voting schedule before use if it's outdated.
George Kadianakis [Tue, 12 Jun 2018 11:29:06 +0000 (14:29 +0300)] 
Recreate voting schedule before use if it's outdated.

7 years agoMerge branch 'maint-0.3.4'
Nick Mathewson [Wed, 20 Jun 2018 11:55:15 +0000 (07:55 -0400)] 
Merge branch 'maint-0.3.4'

7 years agorust: Remove redundant "testing" feature from tor_log crate.
Isis Lovecruft [Mon, 18 Jun 2018 18:33:49 +0000 (18:33 +0000)] 
rust: Remove redundant "testing" feature from tor_log crate.

It was synonymous with the builtin "test" feature.

 * FIXES #26399: https://bugs.torproject.org/26399

7 years agoMerge branch 'maint-0.3.4'
Nick Mathewson [Wed, 20 Jun 2018 11:53:22 +0000 (07:53 -0400)] 
Merge branch 'maint-0.3.4'

7 years agoMerge branch 'rl1987_bug26196_rebased_034' into maint-0.3.4
Nick Mathewson [Wed, 20 Jun 2018 11:50:00 +0000 (07:50 -0400)] 
Merge branch 'rl1987_bug26196_rebased_034' into maint-0.3.4