summaryrefslogtreecommitdiff
path: root/src/feature
AgeCommit message (Collapse)Author
2018-07-31Merge branch 'nss_dh_squashed' into nss_dh_squashed_mergedNick Mathewson
2018-07-30fix wrong word in commentRoger Dingledine
2018-07-30Merge remote-tracking branch 'teor/bug26627_033_merged_master'Nick Mathewson
2018-07-30Merge remote-tracking branch 'rl1987/ticket21349_4'Nick Mathewson
2018-07-30Merge remote-tracking branch 'juga/ticket3723_03_squashed_rebased'Nick Mathewson
2018-07-26Early bailout from log_addr_has_changed() if running as clientrl1987
2018-07-25Merge branch 'bug26627_033' into bug26627_033_merged_masterteor
2018-07-21Split select_entry_guard_for_circuit()rl1987
2018-07-21Make entry_guards_update_primary() shorterrl1987
2018-07-21Split sampled_guards_update_from_consensus() into subfunctionsrl1987
2018-07-20Tweak assertion in get_time_period_length() for coverityNick Mathewson
This is another attempt to fix 1437668. The assertion here should be safe, since the rules of networkstatus_get_param() keep the value it returns in range.
2018-07-20Merge branch 'maint-0.3.4'Nick Mathewson
2018-07-19Merge remote-tracking branch 'ahf-github/bugs/26780'Nick Mathewson
2018-07-18Add some missing includes and struct declarations.Nick Mathewson
2018-07-18Merge branch 'maint-0.3.4'Nick Mathewson
2018-07-17Merge branch 'bug25552_ope_squashed'Nick Mathewson
2018-07-16dirauth: Handle V3BandwidthsFile failure modes according to the new specteor
If an authority is not configured with a V3BandwidthsFile, this line SHOULD NOT appear in its vote. If an authority is configured with a V3BandwidthsFile, but parsing fails, this line SHOULD appear in its vote, but without any headers. Part of 3723, implements the spec in 26799.
2018-07-16Add keyval header, that was moved to other filejuga0
2018-07-16Ensure that bw_file_headers is not bigger than maxjuga0
2018-07-16Replace bwlist by bw_file and terminator conditionjuga0
If bandwidth file terminator is found, set end of headers flag and do not store the line. If it is not, parse a relay line and check whether it is a header line.
2018-07-16Replace bwlist by bw_filejuga0
and add bw file terminator constant
2018-07-16Rename bwlist to bw_file and banwidth tojuga0
bandwidth-file
2018-07-16Free bw_list_headers in networstatus_tjuga0
2018-07-16Add bw_file_headers to networkstatus_tjuga0
2018-07-16Check that the header is key_valuejuga0
to avoid interpreting as headers extra lines that are not key_values
2018-07-16Do not add bw file line to the votejuga0
when there are not bw file headers lines.
2018-07-16Add the Bandwidth List file headers to votesjuga0
* add bwlist_headers argument to dirserv_read_measured_bandwidth in order to store all the headers found when parsing the file * add bwlist_headers to networkstatus_t in order to store the the headers found by the previous function * include the bandwidth headers as string in vote documents * add test to check that dirserv_read_measured_bandwidth generates the bwlist_headers
2018-07-13Add checks in get_net_param_from_list() for valid output domain.Alexander Færøy
This patch adds two assertions in get_net_param_from_list() to ensure that the `res` value is correctly within the range of the output domain. Hopefully fixes Coverity CID #1415721, #1415722, and #1415723. See: https://bugs.torproject.org/26780
2018-07-11Rename crypto.c to crypto_cipher.c (since that's all it still has.)Nick Mathewson
2018-07-11Move the initialization and cleanup parts of crypto.cNick Mathewson
These are now part of crypto_init.c. The openssl-only parts now live in crypto_openssl_mgt.c. I recommend reviewing this patch with -b and --color-moved.
2018-07-10Merge branch 'ticket26223'Nick Mathewson
2018-07-10Explain why we use raw_free with getdelim result.Nick Mathewson
2018-07-10Rename torlog.[ch] to log.[ch]Nick Mathewson
Fun fact: these files used to be called log.[ch] until we ran into conflicts with systems having a log.h file. But now that we always include "lib/log/log.h", we should be fine.
2018-07-10Isolate resolve.h usage in the modules that really need it.Nick Mathewson
(Almost none of Tor should actually need to touch the platform resolver.)
2018-07-10Use tor_getline() in dirserv.c to remove its upper line limit.Nick Mathewson
Closes ticket 26223.
2018-07-10Refactor dirserv_read_measured_bandwidths to have a single exit pointNick Mathewson
2018-07-09Fix some lingering windows compilation issues from Jenkins.Nick Mathewson
These were caused by the recent refactoring.
2018-07-09Merge branch 'maint-0.3.4'Nick Mathewson
2018-07-09Changes file and comment for 25928.Nick Mathewson
2018-07-09Merge remote-tracking branch 'gsomlo/gls-single-da'Nick Mathewson
2018-07-05Whoops. Protover.[ch] belong in src/core/orNick Mathewson
2018-07-05Fix every include path changed in the previous commit (automated)Nick Mathewson
I am very glad to have written this script.
2018-07-05Move literally everything out of src/orNick Mathewson
This commit won't build yet -- it just puts everything in a slightly more logical place. The reasoning here is that "src/core" will hold the stuff that every (or nearly every) tor instance will need in order to do onion routing. Other features (including some necessary ones) will live in "src/feature". The "src/app" directory will hold the stuff needed to have Tor be an application you can actually run. This commit DOES NOT refactor the former contents of src/or into a logical set of acyclic libraries, or change any code at all. That will have to come in the future. We will continue to move things around and split them in the future, but I hope this lays a reasonable groundwork for doing so.