]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
7 years agoMove conffile and storagedir to lib/fs
Nick Mathewson [Thu, 28 Jun 2018 13:38:17 +0000 (09:38 -0400)] 
Move conffile and storagedir to lib/fs

7 years agoFix up the modules that include memarea.h (automated)
Nick Mathewson [Thu, 28 Jun 2018 13:25:58 +0000 (09:25 -0400)] 
Fix up the modules that include memarea.h (automated)

7 years agoExtract memarea into its own library
Nick Mathewson [Thu, 28 Jun 2018 13:25:18 +0000 (09:25 -0400)] 
Extract memarea into its own library

7 years agoExtract threading code into a new library.
Nick Mathewson [Thu, 28 Jun 2018 13:14:42 +0000 (09:14 -0400)] 
Extract threading code into a new library.

Note that the workqueue code does *not* go here: it is logically at
a higher level, since it needs to use libevent and the networking
stack.

7 years agoExtract the alert-socket code into lib/net.
Nick Mathewson [Thu, 28 Jun 2018 12:49:07 +0000 (08:49 -0400)] 
Extract the alert-socket code into lib/net.

This code was in compat_threads, since it was _used_ for efficiently
notifying the main libevent thread from another thread.  But in
spite of its usage, it's fundamentally a part of the network code.

7 years agorectify include paths (automatic) for confline.h
Nick Mathewson [Wed, 27 Jun 2018 20:54:57 +0000 (16:54 -0400)] 
rectify include paths (automatic) for confline.h

7 years agoMove confline.c to lib/encoding: it is about encoding key-value pairs
Nick Mathewson [Wed, 27 Jun 2018 20:52:39 +0000 (16:52 -0400)] 
Move confline.c to lib/encoding: it is about encoding key-value pairs

Also, move "unescape_string()" to encoding too, since it's about
encoding data as C strings.

7 years agoSplit confline into confline and conffile.
Nick Mathewson [Wed, 27 Jun 2018 20:43:01 +0000 (16:43 -0400)] 
Split confline into confline and conffile.

The "conffile" module knows about includes and filesystem access,
whereas confline doesn't.  This will make it possible to put these
functions into libraries without introducing a cycle.

7 years agoMove hex_str to binascii.c
Nick Mathewson [Wed, 27 Jun 2018 20:21:55 +0000 (16:21 -0400)] 
Move hex_str to binascii.c

7 years agoExtract time encoding functions into lib/encoding
Nick Mathewson [Wed, 27 Jun 2018 20:17:46 +0000 (16:17 -0400)] 
Extract time encoding functions into lib/encoding

7 years agoMove util_format into a new libtor-encoding library
Nick Mathewson [Wed, 27 Jun 2018 19:59:07 +0000 (15:59 -0400)] 
Move util_format into a new libtor-encoding library

libtor-encoding is about various ways to transform data to and from
character sequences.

7 years agoMove several address-string-testing functions to address.c
Nick Mathewson [Wed, 27 Jun 2018 19:45:53 +0000 (15:45 -0400)] 
Move several address-string-testing functions to address.c

7 years agoMove various mem* functions to lib/string
Nick Mathewson [Wed, 27 Jun 2018 19:36:42 +0000 (15:36 -0400)] 
Move various mem* functions to lib/string

7 years agoMove tor_strtok_r to libtor-string
Nick Mathewson [Wed, 27 Jun 2018 19:28:55 +0000 (15:28 -0400)] 
Move tor_strtok_r to libtor-string

7 years agoMove set/get_uint*() to inline functions in arch/bytes.h
Nick Mathewson [Wed, 27 Jun 2018 19:00:11 +0000 (15:00 -0400)] 
Move set/get_uint*() to inline functions in arch/bytes.h

Also move our ntohll/htonll functions.

7 years agoMerge branch 'fs_refactor'
Nick Mathewson [Wed, 27 Jun 2018 18:45:17 +0000 (14:45 -0400)] 
Merge branch 'fs_refactor'

7 years agoMerge branch 'sandbox_refactor'
Nick Mathewson [Wed, 27 Jun 2018 18:45:14 +0000 (14:45 -0400)] 
Merge branch 'sandbox_refactor'

7 years agoMerge branch 'net_refactor'
Nick Mathewson [Wed, 27 Jun 2018 16:52:31 +0000 (12:52 -0400)] 
Merge branch 'net_refactor'

7 years agoMerge branch 'ticket26494'
Nick Mathewson [Wed, 27 Jun 2018 16:47:08 +0000 (12:47 -0400)] 
Merge branch 'ticket26494'

7 years agofixup! Move format_win32_error into lib/log/
Nick Mathewson [Wed, 27 Jun 2018 16:35:48 +0000 (12:35 -0400)] 
fixup! Move format_win32_error into lib/log/

7 years agoExtract functions from compat.c and util.h into a new fs library
Nick Mathewson [Wed, 27 Jun 2018 13:40:21 +0000 (09:40 -0400)] 
Extract functions from compat.c and util.h into a new fs library

7 years agoMove format_win32_error into lib/log/
Nick Mathewson [Wed, 27 Jun 2018 16:15:22 +0000 (12:15 -0400)] 
Move format_win32_error into lib/log/

7 years agoMove read/write_all_to_socket into lib/net.
Nick Mathewson [Wed, 27 Jun 2018 14:50:24 +0000 (10:50 -0400)] 
Move read/write_all_to_socket into lib/net.

7 years agoSplit read_all and write_all into separate functions
Nick Mathewson [Wed, 27 Jun 2018 14:47:09 +0000 (10:47 -0400)] 
Split read_all and write_all into separate functions

7 years agoMinimize and permit sandbox includes from crypto_ops.
Nick Mathewson [Wed, 27 Jun 2018 14:12:39 +0000 (10:12 -0400)] 
Minimize and permit sandbox includes from crypto_ops.

7 years agoMinimize includes from sandbox.c
Nick Mathewson [Wed, 27 Jun 2018 14:11:27 +0000 (10:11 -0400)] 
Minimize includes from sandbox.c

7 years agoFix up include paths for sandbox.h (automated)
Nick Mathewson [Wed, 27 Jun 2018 13:49:08 +0000 (09:49 -0400)] 
Fix up include paths for sandbox.h (automated)

7 years agoMove sandbox code into a new library.
Nick Mathewson [Wed, 27 Jun 2018 13:48:26 +0000 (09:48 -0400)] 
Move sandbox code into a new library.

7 years agoRevert "Use the "commands" argument of AC_CONFIG_FILES to make scripts +x"
Nick Mathewson [Wed, 27 Jun 2018 13:53:46 +0000 (09:53 -0400)] 
Revert "Use the "commands" argument of AC_CONFIG_FILES to make scripts +x"

This reverts commit 56c1fbf33f34e010ec33e7660fab3ec3ecb43fc8.

7 years agorectify include paths (automatic) for address.h
Nick Mathewson [Wed, 27 Jun 2018 13:13:04 +0000 (09:13 -0400)] 
rectify include paths (automatic) for address.h

7 years agoLink GetAdaptersAddresses, rather than loading it on-demand.
Nick Mathewson [Wed, 27 Jun 2018 13:09:10 +0000 (09:09 -0400)] 
Link GetAdaptersAddresses, rather than loading it on-demand.

This function has been present since Windows XP.

7 years agoMove network code to libtor-net.
Nick Mathewson [Wed, 27 Jun 2018 00:42:47 +0000 (20:42 -0400)] 
Move network code to libtor-net.

There are some additional changes to come: those points are marked
by XXXX.

7 years agoMove tor_parse_long and friends into parse_int.h in libtor-string
Nick Mathewson [Wed, 27 Jun 2018 01:02:29 +0000 (21:02 -0400)] 
Move tor_parse_long and friends into parse_int.h in libtor-string

7 years agoMove the escape-for-log code into src/lib/log
Nick Mathewson [Wed, 27 Jun 2018 00:51:17 +0000 (20:51 -0400)] 
Move the escape-for-log code into src/lib/log

It doesn't need anything higher-level, and everything that needs the
logs potentially needs this.

7 years agoMerge branch 'ticket26439'
Nick Mathewson [Tue, 26 Jun 2018 21:02:06 +0000 (17:02 -0400)] 
Merge branch 'ticket26439'

7 years agoFinish renaming digestset_contains to digestset_probably_contains
Nick Mathewson [Tue, 26 Jun 2018 17:20:54 +0000 (13:20 -0400)] 
Finish renaming digestset_contains to digestset_probably_contains

Since bloom filters are probabilistic, it's nice to make it clear
that the "contains" operation can have false positives.

7 years agoRefactor bloom filter logic not to be digest-specific.
Nick Mathewson [Tue, 26 Jun 2018 17:18:23 +0000 (13:18 -0400)] 
Refactor bloom filter logic not to be digest-specific.

Now the address-set code and the digest-set code share the same
backend.

Closes ticket 26510

7 years agofixup! Extract core part of smartlist code into its own library.
Nick Mathewson [Tue, 26 Jun 2018 16:21:35 +0000 (12:21 -0400)] 
fixup! Extract core part of smartlist code into its own library.

7 years agofixup! Extract core part of smartlist code into its own library.
Nick Mathewson [Tue, 26 Jun 2018 16:18:49 +0000 (12:18 -0400)] 
fixup! Extract core part of smartlist code into its own library.

7 years agoUse raw_assert directly in smartlist_core
Nick Mathewson [Tue, 26 Jun 2018 16:16:04 +0000 (12:16 -0400)] 
Use raw_assert directly in smartlist_core

I had previously added a "#define tor_assert raw_assert" here, to
make code movement in the previous commit more clear.

7 years agoExtract core part of smartlist code into its own library.
Nick Mathewson [Tue, 26 Jun 2018 16:13:23 +0000 (12:13 -0400)] 
Extract core part of smartlist code into its own library.

The smartlist_core library now contains only the parts of smartlists
that are needed for the logging library.  This resolves the
circularity between "container" and "log".

The "containers" library still uses the logging code, and has the
higher-level smartlist functions.

7 years agoRemove some accidentally committed code in checkIncludes.py
Nick Mathewson [Tue, 26 Jun 2018 16:04:24 +0000 (12:04 -0400)] 
Remove some accidentally committed code in checkIncludes.py

7 years agoFix comments in lib/container/*.c
Nick Mathewson [Tue, 26 Jun 2018 15:33:53 +0000 (11:33 -0400)] 
Fix comments in lib/container/*.c

7 years agoMerge branch 'log_dependencies'
Nick Mathewson [Tue, 26 Jun 2018 15:27:33 +0000 (11:27 -0400)] 
Merge branch 'log_dependencies'

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

7 years agoMerge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Tue, 26 Jun 2018 13:21:59 +0000 (09:21 -0400)] 
Merge branch 'maint-0.3.3' into maint-0.3.4

7 years agoMerge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Tue, 26 Jun 2018 13:21:59 +0000 (09:21 -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 [Tue, 26 Jun 2018 13:21:59 +0000 (09:21 -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 [Tue, 26 Jun 2018 13:21:59 +0000 (09:21 -0400)] 
Merge branch 'maint-0.2.9' into maint-0.3.1

7 years agoMerge branch 'feature26372_029' into maint-0.2.9
Nick Mathewson [Tue, 26 Jun 2018 13:21:55 +0000 (09:21 -0400)] 
Merge branch 'feature26372_029' into maint-0.2.9

7 years agoMerge branch 'maint-0.3.4'
Nick Mathewson [Tue, 26 Jun 2018 13:12:28 +0000 (09:12 -0400)] 
Merge branch 'maint-0.3.4'

"ours" to avoid version bump.

7 years agoBump version to 0.3.4.3-alpha-dev
Nick Mathewson [Tue, 26 Jun 2018 13:12:23 +0000 (09:12 -0400)] 
Bump version to 0.3.4.3-alpha-dev

7 years agoForward-port the 0.3.4.3-alpha ChangeLog
Nick Mathewson [Tue, 26 Jun 2018 12:49:06 +0000 (08:49 -0400)] 
Forward-port the 0.3.4.3-alpha ChangeLog

7 years agoInclude stdio.h in torerr.c.
Nick Mathewson [Mon, 25 Jun 2018 20:52:14 +0000 (16:52 -0400)] 
Include stdio.h in torerr.c.

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

"ours" merge to avoid version bump.

7 years agoBump to 0.3.4.3-alpha.
Nick Mathewson [Mon, 25 Jun 2018 18:07:23 +0000 (14:07 -0400)] 
Bump to 0.3.4.3-alpha.

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

7 years agobetter log line for debugging #26485
Roger Dingledine [Sun, 24 Jun 2018 22:14:24 +0000 (18:14 -0400)] 
better log line for debugging #26485

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 some casts to get test_dir.c compiling on windows.
Nick Mathewson [Fri, 22 Jun 2018 22:22:20 +0000 (18:22 -0400)] 
Add some casts to get test_dir.c compiling on windows.

Fixed bug 26479.  Bug introduced by 0a6f4627a4292e4; bug not in any
released version.

7 years agoFix test_geoip failures on windows by writing file in binary mode.
Nick Mathewson [Fri, 22 Jun 2018 18:47:48 +0000 (14:47 -0400)] 
Fix test_geoip failures on windows by writing file in binary mode.

Fixes bug 26480; bug appeared when we re-enabled the geoip tests on
windows.  Bug originally introduced by our fix to 25787; bug not in
any released Tor.

7 years agoMake an inline static so we can build with coverage enabled.
Nick Mathewson [Fri, 22 Jun 2018 18:11:37 +0000 (14:11 -0400)] 
Make an inline static so we can build with coverage enabled.

7 years agoAnother windows include
Nick Mathewson [Fri, 22 Jun 2018 17:52:30 +0000 (13:52 -0400)] 
Another windows include

7 years agoWe also need torerr in tm_cvt.
Nick Mathewson [Fri, 22 Jun 2018 17:34:35 +0000 (13:34 -0400)] 
We also need torerr in tm_cvt.

7 years agoAdd another include for windows, and change a log to a raw_assert
Nick Mathewson [Fri, 22 Jun 2018 17:33:08 +0000 (13:33 -0400)] 
Add another include for windows, and change a log to a raw_assert

7 years agoRemove an "m" that did not belong.
Nick Mathewson [Fri, 22 Jun 2018 17:32:47 +0000 (13:32 -0400)] 
Remove an "m" that did not belong.

7 years agoUpdate the micro-revision.i dependencies, and add a stdlib.h
Nick Mathewson [Fri, 22 Jun 2018 17:25:52 +0000 (13:25 -0400)] 
Update the micro-revision.i dependencies, and add a stdlib.h

7 years agoTwo more small changes for CI.
Nick Mathewson [Fri, 22 Jun 2018 17:10:52 +0000 (13:10 -0400)] 
Two more small changes for CI.

7 years agoA pair of missing includes.
Nick Mathewson [Fri, 22 Jun 2018 16:53:57 +0000 (12:53 -0400)] 
A pair of missing includes.

7 years agoFix up the rust build script library list.
Nick Mathewson [Fri, 22 Jun 2018 16:04:11 +0000 (12:04 -0400)] 
Fix up the rust build script library list.

7 years agoMove util_bug into libtor-log
Nick Mathewson [Fri, 22 Jun 2018 15:54:38 +0000 (11:54 -0400)] 
Move util_bug into libtor-log

7 years agoRemove util_bug dependency on compat.h
Nick Mathewson [Fri, 22 Jun 2018 15:51:58 +0000 (11:51 -0400)] 
Remove util_bug dependency on compat.h

7 years agoUpdate .gitignore and .may_include files
Nick Mathewson [Fri, 22 Jun 2018 15:46:44 +0000 (11:46 -0400)] 
Update .gitignore and .may_include files

7 years agoFinally extract the log library and make it build.
Nick Mathewson [Fri, 22 Jun 2018 15:40:20 +0000 (11:40 -0400)] 
Finally extract the log library and make it build.

This patch:
  - introduces an fdio module for low-level fd functions that don't
    need to log.
  - moves the responsibility for opening files outside of torlog.c,
    so it won't need to call tor_open_cloexec.

7 years agoExtract strlcpy and strlcmp to libtor-string
Nick Mathewson [Fri, 22 Jun 2018 15:18:19 +0000 (11:18 -0400)] 
Extract strlcpy and strlcmp to libtor-string

7 years agoExtract core part of gmtime_r, localtime_r (without logging)
Nick Mathewson [Fri, 22 Jun 2018 15:07:10 +0000 (11:07 -0400)] 
Extract core part of gmtime_r, localtime_r (without logging)

7 years agoRemove the util_bug.h include from smartlist.h.
Nick Mathewson [Fri, 22 Jun 2018 14:50:12 +0000 (10:50 -0400)] 
Remove the util_bug.h include from smartlist.h.

This change makes a whole bunch of things in torlog.c break, since
apparently I did not find all the fd dependencies.

7 years agoAutomated fixup of include paths after torlog.h movement.
Nick Mathewson [Fri, 22 Jun 2018 14:32:10 +0000 (10:32 -0400)] 
Automated fixup of include paths after torlog.h movement.

7 years agoExtract the locking and logging code
Nick Mathewson [Fri, 22 Jun 2018 14:30:45 +0000 (10:30 -0400)] 
Extract the locking and logging code

The locking code gets its own module, since it's more fundamental
than the higher-level locking code.

Extracting the logging code was the whole point here. :)

7 years agoExtract simple integer math into its own module
Nick Mathewson [Fri, 22 Jun 2018 13:48:24 +0000 (09:48 -0400)] 
Extract simple integer math into its own module

7 years agoMove smartlist_add_{v,}asprintf into smartlist.[ch]
Nick Mathewson [Fri, 22 Jun 2018 13:26:19 +0000 (09:26 -0400)] 
Move smartlist_add_{v,}asprintf into smartlist.[ch]

Now that I know that "strings" nests below "container", I know this
is safe.

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 agoUse the "commands" argument of AC_CONFIG_FILES to make scripts +x
Nick Mathewson [Thu, 21 Jun 2018 13:14:19 +0000 (09:14 -0400)] 
Use the "commands" argument of AC_CONFIG_FILES to make scripts +x

Closes ticket 26439.

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.*