aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2019-11-04Doxygen: Avoid ambiguity in @dir directivesNick Mathewson
This commit was automatically generated with: find src -name '*.dox' |xargs perl -i -pe 's{\@dir ([^/])}{\@dir /$1};'
2019-11-04doxygen: Take "lib" descriptions from doc/HACKING/design.Nick Mathewson
This commit takes descriptions for src/lib and moves them into our doxygen hierarchy. I've covered everything from lib/cc through lib/sandbox here.
2019-11-04Remove spurious lib/stats doxygen file.Nick Mathewson
2019-11-04Document our top-level directoriesNick Mathewson
2019-11-04Add stub directory-level documentation for most source directoriesNick Mathewson
This includes app, core, feature, lib, and tools, but excludes ext, test, and trunnel. This was generated by the following shell script: cd src for dname in $(find lib core feature app tools -type d |grep -v \\.deps$); do keyword="$(echo "$dname" |sed -e "s/\//_/" )" target="${dname}/${keyword}.dox" echo "$target" cat <<EOF >"$target" /** @dir ${dname} @brief ${dname} **/ EOF git add "$target" done
2019-11-03Add a stub main page for the documentation.Nick Mathewson
2019-11-01Merge remote-tracking branch 'tor-github/pr/1480'Nick Mathewson
2019-10-31Merge branch 'tor-github/pr/1484'George Kadianakis
2019-10-31config: Improve some function commentsteor
2019-10-31config: Give warn_about_relative_paths() const argsteor
Also gives make_path_absolute() const args. Obviously correct fixes to already reviewed code.
2019-10-30Merge remote-tracking branch 'tor-github/pr/1485'Nick Mathewson
2019-10-30circ: Add an handle to circuit_tDavid Goulet
Closes #32343 Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-10-30Fix 32167: comment in config.cNick Mathewson
2019-10-31test: Fix a comment typo in src/test/test_hs_ntor.shteor
2019-10-31test: Fix a loop variable bug in test_parseconf.shteor
Obviously correct fixes to already reviewed code. No changes file required: not in any released version of tor.
2019-10-30hs-v2: Lookup intro failure cache when picking an intro from descriptorNeel Chauhan
When picking an intro point from the service descriptor, the client failed to lookup the failure cache. It made an HS v2 client re-pick bad intro points for which we already know it won't work in the first place. Based on Neel Chauhan original patch. Fixes #25568 Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-10-30fs: Clarify an ambiguous comment about string/pointer equalityteor
2019-10-29Merge branch 'tor-github/pr/1456'George Kadianakis
2019-10-29app/config: Fix a comment typo in config.cteor
The options validation is now a callback. Bugfix on 31241; not in any released version of tor.
2019-10-28ewma: Implement unit testsDavid Goulet
At this commit, 93.9% of line coverage and 95.5% of function coverage. Closes #32196 Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-10-28ewma: Move private struct into header private sectionDavid Goulet
Facilitate testing. Part of #32196. Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-10-28test: Implement unit tests for circuitmux.cDavid Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-10-28test: Add fakecircs.{h|c} helperDavid Goulet
Fake circuits are created everywhere in the unit tests. This is an attempt at centralizing a "fake circuit creation" API like fakechans.c does for channel. This commit introduces fakecircs.c and changes test_relay.c and test_circpadding.c which were using roughly the same code. This will allow easier OR circuit creation for the future tests in test_circuitmux.c Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-10-28test: Implement cmux allocate unit testDavid Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-10-28test: Remove circuitmux/destroy_cell_queue code duplicationDavid Goulet
This also rename a function to improve code clarity. Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-10-28test: Add testcase setup object for test_cmuxDavid Goulet
Also remove a scheduler_init() from a test and MOCK the appropriate function so the test can pass. This is done in order to minimize initialization functions in the unit test and try to only go through the testcase setup object. Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-10-28cmux: Move circuitmux_s object into header in private sectionDavid Goulet
Step needed in order to access members of the object for unit tests. Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-10-28core: Add missing include in destroy_cell_queue_st.hDavid Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-10-28nodelist: fix a comment typo in routerset.hteor
2019-10-28Merge branch 'tor-github/pr/1476'David Goulet
2019-10-28add missing docs in crypto_digest*Nick Mathewson
2019-10-26Documentation cleanup in confmacros.hNick Mathewson
2019-10-26Fix doxygen HTML warnings in src/feature.Nick Mathewson
2019-10-26doxygen: add @file declarations for src/feature/Nick Mathewson
If a file doesn't use the file command (either \file or @file), Doxygen won't try to process it.
2019-10-26doxygen: add @file declarations for src/appNick Mathewson
If a file doesn't use the file command (either \file or @file), Doxygen won't try to process it.
2019-10-26doxygen: add @file declarations for src/core/cryptoNick Mathewson
If a file doesn't use the file command (either \file or @file), Doxygen won't try to process it.
2019-10-26doxygen: add @file declarations for src/core/orNick Mathewson
If a file doesn't use the file command (either \file or @file), Doxygen won't try to process it.
2019-10-26doxygen: add @file declarations for src/core/mainloopNick Mathewson
If a file doesn't use the file command (either \file or @file), Doxygen won't try to process it.
2019-10-26doxygen: add @file declarations for src/core/protoNick Mathewson
If a file doesn't use the file command (either \file or @file), Doxygen won't try to process it. These declarations also turned up a doxygen warning for proto_socks.c; I fixed that too.
2019-10-26doxygen: add @file declarations for src/libNick Mathewson
If a file doesn't use the file command (either \file or @file), Doxygen won't try to process it. These declarations also turned up a doxygen warning for crypto_ope.c; I fixed that too.
2019-10-26Rename confparse.[ch] identifiers to confmgt.[ch] identifiers.Nick Mathewson
This is an automated commit, generated by this command: ./scripts/maint/rename_c_identifier.py \ confparse.h confmgt.h \ confparse.c confmgt.c \ CONFPARSE_PRIVATE CONFMGT_PRIVATE \ TOR_CONFPARSE_H TOR_CONFMGT_H
2019-10-26Rename confparse.[ch] to confmgt.[ch]Nick Mathewson
This will break compilation until includes etc are fixed.
2019-10-26Move config_format_t and allied definitions into conftypes.hNick Mathewson
Since these are needed by every module that is _configurable_, they belong in lib/conf, not lib/confmgt.
2019-10-25Merge branch 'ticket31241_v3'Nick Mathewson
2019-10-25config,state: check magic in all callbacks.Nick Mathewson
2019-10-25confparse: Add a function to check the magic of a toplevel object.Nick Mathewson
2019-10-25test: Use SEVERITY_MASK_IDX() to find the LOG_* mask indexesteor
In the unit tests. Fixes a regression to bug 31334; bug not in any released version of tor.
2019-10-25Merge remote-tracking branch 'tor-github/pr/1467'teor
2019-10-25Merge branch 'maint-0.4.2'teor
2019-10-24test_options: add a test for options_trial_assign()Nick Mathewson
This function is used by controllers to set options. I refactored it a bit when refactoring options validation, so it needs to get tested.