aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2018-07-05All remaining files in src/common belong to the event loop.Nick Mathewson
2018-07-05Move openbsd-malloc responsibility to lib/mallocNick Mathewson
(Note that this is not believed to work, but we may as well have it in the right place till we remove it)
2018-07-05Remove util.hNick Mathewson
Inline its contents (which were all includes) into or.h, and some of its contents into other places that didn't include or.h at all.
2018-07-05Move address_set to src/orNick Mathewson
This is temporary, until src/or is split. Putting this in containers would be another logical alternative, except that addresses depend on containers, and we don't like cycles.
2018-07-05Move socks5_status.h to src/lib/netNick Mathewson
There might be a better place for it in the long run, but this is the best I can think of for now.
2018-07-05Move handles.h to src/lib/containerNick Mathewson
There might be a better place for it in the long run, but this is the best we can think of for now.
2018-07-05Include compat_string.h in smartlist.cNick Mathewson
We need this for strcasecmp on (some) Windows build environments. Fix from Gisle Vanem.
2018-07-05Try to use stricmp variants that MSDN actually recommendsNick Mathewson
Per recommendation by Gisle Vanem
2018-07-03Merge branch 'maint-0.3.4'Nick Mathewson
2018-07-03Merge remote-tracking branch 'github/bug26568_034' into maint-0.3.4Nick Mathewson
2018-07-03Merge remote-tracking branch 'github/ticket26626'Nick Mathewson
2018-07-03Merge branch 'bug26522'Nick Mathewson
2018-07-03Refrain from potentially insecure usage of strncat()rl1987
2018-07-03Merge remote-tracking branch 'github/shrink_or_h_more'Nick Mathewson
2018-07-03Fix up some windows compilation issues.Nick Mathewson
These were mostly cases where our previous macros had been casting, and the values that we were trying to printf were not in fact uint64_t.
2018-07-03Retire U64_TO_DBL and DBL_TO_U64Nick Mathewson
These were necessary long ago to work around a bug in VC6.
2018-07-03Return U64_PRINTF_ARG and U64_FORMATNick Mathewson
The standard is printf("%"PRIu64, x);
2018-07-03Replace U64_LITERAL with the standard UINT64_CNick Mathewson
2018-07-03Retire some unused (or nearly unused) macros.Nick Mathewson
2018-07-03Use the standard SHRT_MAX name.Nick Mathewson
2018-07-03Clean up various things that broke with our stdint.h changesNick Mathewson
Casting before printf was necessary; now it's not so smart. We don't have SIZEOF_UINT8_T any more.
2018-07-03Require stdint.h and inttypes.hNick Mathewson
We've been silently requiring stdint.h for a while now, and nobody has complained. Closes ticket 26626.
2018-07-03Merge remote-tracking branch 'rl1987/ticket26527'Nick Mathewson
2018-07-03Merge branch 'maint-0.3.3' into maint-0.3.4Nick Mathewson
2018-07-03Merge branch 'maint-0.3.4'Nick Mathewson
2018-07-03Merge branch 'maint-0.3.2' into maint-0.3.3Nick Mathewson
2018-07-03Merge branch 'maint-0.2.9' into maint-0.3.2Nick Mathewson
2018-07-03Remove ATTR_NONNULL macrorl1987
2018-07-02Partially revert "Use tor_addr_from_getsockname() in several places"Nick Mathewson
This reverts part of commit 6ed384b827dce21ea3a44b587, in order to fix bug 26568. Bugfix on 0.3.4.1-alpha.
2018-07-02hs_ntor_ref.py: pass only strings to subprocess.PopenNick Mathewson
Recent Python3 versions seem to require this on Windows. Fixes bug 26535; bug copied from ntor_ref.py on 0.3.1.1-alpha.
2018-07-02ntor_ref.py: pass only strings to subprocess.PopenNick Mathewson
Recent Python3 versions seem to require this on Windows. Fixes bug 26535; bug introduced in f4be34f70d6f277a0f3f73e, which was apparently intended itself as a Python3 workaround.
2018-07-02Merge branch 'mikeperry_bug26214-rebased_squashed' into maint-0.3.4Nick Mathewson
2018-07-02Don't redefine str(n)casecmp on windows unless they're missingNick Mathewson
When we do redefine them, use inline functions instead of #define. This fixes a latent code problem in our redefinition of these functions, which was exposed by our refactoring: Previously, we would #define strcasecmp after string.h was included, so nothing bad would happen. But when we refactored, we would sometimes #define it first, which was a problem on mingw, whose headers contain (approximately): inline int strcasecmp (const char *a, const char *b) { return _stricmp(a,b); } Our define turned this into: inline int _stricmp(const char *a, const char *b) { return _stricmp(a,b); } And GCC would correctly infer that this function would loop forever, rather than actually comparing anything. This caused bug 26594. Fixes bug 26594; bug not in any released version of Tor.
2018-07-01File-level documentation for some of src/lib.Nick Mathewson
2018-07-01Prune the .may_include files a bit; detect unused lines in themNick Mathewson
2018-07-01fixup! Extract or_options_t from or.hNick Mathewson
2018-07-01fixup! Remove system headers from or.hNick Mathewson
2018-07-01Remove system headers from or.hNick Mathewson
2018-07-01Extract or_options_t from or.hNick Mathewson
I decided to have this file included from config.h, though, since it is used nearly everywhere.
2018-07-01Extract or_state_t to its own header.Nick Mathewson
Fewer modules needed this than I had expected.
2018-07-01Pull a couple more enums from or.hNick Mathewson
2018-07-01Move ext_or_cmd_t to proto_ext_orNick Mathewson
2018-07-01Extract more constants from or.hNick Mathewson
2018-07-01Extract addr_policy_t into a new header.Nick Mathewson
2018-07-01Extract various enums and tiny structs from or.hNick Mathewson
These all have a logical header to go in.
2018-07-01Minimize headers that include crypto_formats and x25519 stuffNick Mathewson
2018-07-01Remove other needless includes include from or/*.hNick Mathewson
2018-07-01Remove needless includes from or.hNick Mathewson
or.h should really include only the minimum of stuff from or/*, common/*, and lib/*.
2018-07-01Combine DH_BYTES and DH_KEY_LEN; put them in a lib/defs header.Nick Mathewson
2018-07-01Merge branch 'maint-0.3.3' into maint-0.3.4Nick Mathewson