summaryrefslogtreecommitdiff
path: root/src/lib
AgeCommit message (Collapse)Author
2021-04-08Merge remote-tracking branch 'tor-gitlab/mr/354'George Kadianakis
2021-04-08Merge branch 'maint-0.4.5'George Kadianakis
2021-04-08Merge remote-tracking branch 'tor-gitlab/mr/273'George Kadianakis
2021-03-26Fix glob processing on BSD systems. #40318Daniel Pinto
On Linux systems, glob automatically ignores the errors ENOENT and ENOTDIR because they are expected during glob expansion. But BSD systems do not ignore these, resulting in glob failing when globs expand to invalid paths. This is fixed by adding a custom error handler that ignores only these two errors and removing the GLOB_ERR flag as it makes glob fail even if the error handler ignores the error and is unnecessary as the error handler will make glob fail on all other errors anyway.
2021-03-24Avoid unused function warnings on libc's without GLOB_ALTDIRFUNC #40354Daniel Pinto
2021-03-12Run "make autostyle" in advance of new series.Nick Mathewson
2021-03-12Update copyrights to 2021, using "make update-copyright"Nick Mathewson
2021-03-10Merge branch 'maint-0.4.5'David Goulet
2021-03-03Fix parsing bug in linux get_total_system_memory().Nick Mathewson
Use find_str_at_start_of_line(), not strstr() here: we don't want to match "MemTotal: " if it appears in the middle of a line. Fixes #40315; bugfix on 0.2.5.4-alpha.
2021-03-01Correct documentation for lib_meminfo.mdNick Mathewson
2021-02-23Merge branch 'maint-0.4.5'David Goulet
2021-02-23Merge branch 'tor-gitlab/mr/326' into maint-0.4.5David Goulet
2021-02-23Remove mallinfo() from codebaseDavid Goulet
Now deprecated in libc >= 2.33 Closes #40309 Signed-off-by: David Goulet <dgoulet@torproject.org>
2021-02-22Merge remote-tracking branch 'tor-gitlab/mr/319'Nick Mathewson
2021-02-22relay: Reduce streaming compression ratio from HIGH to LOWDavid Goulet
Fixes #40301 Signed-off-by: David Goulet <dgoulet@torproject.org>
2021-01-28Merge branch 'maint-0.4.3' into maint-0.4.4David Goulet
2021-01-28Merge branch 'maint-0.3.5' into maint-0.4.3David Goulet
2021-01-28Merge branch 'tor-gitlab/mr/50' into maint-0.3.5David Goulet
2021-01-28Merge branch 'maint-0.4.3' into maint-0.4.4David Goulet
2021-01-28Merge branch 'maint-0.3.5' into maint-0.4.3David Goulet
2021-01-28Merge remote-tracking branch 'tor-gitlab/mr/186' into maint-0.3.5David Goulet
2021-01-22path: fix directory special caseHello71
2021-01-19Merge branch 'maint-0.4.5'Nick Mathewson
2021-01-19Merge branch 'maint-0.4.4' into maint-0.4.5Nick Mathewson
2021-01-19Merge branch 'maint-0.4.3' into maint-0.4.4Nick Mathewson
2021-01-19Merge branch 'maint-0.3.5' into maint-0.4.3Nick Mathewson
2021-01-13Better fix for #40241 (--enable-all-bugs-are-fatal and fallthrough)Nick Mathewson
This one should work on GCC _and_ on Clang. The previous version made Clang happier by not having unreachable "fallthrough" statements, but made GCC sad because GCC didn't think that the unconditional failures were really unconditional, and therefore _wanted_ a FALLTHROUGH. This patch adds a FALLTHROUGH_UNLESS_ALL_BUGS_ARE_FATAL macro that seems to please both GCC and Clang in this case: ordinarily it is a FALLTHROUGH, but when ALL_BUGS_ARE_FATAL is defined, it's an abort(). Fixes bug 40241 again. Bugfix on earlier fix for 40241, which was merged into maint-0.3.5 and forward, and released in 0.4.5.3-rc.
2020-12-18Merge remote-tracking branch 'tor-gitlab/mr/211'Alexander Færøy
2020-12-15Merge remote-tracking branch 'tor-gitlab/mr/205' into maint-0.4.5George Kadianakis
2020-12-15Merge remote-tracking branch 'tor-gitlab/mr/205'George Kadianakis
2020-12-08Avoid sandbox bug warning when unglobbing patterns #40094Daniel Pinto
Adds a more user-friendly error message when the configuration is reloaded and a new %include is added that makes its unglobbing access files/folders not allowed by the seccomp sandbox.
2020-12-08Fix a couple of documentation comments related to #40094Nick Mathewson
2020-11-30Use atomic ops to access lock_owner in WIN32 tor_mutex_t #17927Daniel Pinto
2020-11-16Merge remote-tracking branch 'tor-gitlab/mr/197' into masterNick Mathewson
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-12When handling includes, detect missing interned strings earlier.Nick Mathewson
There were three separate places where we were hitting a sandbox Bug warning before we actually exited. Fixes #40094; bugfix on 0.3.1.1-alpha when %includes were introduced.
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-06Rename OpenSSL_version_num() as defined in TorNick Mathewson
This way, if we guess wrong about whether the library has it, we don't conflict with the library's headers. Fixes #40181; bug not in any released version.
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>