]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
7 years agoExtract key string manipulation functions into a new library.
Nick Mathewson [Fri, 22 Jun 2018 13:23:30 +0000 (09:23 -0400)] 
Extract key string manipulation functions into a new library.

7 years agoMove ARRAY_LENGTH to compiler_compat.h
Nick Mathewson [Fri, 22 Jun 2018 12:41:57 +0000 (08:41 -0400)] 
Move ARRAY_LENGTH to compiler_compat.h

7 years agoRemove compat.h as unneeded from log.c and torlog.h
Nick Mathewson [Thu, 21 Jun 2018 21:35:56 +0000 (17:35 -0400)] 
Remove compat.h as unneeded from log.c and torlog.h

7 years agoExtract our code for answering "what time is it right now".
Nick Mathewson [Thu, 21 Jun 2018 21:33:49 +0000 (17:33 -0400)] 
Extract our code for answering "what time is it right now".

The other time stuff is higher-level

7 years agoUpdate permissible includes
Nick Mathewson [Thu, 21 Jun 2018 21:06:58 +0000 (17:06 -0400)] 
Update permissible includes

7 years agoExpunge container.h
Nick Mathewson [Thu, 21 Jun 2018 21:03:45 +0000 (17:03 -0400)] 
Expunge container.h

7 years agoExtract smartlist.h from container.h
Nick Mathewson [Thu, 21 Jun 2018 21:00:48 +0000 (17:00 -0400)] 
Extract smartlist.h from container.h

7 years agoRemove map from container.h
Nick Mathewson [Thu, 21 Jun 2018 20:52:58 +0000 (16:52 -0400)] 
Remove map from container.h

7 years agoRemove bloom filters, order statistics, and bitarrays from container.h
Nick Mathewson [Thu, 21 Jun 2018 20:48:54 +0000 (16:48 -0400)] 
Remove bloom filters, order statistics, and bitarrays from container.h

7 years agoRemove container->crypto dependency
Nick Mathewson [Thu, 21 Jun 2018 20:34:00 +0000 (16:34 -0400)] 
Remove container->crypto dependency

Containers were using crypto_digest.h, just to see the value of
DIGEST_LEN.  Moved those constants into a new defs module.

7 years agoMove STRUCT_VAR_P to compat_compiler.
Nick Mathewson [Thu, 21 Jun 2018 20:29:24 +0000 (16:29 -0400)] 
Move STRUCT_VAR_P to compat_compiler.

7 years agoSplit container.c based on container types, and minimize includes
Nick Mathewson [Thu, 21 Jun 2018 20:25:31 +0000 (16:25 -0400)] 
Split container.c based on container types, and minimize includes

Minimizing includes revealed other places includes were necessary.

7 years agoRectify include paths after container split (automatic)
Nick Mathewson [Thu, 21 Jun 2018 19:40:15 +0000 (15:40 -0400)] 
Rectify include paths after container split (automatic)

7 years agoRefactor container into a library.
Nick Mathewson [Thu, 21 Jun 2018 19:39:36 +0000 (15:39 -0400)] 
Refactor container into a library.

7 years agoSimplify include structure of container.[ch]
Nick Mathewson [Thu, 21 Jun 2018 19:33:25 +0000 (15:33 -0400)] 
Simplify include structure of container.[ch]

7 years agoExtract tor_malloc and friends to a new module.
Nick Mathewson [Thu, 21 Jun 2018 19:17:54 +0000 (15:17 -0400)] 
Extract tor_malloc and friends to a new module.

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