aboutsummaryrefslogtreecommitdiff
path: root/src/lib
AgeCommit message (Collapse)Author
2018-07-09Merge remote-tracking branch 'rl1987/bug26525'Nick Mathewson
2018-07-09Make Tor compile with --disable-memory-sentinels againNick Mathewson
2018-07-05Fix up .may_includes for evloop.Nick Mathewson
2018-07-05Clean up include paths for libtor-evloop (automated)Nick Mathewson
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-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 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-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-03Rename sandbox_getaddrinfo() et. al.rl1987
2018-07-03Remove ATTR_NONNULL macrorl1987
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-01Minimize headers that include crypto_formats and x25519 stuffNick 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-01Tabify all of the .am files.Nick Mathewson
2018-06-29add an include to fix macos, and probably bsd tooNick Mathewson
2018-06-29Remove non-windows system includes from compat.h and util.hNick Mathewson
2018-06-29Move SIO_IDEAL_SEND_BACKLOG_QUERY into socket.hNick Mathewson
2018-06-29Remove an errant (and unused) include permission in lib/tlsNick Mathewson
2018-06-29Extract getpass to a new lib/term libraryNick Mathewson
(Term is short for terminal)
2018-06-29Extract get_uname to lib/osinfo.Nick Mathewson
2018-06-29Move SUBTYPE_P into compat_compiler.hNick Mathewson
2018-06-29Move bool_eq and bool_neq to lib/intmathNick Mathewson
2018-06-29Move fd and memory-info functions.Nick Mathewson
2018-06-29Move tor_get_avail_disk_space() to lib/fsNick Mathewson
2018-06-28Merge remote-tracking branch 'catalyst-github/fix-macos-includes'Nick Mathewson
2018-06-28Fix macOS includesTaylor Yu
Recent code movement from refactoring missed some includes that seem to be necessary on macOS.
2018-06-28Fix a bogus n in a commentNick Mathewson
2018-06-28A couple of includes to make windows compile againNick Mathewson
2018-06-28Move buffers into containerNick Mathewson
Split the network-only and compression-only parts of buffers into the appropriate modules.
2018-06-28Add sys/capability.h and sys/prctl.h includes in setuid.cNick Mathewson
2018-06-28compat_threads.c needs string.h for memset.Nick Mathewson
2018-06-28Remove all include common/ uses in crypto_ops and tls.Nick Mathewson
2018-06-28Fix windows compilation in compat_timeNick Mathewson
We need to use lib/fs/winlib.h here so that we can use GetTickCount64. I would love to declare that XP is dead, and everybody has GetTickCount64.
2018-06-28Use tor_ntohs in compress.c; avoid a winsocks dependencyNick Mathewson