aboutsummaryrefslogtreecommitdiff
path: root/src/lib
AgeCommit message (Collapse)Author
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-10Rename util_malloc to malloc.Nick Mathewson
2018-07-10Merge remote-tracking branch 'neel/fbsd-cfix'Nick Mathewson
2018-07-10Remove addr_port_lookup.Nick Mathewson
This lets us cut the dependency from address.c to resolve.c: the address.c module now has no paths to the libc resolver in it.
2018-07-10Remove all users of addr_port_lookup outside of address.cNick Mathewson
This function has a nasty API, since whether or not it invokes the resolver depends on whether one of its arguments is NULL. That's a good way for accidents to happen. This patch incidentally makes tor-resolve support socks hosts on IPv6.
2018-07-10Move tor_addr_{,port_}lookup to resolve.cNick Mathewson
2018-07-10Refactor ipv[46].[ch]Nick Mathewson
These are now combined into an inaddr.[ch], since their purpose is to implement functions for struct in_addr and struct in6_addr. The definitions for in6_addr and its allies are now in a separate header, inaddr_st.h. Closes ticket 26532.
2018-07-10Fix build on FreeBSD post-refactorNeel Chauhan
2018-07-10File-level summary documentation for src/lib/*/*.[ch]Nick Mathewson
2018-07-09Fix some lingering windows compilation issues from Jenkins.Nick Mathewson
These were caused by the recent refactoring.
2018-07-09strcasecmp should not take a size_t argumentNick Mathewson
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