summaryrefslogtreecommitdiff
path: root/src/lib
AgeCommit message (Collapse)Author
2020-11-12Use SRWLocks to implement locking on Windows #17927Daniel Pinto
Replace the Windows locking implementation which used critical sections with the faster SRWLocks available since Vista.
2020-11-12Fix typos.Samanta Navarro
Typos found with codespell. Please keep in mind that this should have impact on actual code and must be carefully evaluated: src/core/or/lttng_circuit.inc - ctf_enum_value("CONTROLER", CIRCUIT_PURPOSE_CONTROLLER) + ctf_enum_value("CONTROLLER", CIRCUIT_PURPOSE_CONTROLLER)
2020-11-09Merge remote-tracking branch 'tor-gitlab/mr/190'Alexander Færøy
2020-11-02Merge branch 'tor-gitlab/mr/186'David Goulet
2020-11-02Fix another duplicate typedef.Nick Mathewson
Fixes #40177; bugfix on 0.4.5.1-alpha.
2020-11-01Implement WIN32 tor_cond_wait using condition variables #30187Daniel Pinto
Fix bug where running a relay on Windows would use 100% CPU after some time. Makes Windows >= Vista the required Windows version to build and run tor.
2020-10-28Fix duplicate typedef in metrics_store_entry.hNick Mathewson
Fixes #40171. Bug not in any released Tor.
2020-10-28Do not define OPENSSL_VERSION in compat_openssl.hNick Mathewson
Apparently it conflicts with definitions elsewhere in Openssl 3.0.0.
2020-10-28Include a more modest openssl header in crypto_openssl_mgt.hNick Mathewson
The "engines.h" header has lots of stuff; the "opensslv.h" header has the version number, which is all we actually need here. We need to do this because we're about to change this header to conditionally define OPENSSL_SUPPRESS_DEPRECATED, and it would be too late to do so if we'd already included "engines.h".
2020-10-27lib/metrics: Fix wrong macro expansionDavid Goulet
The "METRICS_PREFIX" was not expanded but rather used as a litteral. Fix that by just removing the define and using "tor_" directly. Reviewed-by: Alexander Færøy <ahf@torproject.org> Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-10-27metrics: Add tor_ namespace to all metricsDavid Goulet
Closes #40063 Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-10-27doc: Initial documentation of the lib/metricsDavid Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-10-27metrics: New feature module to track tor metricsDavid Goulet
Related to #40063 Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-10-27lib: New metrics libraryDavid Goulet
Used to provide an interface to create metrics store and update the entries. Related to #40063 Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-10-13Merge remote-tracking branch 'tor-gitlab/mr/161'Alexander Færøy
2020-10-07Merge remote-tracking branch 'tor-gitlab/mr/43' into maint-0.3.5Nick Mathewson
2020-10-03Fix %include bug with pattern with */ on glibc < 2.19 #40141Daniel Pinto
Fix bug where %including a pattern ending in */ would include files and folders (instead of folders only) in versions of glibc < 2.19.
2020-10-01fix typosRoger Dingledine
no actual changes
2020-09-23Remove support for old android "logcat" APINick Mathewson
This is apparently obsolete; syslog is modern instead. If users have an android log configured, given them a syslog if we can. Closes #32181.
2020-09-10Check if glob() is available at build-time.Alexander Færøy
This patch disables the glob() support in the path library if glob() is unavailable at build-time. This currently happens with the Android NDK used for Tor Browser. See: https://bugs.torproject.org/tpo/core/tor/40114
2020-08-25Merge remote-tracking branch 'tor-gitlab/mr/108'George Kadianakis
2020-08-14Revise trac.torproject.org urls to refer to gitlab replacements.Nick Mathewson
Closes #40101.
2020-08-12Use correct type for gl_closedir to avoid a compiler warningNick Mathewson
2020-08-12Merge remote-tracking branch 'tor-gitlab/mr/62'Nick Mathewson
2020-08-11Improved documentation and comments #25140Daniel Pinto
2020-08-11Merge branch 'maint-0.4.4'George Kadianakis
2020-08-11Merge remote-tracking branch 'tor-gitlab/mr/102' into maint-0.4.4George Kadianakis
2020-08-10small code tweaks to try to work around debian stable complaintsNick Mathewson
2020-08-05Merge remote-tracking branch 'tor-gitlab/mr/88'George Kadianakis
2020-08-04Improve ratelimit message to list true interval.Nick Mathewson
Previous message would say "N messages in the last T seconds", but would give an inaccurate number for N. We now give an accurate number, rounded up to the nearest 60 seconds. Closes #19431.
2020-08-03Add a tor_str_wipe_and_free() function.Nick Mathewson
Frequently we want to do if (s) { memwipe(s, 0, sizeof(s)); tor_free(s); } and it's good to have a way to do this concisely.
2020-07-30Merge branch 'bug40076_044'Nick Mathewson
2020-07-30Merge branch 'bug40076_043' into bug40076_044Nick Mathewson
2020-07-30Merge branch 'bug40076_042' into bug40076_043Nick Mathewson
2020-07-30Merge branch 'maint-0.4.2' into bug40076_042Nick Mathewson
2020-07-30Fix a bug in buf_move_all() when the input buffer is empty.Nick Mathewson
We found this in #40076, after we started using buf_move_all() in more places. Fixes bug #40076; bugfix on 0.3.3.1-alpha. As far as I know, the crash only affects master, but I think this warrants a backport, "just in case".
2020-07-30Introduce write_str_if_not_equal()Neel Chauhan
2020-07-29Merge branch 'maint-0.4.4'Nick Mathewson
2020-07-29Merge branch 'maint-0.4.2' into maint-0.4.3Nick Mathewson
2020-07-29Merge branch 'maint-0.3.5' into maint-0.4.2Nick Mathewson
2020-07-29Merge remote-tracking branch 'tor-gitlab/mr/68' into maint-0.4.4Nick Mathewson
2020-07-29Merge branch 'maint-0.4.4'Alexander Færøy
2020-07-29Merge remote-tracking branch 'tor-gitlab/mr/85' into maint-0.4.4Alexander Færøy
2020-07-29Merge branch 'tor-gitlab/mr/73_squashed'Alexander Færøy
2020-07-29Remove the connection_t.outbuf_flushlen fieldNick Mathewson
This was once used for rate-limiting, but now it's only for accounting. It hasn't served a useful purpose in a long time. Closes ticket 33097.
2020-07-29Fix startup crash with seccomp sandbox enabled #40072Daniel Pinto
Fix crash introduced in #40020. On startup, tor calls check_private_dir on the data and key directories. This function uses open instead of opendir on the received directory. Data and key directoryes are only opened here, so the seccomp rule added should be for open instead of opendir, despite the fact that they are directories.
2020-07-28Use _lseeki64() on windows.Nick Mathewson
Fixes bug 31036; bugfix on 0.2.1.8-alpha when we moved the logging system to use posix fds.
2020-07-23Merge branch 'remove-padding-fix-7869-v2'Nick Mathewson
2020-07-21Merge branch 'maint-0.4.4'Nick Mathewson
2020-07-21Merge remote-tracking branch 'tor-gitlab/mr/68' into maint-0.4.4Nick Mathewson