summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2019-11-11doxygen: use <tt> and # to avoid interpreting # as a link.Nick Mathewson
2019-11-11Merge branch 'maint-0.4.2'Nick Mathewson
2019-11-11Merge branch 'maint-0.4.1' into maint-0.4.2Nick Mathewson
2019-11-11Merge branch 'maint-0.4.0' into maint-0.4.1Nick Mathewson
2019-11-11Merge branch 'maint-0.3.5' into maint-0.4.0Nick Mathewson
2019-11-11Merge branch 'maint-0.2.9' into maint-0.3.5Nick Mathewson
2019-11-09Update geoip and geoip6 to the November 6 2019 database.Karsten Loesing
2019-11-07Merge branch 'config_subsys_v4'Nick Mathewson
2019-11-07Fix various doxygen comments in feature/hs.Nick Mathewson
2019-11-07Adjustments to 32406 per reviewNick Mathewson
When we are failing because of a lack of a _required_ engine, note that the engine was "required". When engines are disabled, any required engine should cause a failure.
2019-11-07Add a test for 32406 (AccelName with "!").Nick Mathewson
This also lets us test a failing set_options().
2019-11-07Add the ability to fail when a hardware accelerator is missing.Nick Mathewson
Closes ticket 32406.
2019-11-07conf_examples test for crypto_accelNick Mathewson
2019-11-07Move netstatus (mainloop) state fields into mainloop's state.Nick Mathewson
2019-11-07subsysmgr: use IDX_NONE is an exception value, not -1.Nick Mathewson
2019-11-07Stop using "config_suite_offset=-1" to indicate "no config suite."Nick Mathewson
Instead, create a separate "has_config_suite" boolean, so that only top-level formats with config_suites need to declare an offset at all.
2019-11-07crypto config: do not change the user's value of HardwareAccel.Nick Mathewson
We still interpret "AccelName" as turning on the "HardwareAccel" feature, but we no longer modify the user's options here. Fixes bug 32382; bugfix on 0.2.2.1-alpha when we added openssl engine support.
2019-11-07Use new configuration architecture for crypto optionsNick Mathewson
This is a comparatively simple change.
2019-11-07Add testing-only functions to get the subsystem config/state indicesNick Mathewson
2019-11-07Add subsys functions for receiving/flushing states and options.Nick Mathewson
These functions are in the subsystem, not in the config_format_t, since they are about how the format is _used_, not about _what it is_.
2019-11-07Give subsystems optional config formats and state formats.Nick Mathewson
The formats, when provided, are now added to the global config_mgr_t objects.
2019-11-07Make a new structure for tracking subsystem status.Nick Mathewson
We used to have only one boolean per subsystem, but we're about to have a little more information.
2019-11-07Expose get_obj() functions from confmgt.c.Nick Mathewson
The subsysmgr code wants to use them.
2019-11-07Define a low-level version of the confdecl table macrosNick Mathewson
This version uses the enum rather than the type definitions, to avoid layering violations and linking problems.
2019-11-07Add FOO_type_defn globals so that confdecl.h can refer to them.Nick Mathewson
2019-11-07Macros for declaring configuration structs and variable-tablesNick Mathewson
In our old design, we had to declare configuration structures (like or_options_t) and variable tables (like option_vars_) separately, and we used some magic to enforce their consistency (see conftesting.h). With this design, we write a single definition for the configuration object and its fields, and use C macros to expand it either into a structure, or a variable table. Since they are both made from the same source, they can't become inconsistent. The two designs can coexist happily, and we can migrate from one to the other at our convenience.
2019-11-07lib/cc: Define the standard C macro pasting trick in one place.Nick Mathewson
This file is a workaround for the issue that if you say `a ## b` to create a token that is the name of a macro, the C preprocessor won't expand that macro. So you can't say this: #define FOO__SQUARE(x) ((x)*(x)) #define FOO__CUBE(x) ((x)*(x)*(x)) #define FOO(func, x) FOO__##func(x) Instead, the standard C trick is to add a layer of indirection: #define PASTE(a,b) PASTE__(a,b) #define PASTE__(a,b) a ## b #define FOO__SQUARE(x) ((x)*(x)) #define FOO__CUBE(x) ((x)*(x)*(x)) #define FOO(func, x) PASTE(FOO__, func)(x) We should use this kind of trick sparingly, since it gets confusing.
2019-11-07test/parseconf: Update config parsing tests for 32410teor
2019-11-07relay: Stop failing on startup when the relay module is disabledteor
When the relay module is disabled, make "ClientOnly 1" and "DirCache 0" by default. (But keep "ClientOnly 0" and "DirCache 1" as the defaults for the unit tests.) And run "make autostyle". Part of ticket 32410.
2019-11-07Run "make autostyle"teor
2019-11-07Merge branch 'maint-0.4.2'teor
2019-11-07Merge remote-tracking branch 'tor-github/pr/1513' into maint-0.4.2teor
2019-11-07Merge remote-tracking branch 'tor-github/pr/1512'teor
2019-11-06Add a bunch of doxygen for things in src/lib.Nick Mathewson
2019-11-06entrynodes.h: make a comment into doxygen.Nick Mathewson
2019-11-06int_type_params_t: add documentation.Nick Mathewson
2019-11-06dispatch_cfg_st.h: make comments into doxygen.Nick Mathewson
2019-11-06hs_ident.c: make comments into doxygen.Nick Mathewson
2019-11-06hs_ident.h: make comments into doxygen.Nick Mathewson
2019-11-06Add missing **/ to core_or.doxNick Mathewson
2019-11-06Turn the "dataflow" document into a doxygen page.Nick Mathewson
2019-11-06Do not try to shut down the event loop when it is not initialized.Nick Mathewson
Doing so caused us to crash in some unusual circumstances, such as using --verify-config to verify a configuration that failed during the options_act() stage. Fixes bug 32407; bugfix on 0.3.3.1-alpha.
2019-11-06Merge branch 'tor-github/pr/1491'David Goulet
2019-11-06OwningControllerFD should be immutable, not OwningControllerProcess.Nick Mathewson
This is a mistake I made when marking options as immutable. Fixes bug 32399. Bug not in any released Tor.
2019-11-06test: Fix DoS heartbeat unit test after adding INTRO2David Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-11-06test/parseconf: Add support for optional library variantsteor
test_parseconf.sh now supports: * {error,expected}{,_lzma,_nss,_zstd}{,_no_dirauth,_no_relay_dirauth} Or any combination of two or more optional libraries. Closes ticket 32397.
2019-11-06shellcheck: Fix minor issues in some scriptsteor
Fix minor issues in git-push-all.sh, git-setup-dirs.sh and test_parseconf.sh. Fixes bug 32402; not in any released version of tor. Obviously correct changes to already reviewed code.
2019-11-06Merge branch 'maint-0.4.0' into maint-0.4.1teor
2019-11-06Merge branch 'maint-0.3.5' into maint-0.4.0teor
2019-11-06Merge branch 'maint-0.2.9' into maint-0.3.5teor