summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2020-01-09Merge branch 'pre_formatter_cleanups_squashed'Nick Mathewson
2020-01-09process.h: include stdbool.hNick Mathewson
We use bool, so we should include stdbool.
2020-01-09conscache.h: declare config_line_t structure.Nick Mathewson
This frees us from a dependency on include order.
2020-01-09Turn authdir_mode_v3() into a non-inline functionNick Mathewson
This change means that authmode.h no longer needs to see or_options_t, and frees us from an ordering dependency.
2020-01-09Include ht.h in all headers that use HT_ENTRY()Nick Mathewson
Without this change, compilation success depends on include order in several tricky ways.
2020-01-09consdiffmgr.h: use struct declarations for several typesNick Mathewson
This prevents a dependency on include order.
2020-01-09hs_circuitmap.h: use a struct declarationNick Mathewson
This fixes a case where our compilation would depend on include order.
2020-01-09routerparse.h: include parsecommon.h when exposing token table.Nick Mathewson
Without this include, our compilation depends more on include order.
2020-01-09process.h: add a struct declaration for buf_t.Nick Mathewson
This lets us avoid a dependency on include order.
2020-01-09timers.h: add declaration for timeval.Nick Mathewson
This frees us from some dependencies on include order.
2020-01-09lib/conf: include torint.h in files that use it.Nick Mathewson
This frees us from some dependencies on include order.
2020-01-09control_hs.h: use a couple of struct delcarationsNick Mathewson
Doing this frees us from some assumptions about include order.
2020-01-09connection.h: new includes and struct declarationsNick Mathewson
Using these frees us from several dependencies on include order.
2020-01-09siphash.h: include stdint.Nick Mathewson
Doing this gives us a valid uint64_t type, freeing us from dependencies on include order.
2020-01-09hs_circuit: use struct declaration.Nick Mathewson
This frees us from a dependency on include order.
2020-01-09or_options_st.h: Add an include and a struct declaration.Nick Mathewson
This frees us from some dependencies on include order.
2020-01-09Include x509.h in tortls_internal.h.Nick Mathewson
This gives us the definition of tor_x509_cert_impl_t, and makes us less dependent on include order.
2020-01-09Include sys/types.h in fdio.h, for "off_t".Nick Mathewson
Otherwise our compilation depends on include order.
2020-01-09Use raw_assert in ht.hNick Mathewson
Also, include torerr.h from ht.h if we are using raw_assert. Otherwise, our includes need to be ordered so that ht.h comes after util_log.h.
2020-01-09Remove extra ; from tt_assert() macro definition.Nick Mathewson
We were actually omitting the semicolon in a few places, leading to confusing indentation and some cocci failures.
2020-01-09Use new ENABLE/DISABLE_GCC_WARNINGNick Mathewson
This is an automated commit, generated by: perl -i -pe 'next if /define/; s/((?:ENABLE|DISABLE)_GCC_WARNING)\(([A-Za-z0-9_\-]+)\)/$1(\"-W$2\")/' src/*/*/*.[ch] src/*/*.[ch]
2020-01-09Replace DISABLE/ENABLE_GCC_WARNING with something that will confuse ↵Nick Mathewson
clang-format less
2020-01-08core/include.am: spelling fixNick Mathewson
2020-01-08It's 2020. Update the copyright dates with "make update-copyright"Nick Mathewson
2020-01-08Run "make autostyle"; add an endif commentNick Mathewson
2020-01-08router: Improve port search function commentsteor
2020-01-07speaking of utf-8, remove strange char from commentRoger Dingledine
2020-01-07Merge branch 'ticket32845_squashed'Nick Mathewson
2020-01-07string: Check UTF-8 string pointer and lengthteor
If they are inconsistent, output a raw bug log. Part of 32845.
2020-01-07Merge remote-tracking branch 'tor-github/pr/1640'Nick Mathewson
2020-01-07test_helpers: add a missing free for CID 1457527.Nick Mathewson
2020-01-07Add new state to connection_proxy_state_to_string()Nick Mathewson
Also, add a CTASSERT() to make sure that we don't let this array get out-of-sync again. Found by coverity; this is CID 1457528.
2020-01-07string: Add extra UTF-8 test casesteor
These test cases are validated differently by some programming languages, because those languages have incorrect UTF-8 implementations. We want to make sure that tor validates them correctly. Closes ticket 32845.
2020-01-06Space the a-d unsigned ints in tor_inet_aton()Neel Chauhan
2020-01-06Merge branch 'haxxpop/tcp_proxy_squashed' into tcp_proxy_squshed_and_mergedNick Mathewson
2020-01-06test: HTTP CONNECT protocolSuphanat Chunhapanya
2020-01-06test: HAPRoxy protocolSuphanat Chunhapanya
2020-01-06test: Implement haproxySuphanat Chunhapanya
2020-01-06circuit: Implement haproxySuphanat Chunhapanya
2020-01-06Merge remote-tracking branch 'tor-github/pr/1620'Nick Mathewson
2020-01-06Merge branch 'maint-0.4.2'Nick Mathewson
2020-01-06Merge remote-tracking branch 'tor-github/pr/1612' into maint-0.4.2Nick Mathewson
2020-01-06Merge branch 'maint-0.4.2'Nick Mathewson
2020-01-06Merge branch 'maint-0.4.1' into maint-0.4.2Nick Mathewson
2020-01-05Fix sandbox crash during reload of logging configurationPeter Gerber
Allow calls to dup() which was introduced in commit a22fbab986. From a security perspective, I don't think this should impact the security of the sandbox significantly. As far as I can tell, there is nothing an adversary can do with a duplicated FD that can't be done with the original.
2019-12-20Fix spacing in tor_sscanf() call in tor_inet_aton()Neel Chauhan
2019-12-20Fix spacing in tor_inet_aton() function headerNeel Chauhan
2019-12-20Merge branch 'bug29819_035'Nick Mathewson
2019-12-20Replace several C identifiers.teor
This is an automated commit, generated by this command: ./scripts/maint/rename_c_identifier.py \ EXPOSE_CLEAN_BACKTRACE BACKTRACE_PRIVATE \ TOR_CHANNEL_INTERNAL_ CHANNEL_OBJECT_PRIVATE \ CHANNEL_PRIVATE_ CHANNEL_FILE_PRIVATE \ EXPOSE_ROUTERDESC_TOKEN_TABLE ROUTERDESC_TOKEN_TABLE_PRIVATE \ SCHEDULER_PRIVATE_ SCHEDULER_PRIVATE
2019-12-20Code Style: Delete headers that are included twiceteor
These changes were created using the "make autostyle" from 32522, and then split into commits.