]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Thu, 28 Jun 2018 13:38:17 +0000 (09:38 -0400)]
Move conffile and storagedir to lib/fs
Nick Mathewson [Thu, 28 Jun 2018 13:25:58 +0000 (09:25 -0400)]
Fix up the modules that include memarea.h (automated)
Nick Mathewson [Thu, 28 Jun 2018 13:25:18 +0000 (09:25 -0400)]
Extract memarea into its own 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.
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.
Nick Mathewson [Wed, 27 Jun 2018 20:54:57 +0000 (16:54 -0400)]
rectify include paths (automatic) for confline.h
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.
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.
Nick Mathewson [Wed, 27 Jun 2018 20:21:55 +0000 (16:21 -0400)]
Move hex_str to binascii.c
Nick Mathewson [Wed, 27 Jun 2018 20:17:46 +0000 (16:17 -0400)]
Extract time encoding functions into lib/encoding
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.
Nick Mathewson [Wed, 27 Jun 2018 19:45:53 +0000 (15:45 -0400)]
Move several address-string-testing functions to address.c
Nick Mathewson [Wed, 27 Jun 2018 19:36:42 +0000 (15:36 -0400)]
Move various mem* functions to lib/string
Nick Mathewson [Wed, 27 Jun 2018 19:28:55 +0000 (15:28 -0400)]
Move tor_strtok_r to libtor-string
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.
Nick Mathewson [Wed, 27 Jun 2018 18:45:17 +0000 (14:45 -0400)]
Merge branch 'fs_refactor'
Nick Mathewson [Wed, 27 Jun 2018 18:45:14 +0000 (14:45 -0400)]
Merge branch 'sandbox_refactor'
Nick Mathewson [Wed, 27 Jun 2018 16:52:31 +0000 (12:52 -0400)]
Merge branch 'net_refactor'
Nick Mathewson [Wed, 27 Jun 2018 16:47:08 +0000 (12:47 -0400)]
Merge branch 'ticket26494'
Nick Mathewson [Wed, 27 Jun 2018 16:35:48 +0000 (12:35 -0400)]
fixup! Move format_win32_error into lib/log/
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
Nick Mathewson [Wed, 27 Jun 2018 16:15:22 +0000 (12:15 -0400)]
Move format_win32_error into lib/log/
Nick Mathewson [Wed, 27 Jun 2018 14:50:24 +0000 (10:50 -0400)]
Move read/write_all_to_socket into lib/net.
Nick Mathewson [Wed, 27 Jun 2018 14:47:09 +0000 (10:47 -0400)]
Split read_all and write_all into separate functions
Nick Mathewson [Wed, 27 Jun 2018 14:12:39 +0000 (10:12 -0400)]
Minimize and permit sandbox includes from crypto_ops.
Nick Mathewson [Wed, 27 Jun 2018 14:11:27 +0000 (10:11 -0400)]
Minimize includes from sandbox.c
Nick Mathewson [Wed, 27 Jun 2018 13:49:08 +0000 (09:49 -0400)]
Fix up include paths for sandbox.h (automated)
Nick Mathewson [Wed, 27 Jun 2018 13:48:26 +0000 (09:48 -0400)]
Move sandbox code into a new library.
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 .
Nick Mathewson [Wed, 27 Jun 2018 13:13:04 +0000 (09:13 -0400)]
rectify include paths (automatic) for address.h
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.
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.
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
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.
Nick Mathewson [Tue, 26 Jun 2018 21:02:06 +0000 (17:02 -0400)]
Merge branch 'ticket26439'
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.
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
Nick Mathewson [Tue, 26 Jun 2018 16:21:35 +0000 (12:21 -0400)]
fixup! 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.
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.
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.
Nick Mathewson [Tue, 26 Jun 2018 16:04:24 +0000 (12:04 -0400)]
Remove some accidentally committed code in checkIncludes.py
Nick Mathewson [Tue, 26 Jun 2018 15:33:53 +0000 (11:33 -0400)]
Fix comments in lib/container/*.c
Nick Mathewson [Tue, 26 Jun 2018 15:27:33 +0000 (11:27 -0400)]
Merge branch 'log_dependencies'
Nick Mathewson [Tue, 26 Jun 2018 13:21:59 +0000 (09:21 -0400)]
Merge branch '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
Nick Mathewson [Tue, 26 Jun 2018 13:21:59 +0000 (09:21 -0400)]
Merge 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.1' into maint-0.3.2
Nick Mathewson [Tue, 26 Jun 2018 13:21:59 +0000 (09:21 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.1
Nick Mathewson [Tue, 26 Jun 2018 13:21:55 +0000 (09:21 -0400)]
Merge branch 'feature26372_029' into maint-0.2.9
Nick Mathewson [Tue, 26 Jun 2018 13:12:28 +0000 (09:12 -0400)]
Merge branch 'maint-0.3.4'
"ours" to avoid version bump.
Nick Mathewson [Tue, 26 Jun 2018 13:12:23 +0000 (09:12 -0400)]
Bump version to 0.3.4.3-alpha-dev
Nick Mathewson [Tue, 26 Jun 2018 12:49:06 +0000 (08:49 -0400)]
Forward-port the 0.3.4.3-alpha ChangeLog
Nick Mathewson [Mon, 25 Jun 2018 20:52:14 +0000 (16:52 -0400)]
Include stdio.h in torerr.c.
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.
Nick Mathewson [Mon, 25 Jun 2018 18:07:23 +0000 (14:07 -0400)]
Bump to 0.3.4.3-alpha.
Nick Mathewson [Mon, 25 Jun 2018 17:50:37 +0000 (13:50 -0400)]
Merge branch 'maint-0.3.4'
Roger Dingledine [Sun, 24 Jun 2018 22:14:24 +0000 (18:14 -0400)]
better log line for debugging #26485
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
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.
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.
Nick Mathewson [Fri, 22 Jun 2018 18:11:37 +0000 (14:11 -0400)]
Make an inline static so we can build with coverage enabled.
Nick Mathewson [Fri, 22 Jun 2018 17:52:30 +0000 (13:52 -0400)]
Another windows include
Nick Mathewson [Fri, 22 Jun 2018 17:34:35 +0000 (13:34 -0400)]
We also need torerr in tm_cvt.
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
Nick Mathewson [Fri, 22 Jun 2018 17:32:47 +0000 (13:32 -0400)]
Remove an "m" that did not belong.
Nick Mathewson [Fri, 22 Jun 2018 17:25:52 +0000 (13:25 -0400)]
Update the micro-revision.i dependencies, and add a stdlib.h
Nick Mathewson [Fri, 22 Jun 2018 17:10:52 +0000 (13:10 -0400)]
Two more small changes for CI.
Nick Mathewson [Fri, 22 Jun 2018 16:53:57 +0000 (12:53 -0400)]
A pair of missing includes.
Nick Mathewson [Fri, 22 Jun 2018 16:04:11 +0000 (12:04 -0400)]
Fix up the rust build script library list.
Nick Mathewson [Fri, 22 Jun 2018 15:54:38 +0000 (11:54 -0400)]
Move util_bug into libtor-log
Nick Mathewson [Fri, 22 Jun 2018 15:51:58 +0000 (11:51 -0400)]
Remove util_bug dependency on compat.h
Nick Mathewson [Fri, 22 Jun 2018 15:46:44 +0000 (11:46 -0400)]
Update .gitignore and .may_include files
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.
Nick Mathewson [Fri, 22 Jun 2018 15:18:19 +0000 (11:18 -0400)]
Extract strlcpy and strlcmp to libtor-string
Nick Mathewson [Fri, 22 Jun 2018 15:07:10 +0000 (11:07 -0400)]
Extract core part of gmtime_r, localtime_r (without logging)
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.
Nick Mathewson [Fri, 22 Jun 2018 14:32:10 +0000 (10:32 -0400)]
Automated fixup of include paths after torlog.h movement.
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. :)
Nick Mathewson [Fri, 22 Jun 2018 13:48:24 +0000 (09:48 -0400)]
Extract simple integer math into its own module
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.
Nick Mathewson [Fri, 22 Jun 2018 13:23:30 +0000 (09:23 -0400)]
Extract key string manipulation functions into a new library.
Nick Mathewson [Fri, 22 Jun 2018 12:41:57 +0000 (08:41 -0400)]
Move ARRAY_LENGTH to compiler_compat.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
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
Nick Mathewson [Thu, 21 Jun 2018 21:06:58 +0000 (17:06 -0400)]
Update permissible includes
Nick Mathewson [Thu, 21 Jun 2018 21:03:45 +0000 (17:03 -0400)]
Expunge container.h
Nick Mathewson [Thu, 21 Jun 2018 21:00:48 +0000 (17:00 -0400)]
Extract smartlist.h from container.h
Nick Mathewson [Thu, 21 Jun 2018 20:52:58 +0000 (16:52 -0400)]
Remove map 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
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.
Nick Mathewson [Thu, 21 Jun 2018 20:29:24 +0000 (16:29 -0400)]
Move STRUCT_VAR_P to compat_compiler.
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.
Nick Mathewson [Thu, 21 Jun 2018 19:40:15 +0000 (15:40 -0400)]
Rectify include paths after container split (automatic)
Nick Mathewson [Thu, 21 Jun 2018 19:39:36 +0000 (15:39 -0400)]
Refactor container into a library.
Nick Mathewson [Thu, 21 Jun 2018 19:33:25 +0000 (15:33 -0400)]
Simplify include structure of container.[ch]
Nick Mathewson [Thu, 21 Jun 2018 19:17:54 +0000 (15:17 -0400)]
Extract tor_malloc and friends to a new module.
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
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.
Nick Mathewson [Thu, 21 Jun 2018 18:23:32 +0000 (14:23 -0400)]
Fix wide lines in dirauth/dirvote.*