]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
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

7 years agoAdd changes file
rl1987 [Sun, 3 Jun 2018 11:56:28 +0000 (14:56 +0300)] 
Add changes file

7 years agoEnable DEBUG_SMARTLIST for entire codebase when expensive hardening is on
rl1987 [Sun, 3 Jun 2018 11:48:20 +0000 (14:48 +0300)] 
Enable DEBUG_SMARTLIST for entire codebase when expensive hardening is on

7 years agoEnable DEBUG_SMARTLIST in unit tests
rl1987 [Sun, 3 Jun 2018 11:33:31 +0000 (14:33 +0300)] 
Enable DEBUG_SMARTLIST in unit tests

7 years agoRefrain from accessing empty smartlist in test_bridges_clear_bridge_list
rl1987 [Sun, 3 Jun 2018 10:34:24 +0000 (13:34 +0300)] 
Refrain from accessing empty smartlist in test_bridges_clear_bridge_list

Just check that smartlist length is zero instead

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

7 years agoMerge remote-tracking branch 'catalyst-github/bug26415_034' into maint-0.3.4
Nick Mathewson [Wed, 20 Jun 2018 11:35:13 +0000 (07:35 -0400)] 
Merge remote-tracking branch 'catalyst-github/bug26415_034' into maint-0.3.4

7 years agoMerge branch 'maint-0.3.4'
Nick Mathewson [Tue, 19 Jun 2018 23:10:28 +0000 (19:10 -0400)] 
Merge branch 'maint-0.3.4'

7 years agoFix linker errors when building Tor.
Alexander Færøy [Tue, 19 Jun 2018 21:10:12 +0000 (23:10 +0200)] 
Fix linker errors when building Tor.

This patch fixes linking errors when compiling Tor with the dirauth
module disabled.

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

7 years agoFix compilation of Rust crypto doctests
Taylor Yu [Mon, 18 Jun 2018 18:41:38 +0000 (13:41 -0500)] 
Fix compilation of Rust crypto doctests

The doctests for src/rust/crypto don't compile for multiple reasons,
including some missing exports and incorrect identifier paths.  Fixes
bug 26415; bugfix on 0.3.4.1-alpha.

7 years agoMerge branch 'maint-0.3.4'
Nick Mathewson [Mon, 18 Jun 2018 21:09:03 +0000 (17:09 -0400)] 
Merge branch 'maint-0.3.4'

7 years agoRemove duplicate MODULE_DIRAUTH_SOURCES from libtor_testing.a
Nick Mathewson [Mon, 18 Jun 2018 21:03:52 +0000 (17:03 -0400)] 
Remove duplicate MODULE_DIRAUTH_SOURCES from libtor_testing.a

This was already added to LIBTOR_A_SOURCES; it doesn't need to get
added again.

Fixes bug 26402. Bugfix on 0.3.4.1-alpha.

7 years agoRevert "Remove duplicate MODULE_DIRAUTH_SOURCES from libtor_testing.a"
Nick Mathewson [Mon, 18 Jun 2018 21:06:18 +0000 (17:06 -0400)] 
Revert "Remove duplicate MODULE_DIRAUTH_SOURCES from libtor_testing.a"

This reverts commit 70d91bd059869a0ecf24ceb66942ada4f66f03c9.

7 years agoRemove duplicate MODULE_DIRAUTH_SOURCES from libtor_testing.a
Nick Mathewson [Mon, 18 Jun 2018 21:03:52 +0000 (17:03 -0400)] 
Remove duplicate MODULE_DIRAUTH_SOURCES from libtor_testing.a

This was already added to LIBTOR_A_SOURCES; it doesn't need to get
added again.

Fixes bug 26402. Bugfix on 0.3.4.1-alpha.

7 years agoremove EOL@EOF advice
Nick Mathewson [Mon, 18 Jun 2018 20:18:44 +0000 (16:18 -0400)] 
remove EOL@EOF advice

7 years agoNew check-spaces rule: Our C files may not have duplicate names.
Nick Mathewson [Mon, 18 Jun 2018 20:17:11 +0000 (16:17 -0400)] 
New check-spaces rule: Our C files may not have duplicate names.

7 years agoFinally remove our EOL@EOF check.
Nick Mathewson [Mon, 18 Jun 2018 20:10:47 +0000 (16:10 -0400)] 
Finally remove our EOL@EOF check.

This check was added by mistake long ago.  It will be nice to see
these EOLs disappear from our code over time.

7 years agoRemove redundant typedefs from _st.h files
Nick Mathewson [Mon, 18 Jun 2018 20:04:47 +0000 (16:04 -0400)] 
Remove redundant typedefs from _st.h files

The typedefs are already in or.h

7 years agotest: Add missing headers in test_controller.c
David Goulet [Mon, 18 Jun 2018 19:06:24 +0000 (15:06 -0400)] 
test: Add missing headers in test_controller.c

After the big or.h refactoring, one single unit test file was missing two
headers for node_t and microdesc_t.

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agoMerge branch 'split_or_h'
Nick Mathewson [Mon, 18 Jun 2018 18:18:34 +0000 (14:18 -0400)] 
Merge branch 'split_or_h'

7 years agoMerge branch 'maint-0.3.4'
Nick Mathewson [Mon, 18 Jun 2018 17:10:47 +0000 (13:10 -0400)] 
Merge branch 'maint-0.3.4'

7 years agoMerge branch 'rust_rand_tests' into maint-0.3.4
Nick Mathewson [Mon, 18 Jun 2018 17:10:24 +0000 (13:10 -0400)] 
Merge branch 'rust_rand_tests' into maint-0.3.4

7 years agoChanges file for "make clippy"
Nick Mathewson [Mon, 18 Jun 2018 15:30:06 +0000 (11:30 -0400)] 
Changes file for "make clippy"

7 years agoMerge remote-tracking branch 'isis-github/bug22156'
Nick Mathewson [Mon, 18 Jun 2018 15:29:04 +0000 (11:29 -0400)] 
Merge remote-tracking branch 'isis-github/bug22156'

7 years agoMerge remote-tracking branch 'ffmancera-1/bug24658-dh_stream'
Nick Mathewson [Mon, 18 Jun 2018 00:39:13 +0000 (20:39 -0400)] 
Merge remote-tracking branch 'ffmancera-1/bug24658-dh_stream'

7 years agoMerge remote-tracking branch 'rl1987/bug25477'
Nick Mathewson [Mon, 18 Jun 2018 00:25:40 +0000 (20:25 -0400)] 
Merge remote-tracking branch 'rl1987/bug25477'

7 years agoMerge remote-tracking branch 'rl1987/feature8323_squashed2'
Nick Mathewson [Mon, 18 Jun 2018 00:20:15 +0000 (20:20 -0400)] 
Merge remote-tracking branch 'rl1987/feature8323_squashed2'

7 years agoMerge remote-tracking branch 'rl1987/bug26282'
Nick Mathewson [Sun, 17 Jun 2018 23:32:08 +0000 (19:32 -0400)] 
Merge remote-tracking branch 'rl1987/bug26282'

7 years agoMerge remote-tracking branch 'github/bug26152_035'
Nick Mathewson [Sun, 17 Jun 2018 23:28:59 +0000 (19:28 -0400)] 
Merge remote-tracking branch 'github/bug26152_035'

7 years agoMerge remote-tracking branch 'juga/editorconfig'
Nick Mathewson [Sun, 17 Jun 2018 23:24:58 +0000 (19:24 -0400)] 
Merge remote-tracking branch 'juga/editorconfig'

7 years agoMerge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Sun, 17 Jun 2018 23:24:48 +0000 (19:24 -0400)] 
Merge branch 'maint-0.3.3' into maint-0.3.4

7 years agoMerge branch 'maint-0.3.4'
Nick Mathewson [Sun, 17 Jun 2018 23:24:48 +0000 (19:24 -0400)] 
Merge branch 'maint-0.3.4'

7 years agoMerge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Sun, 17 Jun 2018 23:24:48 +0000 (19:24 -0400)] 
Merge branch 'maint-0.3.2' into maint-0.3.3

7 years agoMerge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Sun, 17 Jun 2018 23:24:48 +0000 (19:24 -0400)] 
Merge branch 'maint-0.3.1' into maint-0.3.2

7 years agoMerge branch 'maint-0.2.9' into maint-0.3.1
Nick Mathewson [Sun, 17 Jun 2018 23:24:48 +0000 (19:24 -0400)] 
Merge branch 'maint-0.2.9' into maint-0.3.1

7 years agoAdd .editorconfig to follow coding standards style
juga0 [Sun, 3 Jun 2018 10:44:02 +0000 (10:44 +0000)] 
Add .editorconfig to follow coding standards style

7 years agoChanges to make the rust crypto::mod tests compile
Nick Mathewson [Sat, 16 Jun 2018 17:22:44 +0000 (13:22 -0400)] 
Changes to make the rust crypto::mod tests compile

The digest tests don't link yet, though.

7 years agoMerge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Sat, 16 Jun 2018 17:10:19 +0000 (13:10 -0400)] 
Merge branch 'maint-0.3.3' into maint-0.3.4

7 years agoMerge branch 'maint-0.3.4'
Nick Mathewson [Sat, 16 Jun 2018 17:10:19 +0000 (13:10 -0400)] 
Merge branch 'maint-0.3.4'

7 years agoFix a bug in my fix for #26258
Nick Mathewson [Sat, 16 Jun 2018 17:08:40 +0000 (13:08 -0400)] 
Fix a bug in my fix for #26258

The fix here is use a different bourne shell subsitution for
CARGO_ONLINE, so that an empty string counts as set.

7 years agoMerge branch 'maint-0.3.4'
Nick Mathewson [Sat, 16 Jun 2018 16:43:35 +0000 (12:43 -0400)] 
Merge branch 'maint-0.3.4'

7 years agoMerge remote-tracking branch 'isis/bug26267' into maint-0.3.4
Nick Mathewson [Sat, 16 Jun 2018 16:43:28 +0000 (12:43 -0400)] 
Merge remote-tracking branch 'isis/bug26267' into maint-0.3.4

7 years agoMake frac_nodes_with_descriptors() take and use for_direct_connect
Neel Chauhan [Sat, 16 Jun 2018 15:27:28 +0000 (11:27 -0400)] 
Make frac_nodes_with_descriptors() take and use for_direct_connect

7 years agoMerge branch 'maint-0.3.4'
Nick Mathewson [Sat, 16 Jun 2018 14:20:27 +0000 (10:20 -0400)] 
Merge branch 'maint-0.3.4'

7 years agoChanges file for rust fatal warnings
Nick Mathewson [Sat, 16 Jun 2018 14:20:21 +0000 (10:20 -0400)] 
Changes file for rust fatal warnings

7 years agoMerge remote-tracking branch 'isis/bug26245' into maint-0.3.4
Nick Mathewson [Sat, 16 Jun 2018 14:19:26 +0000 (10:19 -0400)] 
Merge remote-tracking branch 'isis/bug26245' into maint-0.3.4

7 years agoMerge branch 'maint-0.3.4'
Nick Mathewson [Sat, 16 Jun 2018 14:15:39 +0000 (10:15 -0400)] 
Merge branch 'maint-0.3.4'

7 years agorust: Remove unused N_DIGEST_ALGORITHMS constant from crypto_digest.rs.
Isis Lovecruft [Fri, 15 Jun 2018 23:22:43 +0000 (23:22 +0000)] 
rust: Remove unused N_DIGEST_ALGORITHMS constant from crypto_digest.rs.

In the C code, this constant is only ever used in src/test/bench.c.

 * FIXES part of #26245: https://bugs.torproject.org/26245

7 years agorust: Add comment and pragma on "unused" smartlist_t type.
Isis Lovecruft [Fri, 15 Jun 2018 22:49:05 +0000 (22:49 +0000)] 
rust: Add comment and pragma on "unused" smartlist_t type.

 * FIXES part of #26245: https://bugs.torproject.org/26245

7 years agoMake Rust warnings conditionally fatal
Taylor Yu [Fri, 15 Jun 2018 22:27:19 +0000 (17:27 -0500)] 
Make Rust warnings conditionally fatal

Set rustc flags to treat warnings as fatal if configured with
--enable-warnings.

7 years agorust: Expose rand module from crypto crate.
Isis Lovecruft [Fri, 15 Jun 2018 21:44:22 +0000 (21:44 +0000)] 
rust: Expose rand module from crypto crate.

7 years agoBump master to 0.3.5.0-alpha-dev tor-0.3.5.0-alpha-dev
Nick Mathewson [Fri, 15 Jun 2018 21:19:49 +0000 (17:19 -0400)] 
Bump master to 0.3.5.0-alpha-dev

7 years agoSet default-features = false for rand_core
Taylor Yu [Fri, 15 Jun 2018 20:19:16 +0000 (15:19 -0500)] 
Set default-features = false for rand_core

Apparently rand and rand_core need to be built with the "std" feature
set consistently, or there will be a compile error in rngs/jitter.rs.

7 years agoAdd a changes file for splitting structures out of or.h
Nick Mathewson [Fri, 15 Jun 2018 19:48:03 +0000 (15:48 -0400)] 
Add a changes file for splitting structures out of or.h

7 years agoMove hsdir_index_t into its own header.
Nick Mathewson [Fri, 15 Jun 2018 19:41:27 +0000 (15:41 -0400)] 
Move hsdir_index_t into its own header.

7 years agoMove extend_info_t into its own header.
Nick Mathewson [Fri, 15 Jun 2018 19:37:05 +0000 (15:37 -0400)] 
Move extend_info_t into its own header.

7 years agoExtract cell type and their queues into new headers
Nick Mathewson [Fri, 15 Jun 2018 19:27:46 +0000 (15:27 -0400)] 
Extract cell type and their queues into new headers

Since packed_cell and destroy_cell exist only to be queued, they go
in the same headers as the queues.

7 years agoExtract cached_dir_t into a new header.
Nick Mathewson [Fri, 15 Jun 2018 19:06:00 +0000 (15:06 -0400)] 
Extract cached_dir_t into a new header.

7 years agoExtract download_status_t into its own header.
Nick Mathewson [Fri, 15 Jun 2018 18:58:43 +0000 (14:58 -0400)] 
Extract download_status_t into its own header.

7 years agoExtract signed_descriptor_t into its own header.
Nick Mathewson [Fri, 15 Jun 2018 18:53:07 +0000 (14:53 -0400)] 
Extract signed_descriptor_t into its own header.

7 years agoExtract routerinfo_t into its own header.
Nick Mathewson [Fri, 15 Jun 2018 18:49:15 +0000 (14:49 -0400)] 
Extract routerinfo_t into its own header.

I was expecting this to be much worse.

7 years agoExtract microdesc_t into its own header.
Nick Mathewson [Fri, 15 Jun 2018 18:38:30 +0000 (14:38 -0400)] 
Extract microdesc_t into its own header.

7 years agoExtract routerstatus_t into its own header.
Nick Mathewson [Fri, 15 Jun 2018 18:33:03 +0000 (14:33 -0400)] 
Extract routerstatus_t into its own header.

7 years agoExtract extrainfo_t into its own header
Nick Mathewson [Fri, 15 Jun 2018 18:21:25 +0000 (14:21 -0400)] 
Extract extrainfo_t into its own header

7 years agoExtract authority_cert_t into its own header
Nick Mathewson [Fri, 15 Jun 2018 18:14:11 +0000 (14:14 -0400)] 
Extract authority_cert_t into its own header

7 years agoExtract desc_store_t and routerlist_t into their own headers.
Nick Mathewson [Fri, 15 Jun 2018 18:07:17 +0000 (14:07 -0400)] 
Extract desc_store_t and routerlist_t into their own headers.

7 years agoExtract ns_detached_signatures_st into its own header.
Nick Mathewson [Fri, 15 Jun 2018 17:49:30 +0000 (13:49 -0400)] 
Extract ns_detached_signatures_st into its own header.

7 years agoExtract networkstatus_t and ..sr_info_t into their own headers
Nick Mathewson [Fri, 15 Jun 2018 17:45:15 +0000 (13:45 -0400)] 
Extract networkstatus_t and ..sr_info_t into their own headers

7 years agoExtract networkstatus_vote_info_t into its own header.
Nick Mathewson [Fri, 15 Jun 2018 17:31:47 +0000 (13:31 -0400)] 
Extract networkstatus_vote_info_t into its own header.

7 years agoMove document_signature_t into its own header.
Nick Mathewson [Fri, 15 Jun 2018 17:27:11 +0000 (13:27 -0400)] 
Move document_signature_t into its own header.