]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
6 years agoWith COCCI defined, avoid PERIODIC_EVENT.
Nick Mathewson [Wed, 9 Oct 2019 14:34:43 +0000 (10:34 -0400)] 
With COCCI defined, avoid PERIODIC_EVENT.

Coccinelle doesn't understand the particular pattern of token
pasting we have going on here.

6 years agoCOCCI: disable DOWLOAD_SCHEDULE macro
Nick Mathewson [Tue, 22 Oct 2019 13:31:31 +0000 (09:31 -0400)] 
COCCI: disable DOWLOAD_SCHEDULE macro

6 years agotor-coccinelle.h: add MOCK_DECL
Nick Mathewson [Wed, 9 Oct 2019 14:21:15 +0000 (10:21 -0400)] 
tor-coccinelle.h: add MOCK_DECL

6 years agotor-coccinelle.h: handle SLIST and LIST.
Nick Mathewson [Wed, 9 Oct 2019 14:19:58 +0000 (10:19 -0400)] 
tor-coccinelle.h: handle SLIST and LIST.

6 years agoWith coccinelle, avoid includes in the middle of an expression.
Nick Mathewson [Wed, 9 Oct 2019 14:16:08 +0000 (10:16 -0400)] 
With coccinelle, avoid includes in the middle of an expression.

6 years agoAdd a "COCCI" macro that we tell coccinelle is always defined.
Nick Mathewson [Wed, 9 Oct 2019 14:07:50 +0000 (10:07 -0400)] 
Add a "COCCI" macro that we tell coccinelle is always defined.

This will let us give specific in-file equivalents to given macros
or preprocessor directives, to make things parse.

6 years agotor-coccinelle.h: handle NS and NS_DECL.
Nick Mathewson [Wed, 9 Oct 2019 14:01:19 +0000 (10:01 -0400)] 
tor-coccinelle.h: handle NS and NS_DECL.

6 years agotor-coccinelle: handle SIMPLEQ and TAILQ better.
Nick Mathewson [Wed, 9 Oct 2019 13:58:42 +0000 (09:58 -0400)] 
tor-coccinelle: handle SIMPLEQ and TAILQ better.

6 years agotor-coccinelle.h: Add {EN,DIS}ABLE_GCC_WARNING.
Nick Mathewson [Wed, 9 Oct 2019 13:52:05 +0000 (09:52 -0400)] 
tor-coccinelle.h: Add {EN,DIS}ABLE_GCC_WARNING.

6 years agotor-coccinelle: expect parentheses after HT_INITIALIZER
Nick Mathewson [Wed, 9 Oct 2019 13:38:43 +0000 (09:38 -0400)] 
tor-coccinelle: expect parentheses after HT_INITIALIZER

6 years agoUse #warning instead of #warn: one is C and one isn't.
Nick Mathewson [Wed, 9 Oct 2019 13:37:21 +0000 (09:37 -0400)] 
Use #warning instead of #warn: one is C and one isn't.

6 years agotry_parse.sh: add a verbose mode and a meaningful exit code.
Nick Mathewson [Wed, 9 Oct 2019 13:31:10 +0000 (09:31 -0400)] 
try_parse.sh: add a verbose mode and a meaningful exit code.

6 years agodocument test-operator-cleanup
Nick Mathewson [Wed, 9 Oct 2019 13:27:48 +0000 (09:27 -0400)] 
document test-operator-cleanup

6 years agoDocument tor-coccinelle.h
Nick Mathewson [Wed, 9 Oct 2019 13:23:49 +0000 (09:23 -0400)] 
Document tor-coccinelle.h

6 years agoChanges file for coccinelle scripts
Nick Mathewson [Wed, 11 Sep 2019 22:50:43 +0000 (18:50 -0400)] 
Changes file for coccinelle scripts

6 years agoRun test_operator_cleanup on our unit tests
Nick Mathewson [Wed, 11 Sep 2019 22:47:19 +0000 (18:47 -0400)] 
Run test_operator_cleanup on our unit tests

Coccinelle doesn't understand it when we use "==" and "!=" and so on as
arguments to macros.  To solve this, we prefer OP_EQ, OP_NE, and so
on.

This commit is automatically generated by running
./scripts/coccinelle/test_operator_cleanup over all of the source
code in src.

6 years agoAdd some more of our trickier macros to tor-coccinelle.h
Nick Mathewson [Wed, 11 Sep 2019 22:45:52 +0000 (18:45 -0400)] 
Add some more of our trickier macros to tor-coccinelle.h

Note that this header file behaves a bit strangely.  It is used by
coccinelle just for the purpose of knowing how to parse
difficult-to-parse stuff.  It doesn't need to produce good C -- just
grammatical C.

6 years agoAdd a script to tell whether a file can be perfectly parsed by spatch
Nick Mathewson [Wed, 11 Sep 2019 22:44:10 +0000 (18:44 -0400)] 
Add a script to tell whether a file can be perfectly parsed by spatch

spatch can let us know whether a file has parsed "perfectly" or
not.  The more perfect it parses, the likelier any semantic patches
are to apply.  I've used this script to identify problem areas in
our code.

6 years agoAdd a script to run spatch with appropriate arguments
Nick Mathewson [Wed, 11 Sep 2019 22:43:16 +0000 (18:43 -0400)] 
Add a script to run spatch with appropriate arguments

It's a bit tricky to remember the right incantation to get the
proper include paths and incantations for coccinelle, but without
it, coccinelle is less effective at parsing our C.

6 years agoMerge branch 'tor-github/pr/1296'
David Goulet [Wed, 11 Sep 2019 13:42:31 +0000 (09:42 -0400)] 
Merge branch 'tor-github/pr/1296'

6 years agoDocument inconsistent usage of config_var_is_listable()
Nick Mathewson [Tue, 10 Sep 2019 14:29:34 +0000 (10:29 -0400)] 
Document inconsistent usage of config_var_is_listable()

See also ticket 31654.

6 years agoExtract common list of flags to use for obsolete variables.
Nick Mathewson [Tue, 10 Sep 2019 13:51:07 +0000 (09:51 -0400)] 
Extract common list of flags to use for obsolete variables.

6 years agoClarify documentation on config_var_is_listable()
Nick Mathewson [Tue, 10 Sep 2019 13:39:09 +0000 (09:39 -0400)] 
Clarify documentation on config_var_is_listable()

Here we make it clear we're only looking at listable variable names,
not at whether the variables themselves are gettable.

Also, remove an extraneous h.

(This commit is not a fixup, because of rebase conflicts.)

6 years agoAdd test_cmdline.sh to distribution.
Nick Mathewson [Thu, 5 Sep 2019 18:19:10 +0000 (14:19 -0400)] 
Add test_cmdline.sh to distribution.

6 years agointegration test for --list-torrc-options
Nick Mathewson [Thu, 5 Sep 2019 16:54:09 +0000 (12:54 -0400)] 
integration test for --list-torrc-options

(This option tests our existing behavior, not necessarily the most
sensible behavior.)

6 years agoTest: Make sure NOLIST options are not listed.
Nick Mathewson [Thu, 5 Sep 2019 16:29:24 +0000 (12:29 -0400)] 
Test: Make sure NOLIST options are not listed.

6 years agoChanges file for 31625 (config flag refactor)
Nick Mathewson [Thu, 5 Sep 2019 15:48:54 +0000 (11:48 -0400)] 
Changes file for 31625 (config flag refactor)

6 years agoRevise documentation on CFLG_* flags
Nick Mathewson [Thu, 5 Sep 2019 15:48:52 +0000 (11:48 -0400)] 
Revise documentation on CFLG_* flags

6 years agoRemove all CVFLAG_* usage.
Nick Mathewson [Thu, 5 Sep 2019 15:48:50 +0000 (11:48 -0400)] 
Remove all CVFLAG_* usage.

6 years agoRemove all VTFLAG_* usage.
Nick Mathewson [Thu, 5 Sep 2019 15:48:48 +0000 (11:48 -0400)] 
Remove all VTFLAG_* usage.

6 years agoconfparse, conftypes: Replace flags with their new names.
Nick Mathewson [Thu, 5 Sep 2019 15:48:46 +0000 (11:48 -0400)] 
confparse, conftypes: Replace flags with their new names.

The old names remain as #defines that cause variables to get one or
more flags.

Now every flag-testing function in confparse.c tests exactly one flag.

6 years agoReplace low-level {var_type,struct_var}_is_*() with flag inspection
Nick Mathewson [Thu, 5 Sep 2019 15:48:44 +0000 (11:48 -0400)] 
Replace low-level {var_type,struct_var}_is_*() with flag inspection

Since the flags are now stored with compatible numbering, we can
just OR them together and see whether the flag we want is in the
result.

(Net code removal!)

6 years agoRe-number VTFLAG_* values so they don't conflict with CVFLAG_*
Nick Mathewson [Thu, 5 Sep 2019 15:48:42 +0000 (11:48 -0400)] 
Re-number VTFLAG_* values so they don't conflict with CVFLAG_*

6 years agoMove VTFLAG_* declarations to conftypes.h
Nick Mathewson [Thu, 5 Sep 2019 15:48:40 +0000 (11:48 -0400)] 
Move VTFLAG_* declarations to conftypes.h

6 years agotyped_var: Make flags into an unsigned OR of bits.
Nick Mathewson [Thu, 5 Sep 2019 15:48:38 +0000 (11:48 -0400)] 
typed_var: Make flags into an unsigned OR of bits.

Using a bitfield here will enable us to unify the var_type_def_t flags
with the config_var_t flags.

(This commit does not yet do that unification, and does not yet
rename or refactor any flags.  It only changes booleans into bits.)

6 years agostruct_var: refactor struct_var_is*() functions to delegate
Nick Mathewson [Thu, 5 Sep 2019 15:48:36 +0000 (11:48 -0400)] 
struct_var: refactor struct_var_is*() functions to delegate

Previously they checked the individual flags inside var_type_def_t;
now they call the appropriate var_type_is_*() functions.

(These functions will be removed entirely by the end of this branch.)

6 years agoconfig: make config_var_is_dumpable static.
Nick Mathewson [Thu, 5 Sep 2019 15:48:34 +0000 (11:48 -0400)] 
config: make config_var_is_dumpable static.

6 years agoconfig: rename "contained" to "derived", and explain it better.
Nick Mathewson [Thu, 5 Sep 2019 15:48:32 +0000 (11:48 -0400)] 
config: rename "contained" to "derived", and explain it better.

Don't use "derived" directly, but check its implications for listing
and copying.

6 years agoconfig: Introduce the concept of an "ungettable" variable.
Nick Mathewson [Thu, 5 Sep 2019 15:48:29 +0000 (11:48 -0400)] 
config: Introduce the concept of an "ungettable" variable.

We had though to make all obsolete and invisible variables
ungettable, so that GETCONF would reject them.  But it turns out
that this isn't the current behavior of GETCONF with those
variables.  So for now, I'm leaving the current behavior unchanged.
(See ticket 31647 for a proposal to change the behavior.)

6 years agoDocument config_var_is_dumpable and config_var_is_settable.
Nick Mathewson [Thu, 5 Sep 2019 15:48:27 +0000 (11:48 -0400)] 
Document config_var_is_dumpable and config_var_is_settable.

6 years agoMerge branch 'tor-github/pr/1311'
David Goulet [Wed, 11 Sep 2019 13:36:28 +0000 (09:36 -0400)] 
Merge branch 'tor-github/pr/1311'

6 years agoMerge branch 'tor-github/pr/1307'
George Kadianakis [Wed, 11 Sep 2019 13:19:21 +0000 (16:19 +0300)] 
Merge branch 'tor-github/pr/1307'

6 years agoMerge branch 'ticket31578' into ticket31578_merged
Nick Mathewson [Wed, 11 Sep 2019 12:59:29 +0000 (08:59 -0400)] 
Merge branch 'ticket31578' into ticket31578_merged

6 years agomain: add some newlines to the subsystem list, for readability
teor [Mon, 9 Sep 2019 23:06:36 +0000 (09:06 +1000)] 
main: add some newlines to the subsystem list, for readability

6 years agomain: remove level number comments from the subsystem list (master)
teor [Mon, 9 Sep 2019 23:04:38 +0000 (09:04 +1000)] 
main: remove level number comments from the subsystem list (master)

Part of 31615.

6 years agoMerge branch 'bug31615_041' into bug31615_master
teor [Mon, 9 Sep 2019 23:03:37 +0000 (09:03 +1000)] 
Merge branch 'bug31615_041' into bug31615_master

Merged modified lines from bug31615_041, and unmodified lines
from master.

6 years agomain: remove level number comments from the subsystem list (0.4.1)
teor [Mon, 9 Sep 2019 22:44:35 +0000 (08:44 +1000)] 
main: remove level number comments from the subsystem list (0.4.1)

Part of 31615.

6 years agoMerge branch 'bug31615_040' into bug31615_041
teor [Mon, 9 Sep 2019 22:43:13 +0000 (08:43 +1000)] 
Merge branch 'bug31615_040' into bug31615_041

Merged modified lines from bug31615_040, and unmodified lines
from maint-0.4.1.

6 years agomain: remove level number comments from the subsystem list (0.4.0)
teor [Mon, 9 Sep 2019 22:35:56 +0000 (08:35 +1000)] 
main: remove level number comments from the subsystem list (0.4.0)

These levels get out of date really easily: we'll implement a level
dump command in tor in 31614.

They also cause conflicts and inconsistencies when merging forward
level changes.

Part of 31615.

6 years agobuild: The <sys/sysctl.h> is now deprecated on Linux
David Goulet [Mon, 9 Sep 2019 15:55:33 +0000 (11:55 -0400)] 
build: The <sys/sysctl.h> is now deprecated on Linux

Closes #31673

6 years agoMerge branch 'tor-github/pr/1264'
David Goulet [Mon, 9 Sep 2019 18:53:12 +0000 (14:53 -0400)] 
Merge branch 'tor-github/pr/1264'

6 years agoMerge branch 'ticket30924_042_04_squashed_merged'
Nick Mathewson [Mon, 9 Sep 2019 16:35:27 +0000 (12:35 -0400)] 
Merge branch 'ticket30924_042_04_squashed_merged'

6 years agoMerge branch 'ticket30924_042_04_squashed' into ticket30924_042_04_squashed_merged
Nick Mathewson [Mon, 9 Sep 2019 15:10:53 +0000 (11:10 -0400)] 
Merge branch 'ticket30924_042_04_squashed' into ticket30924_042_04_squashed_merged

6 years agohs-v3: Rename validation function in hs_intropoint.c
David Goulet [Tue, 20 Aug 2019 14:59:04 +0000 (10:59 -0400)] 
hs-v3: Rename validation function in hs_intropoint.c

Signed-off-by: David Goulet <dgoulet@torproject.org>
6 years agohs-v3: Move DoS parameter check against 0
David Goulet [Tue, 20 Aug 2019 14:50:31 +0000 (10:50 -0400)] 
hs-v3: Move DoS parameter check against 0

Move it outside of the validation function since 0 is a valid value but
disables defenses.

Signed-off-by: David Goulet <dgoulet@torproject.org>
6 years agopractracker: Make you happy funny script
David Goulet [Tue, 20 Aug 2019 13:53:29 +0000 (09:53 -0400)] 
practracker: Make you happy funny script

Signed-off-by: David Goulet <dgoulet@torproject.org>
6 years agoMerge branch 'tor-github/pr/1298'
David Goulet [Mon, 9 Sep 2019 15:05:51 +0000 (11:05 -0400)] 
Merge branch 'tor-github/pr/1298'

6 years agoMerge branch 'tor-github/pr/1287'
David Goulet [Mon, 9 Sep 2019 14:51:19 +0000 (10:51 -0400)] 
Merge branch 'tor-github/pr/1287'

6 years agosubsys: Make the subsystem init order match the module dependencies
teor [Wed, 4 Sep 2019 05:40:57 +0000 (15:40 +1000)] 
subsys: Make the subsystem init order match the module dependencies

Fix levels for subsystems that depend on log/err
* winprocess (security) doesn't use err:
  * call windows process security APIs as early as possible
  * init err after winprocess
  * move wallclock so it's still after err
* network and time depend on log:
  * make sure that network and time can use logging.
  * init network and time after log

Add comments explaining the module init order.

Fixes bug 31615; bugfix on 0.4.0.1-alpha.

6 years agochanges file for ticket31477
Nick Mathewson [Thu, 5 Sep 2019 20:20:31 +0000 (16:20 -0400)] 
changes file for ticket31477

6 years agoAdd new practracker test files to Makefile.am
Nick Mathewson [Mon, 26 Aug 2019 17:47:09 +0000 (13:47 -0400)] 
Add new practracker test files to Makefile.am

6 years agoNew practracker exceptions for dependency violations in headers
Nick Mathewson [Mon, 26 Aug 2019 16:33:44 +0000 (12:33 -0400)] 
New practracker exceptions for dependency violations in headers

I've done this manually, since I don't want to override the existing
exceptions in this branch.

6 years agoFix a bug in practracker's handling of .may_include in headers
Nick Mathewson [Mon, 26 Aug 2019 16:30:18 +0000 (12:30 -0400)] 
Fix a bug in practracker's handling of .may_include in headers

I was expecting our filter code to work in a way it didn't.  I
thought that saying that DependencyViolation applied to "*" would
hit all of the files -- but actually, "*" wasn't implemented.  I had
to say "*.c" and "*.h"

6 years agoRemove unused struct_var_* functions.
Nick Mathewson [Thu, 5 Sep 2019 19:24:54 +0000 (15:24 -0400)] 
Remove unused struct_var_* functions.

These turned out to be unnecessary, so let's not keep them around
and let them start getting complicated.

Closes ticket 31630.

6 years agoconfig: Invert sense of _is_invisible, and rename to is_listable()
Nick Mathewson [Thu, 5 Sep 2019 15:48:25 +0000 (11:48 -0400)] 
config: Invert sense of _is_invisible, and rename to is_listable()

6 years agoconfig: replace config_var_is_cumulative with is_replaced_on_set()
Nick Mathewson [Thu, 5 Sep 2019 15:48:23 +0000 (11:48 -0400)] 
config: replace config_var_is_cumulative with is_replaced_on_set()

This change replaces the higher-level property check to match our
intended flag factoring.

6 years agoMerge branch 'tor-github/pr/1295'
George Kadianakis [Thu, 5 Sep 2019 14:13:29 +0000 (17:13 +0300)] 
Merge branch 'tor-github/pr/1295'

6 years agoMerge branch 'tor-github/pr/1294'
George Kadianakis [Thu, 5 Sep 2019 14:12:19 +0000 (17:12 +0300)] 
Merge branch 'tor-github/pr/1294'

6 years agoMerge branch 'tor-github/pr/1293'
George Kadianakis [Thu, 5 Sep 2019 14:10:07 +0000 (17:10 +0300)] 
Merge branch 'tor-github/pr/1293'

6 years agoMerge branch 'tor-github/pr/1291'
George Kadianakis [Thu, 5 Sep 2019 14:09:20 +0000 (17:09 +0300)] 
Merge branch 'tor-github/pr/1291'

6 years agoMerge branch 'tor-github/pr/1292'
George Kadianakis [Thu, 5 Sep 2019 14:06:58 +0000 (17:06 +0300)] 
Merge branch 'tor-github/pr/1292'

6 years agoMerge branch 'tor-github/pr/1261'
George Kadianakis [Thu, 5 Sep 2019 14:02:53 +0000 (17:02 +0300)] 
Merge branch 'tor-github/pr/1261'

6 years agoAdd tests for IPv6 exit policies on microdescriptors
Neel Chauhan [Mon, 26 Aug 2019 02:32:07 +0000 (22:32 -0400)] 
Add tests for IPv6 exit policies on microdescriptors

6 years agoCheck IPv6 exit policies on microdescriptors in node_exit_policy_rejects_all()
Neel Chauhan [Mon, 26 Aug 2019 00:22:57 +0000 (20:22 -0400)] 
Check IPv6 exit policies on microdescriptors in node_exit_policy_rejects_all()

6 years agoconfig: note that some arguments are required.
Nick Mathewson [Thu, 5 Sep 2019 11:57:36 +0000 (07:57 -0400)] 
config: note that some arguments are required.

6 years agoMerge remote-tracking branch 'tor-github/pr/1278'
Nick Mathewson [Thu, 5 Sep 2019 11:41:58 +0000 (07:41 -0400)] 
Merge remote-tracking branch 'tor-github/pr/1278'

6 years agoMerge branch 'maint-0.4.1'
teor [Thu, 5 Sep 2019 04:48:09 +0000 (14:48 +1000)] 
Merge branch 'maint-0.4.1'

6 years agoMerge branch 'maint-0.4.0' into maint-0.4.1
teor [Thu, 5 Sep 2019 04:48:02 +0000 (14:48 +1000)] 
Merge branch 'maint-0.4.0' into maint-0.4.1

6 years agoMerge branch 'maint-0.3.5' into maint-0.4.0
teor [Thu, 5 Sep 2019 04:47:54 +0000 (14:47 +1000)] 
Merge branch 'maint-0.3.5' into maint-0.4.0

6 years agoMerge remote-tracking branch 'tor-github/pr/1271' into maint-0.3.5
teor [Thu, 5 Sep 2019 04:47:34 +0000 (14:47 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1271' into maint-0.3.5

6 years agoMerge branch 'maint-0.4.1'
teor [Thu, 5 Sep 2019 02:08:02 +0000 (12:08 +1000)] 
Merge branch 'maint-0.4.1'

Resolved modified/deleted conflict on changes/bug30649 by deleting
the file.

tor-github/pr/1282 modifies ChangeLog and ReleaseNotes instead of
changes/bug30649. We cherry-picked it to master, as well as merging
to release-0.4.1.

6 years agoMerge branch 'maint-0.4.0' into maint-0.4.1
teor [Thu, 5 Sep 2019 02:05:12 +0000 (12:05 +1000)] 
Merge branch 'maint-0.4.0' into maint-0.4.1

6 years agoMerge commit '73890a86ef' into maint-0.4.1
teor [Thu, 5 Sep 2019 01:52:52 +0000 (11:52 +1000)] 
Merge commit '73890a86ef' into maint-0.4.1

tor-github/pr/1283, with the following changes:
* cherry-pick the merge commit in 1283 on top of...
* tor-github/pr/1174, but with the last commit re-worded to remove
    the fixup, because fixups break our push rules.

This is an "ours" merge, except for the bugfix version change in
changes/bug30649.

6 years agoAdd #30649 to ReleaseNotes.
George Kadianakis [Tue, 3 Sep 2019 14:07:50 +0000 (17:07 +0300)] 
Add #30649 to ReleaseNotes.

6 years agoFix #30649 changelog entry.
George Kadianakis [Mon, 2 Sep 2019 08:46:22 +0000 (11:46 +0300)] 
Fix #30649 changelog entry.

6 years agoMerge branch 'bug30649_040' into bug30649_maint_041
George Kadianakis [Mon, 2 Sep 2019 08:58:01 +0000 (11:58 +0300)] 
Merge branch 'bug30649_040' into bug30649_maint_041

6 years agoFix bugfix version in Bug 30649: Changes file.
George Kadianakis [Mon, 2 Sep 2019 08:38:05 +0000 (11:38 +0300)] 
Fix bugfix version in Bug 30649: Changes file.

6 years agoMerge commit '763fd0ad66' into maint-0.4.0
teor [Thu, 5 Sep 2019 01:42:26 +0000 (11:42 +1000)] 
Merge commit '763fd0ad66' into maint-0.4.0

tor-github/pr/1174, but with the last commit re-worded to remove
the fixup, because fixups break our push rules.

6 years agoFix bugfix version in Bug 30649: Changes file.
George Kadianakis [Mon, 2 Sep 2019 08:38:05 +0000 (11:38 +0300)] 
Fix bugfix version in Bug 30649: Changes file.

6 years agoMakefile: include checkShellScripts.sh in EXTRA_DIST
teor [Fri, 30 Aug 2019 13:52:03 +0000 (23:52 +1000)] 
Makefile: include checkShellScripts.sh in EXTRA_DIST

Part of 30967.

6 years agochanges: file for 30967
teor [Fri, 30 Aug 2019 13:03:50 +0000 (23:03 +1000)] 
changes: file for 30967

6 years agoshellcheck: Add shellcheck to the pre-commit hook
teor [Fri, 30 Aug 2019 12:54:05 +0000 (22:54 +1000)] 
shellcheck: Add shellcheck to the pre-commit hook

* Move the shellcheck script from the Makefile to its own script file
* Reformat the shellcheck script so it's easier to read and modify
* Call the shellcheck script from the pre-commit hook

Fixes bug 30967; not in any released version of Tor.

6 years agoMakefile: Explicitly list the subdirectories that contain scripts
teor [Fri, 30 Aug 2019 12:25:14 +0000 (22:25 +1000)] 
Makefile: Explicitly list the subdirectories that contain scripts

Part of 30967.

6 years agoRemove _ex suffix from typed_var_*_ex() functions.
Nick Mathewson [Wed, 4 Sep 2019 18:58:56 +0000 (14:58 -0400)] 
Remove _ex suffix from typed_var_*_ex() functions.

Now that the variants of these functions that took config_line_t are
gone, there is no longer any reason for the remaining variants to
have "ex" at the end of their names.

This commit was made by running this perl script over all the files
in src/:

#!/usr/bin/perl -w -i -p

s{typed_var_(assign|free|encode|copy|eq|ok|kvassign|kvencode|mark_fragile)_ex}
 {typed_var_$1}g;

6 years agotypedvar: remove now-unused functions taking config_type_t.
Nick Mathewson [Wed, 4 Sep 2019 18:54:59 +0000 (14:54 -0400)] 
typedvar: remove now-unused functions taking config_type_t.

These functions are no longer used.

Part of 31629.

6 years agoDocument fields of struct_magic_decl_t.
Nick Mathewson [Wed, 4 Sep 2019 18:03:38 +0000 (14:03 -0400)] 
Document fields of struct_magic_decl_t.

6 years agoDocument warn_deprecated_option().
Nick Mathewson [Wed, 4 Sep 2019 18:01:43 +0000 (14:01 -0400)] 
Document warn_deprecated_option().

6 years agoDocument return value of config_mgr_add_format().
Nick Mathewson [Wed, 4 Sep 2019 18:01:32 +0000 (14:01 -0400)] 
Document return value of config_mgr_add_format().

6 years agoDocument validate_fn_t as it stands.
Nick Mathewson [Wed, 4 Sep 2019 17:54:26 +0000 (13:54 -0400)] 
Document validate_fn_t as it stands.

Also document that it will be changed in a later branch.

6 years agoconfig_assign: Document CAL_* options.
Nick Mathewson [Wed, 4 Sep 2019 17:48:16 +0000 (13:48 -0400)] 
config_assign: Document CAL_* options.

These were sort of described in config_assign() documentation, but
not so well.