Nick Mathewson
41bea71adc
Merge remote-tracking branch 'tor-gitlab/mr/197' into master
2020-11-16 22:43:09 -05:00
Samanta Navarro
4a0cd79588
Fix typos.
...
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-12 11:44:09 -05:00
Alexander Færøy
5e65a746aa
Merge remote-tracking branch 'tor-gitlab/mr/190'
2020-11-09 14:12:45 +00:00
Nick Mathewson
b22568a545
Rename OpenSSL_version_num() as defined in Tor
...
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-06 10:31:32 -05:00
David Goulet
474369e3fa
Merge branch 'tor-gitlab/mr/186'
2020-11-02 13:14:02 -05:00
Nick Mathewson
7a75a1064f
Fix another duplicate typedef.
...
Fixes #40177 ; bugfix on 0.4.5.1-alpha.
2020-11-02 07:15:10 -05:00
Daniel Pinto
f3b9be4422
Implement WIN32 tor_cond_wait using condition variables #30187
...
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-11-01 03:10:25 +00:00
Nick Mathewson
df16376004
Fix duplicate typedef in metrics_store_entry.h
...
Fixes #40171 . Bug not in any released Tor.
2020-10-28 16:36:14 -04:00
Nick Mathewson
2b4a3d07b2
Do not define OPENSSL_VERSION in compat_openssl.h
...
Apparently it conflicts with definitions elsewhere in Openssl 3.0.0.
2020-10-28 10:32:06 -04:00
Nick Mathewson
d9221968ce
Include a more modest openssl header in crypto_openssl_mgt.h
...
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-28 10:11:42 -04:00
David Goulet
362229f184
lib/metrics: Fix wrong macro expansion
...
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-27 13:00:20 -04:00
David Goulet
5de6673972
metrics: Add tor_ namespace to all metrics
...
Closes #40063
Signed-off-by: David Goulet <dgoulet@torproject.org >
2020-10-27 10:43:42 -04:00
David Goulet
1c06c9f1c0
doc: Initial documentation of the lib/metrics
...
Signed-off-by: David Goulet <dgoulet@torproject.org >
2020-10-27 10:43:42 -04:00
David Goulet
a882d1bf0a
metrics: New feature module to track tor metrics
...
Related to #40063
Signed-off-by: David Goulet <dgoulet@torproject.org >
2020-10-27 10:43:42 -04:00
David Goulet
ec731290a5
lib: New metrics library
...
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-27 10:43:42 -04:00
Alexander Færøy
78aa037c41
Merge remote-tracking branch 'tor-gitlab/mr/161'
2020-10-13 13:50:14 +00:00
Nick Mathewson
968b6c30c1
Merge remote-tracking branch 'tor-gitlab/mr/43' into maint-0.3.5
2020-10-07 08:09:59 -04:00
Daniel Pinto
304ae473ca
Fix %include bug with pattern with */ on glibc < 2.19 #40141
...
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-03 04:10:52 +01:00
Roger Dingledine
4f114f59e6
fix typos
...
no actual changes
2020-10-01 19:32:32 -04:00
Nick Mathewson
5c9b4a0060
Remove support for old android "logcat" API
...
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-23 12:33:58 -04:00
Alexander Færøy
1c4b140427
Check if glob() is available at build-time.
...
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-09-10 10:51:57 -04:00
George Kadianakis
4b9ed14d9b
Merge remote-tracking branch 'tor-gitlab/mr/108'
2020-08-25 15:02:04 +03:00
Nick Mathewson
563f8610fd
Revise trac.torproject.org urls to refer to gitlab replacements.
...
Closes #40101 .
2020-08-14 09:21:28 -04:00
Nick Mathewson
9ef991dbe3
Use correct type for gl_closedir to avoid a compiler warning
2020-08-12 14:42:30 -04:00
Nick Mathewson
e151442037
Merge remote-tracking branch 'tor-gitlab/mr/62'
2020-08-12 14:37:21 -04:00
Daniel Pinto
0b633b1f6d
Improved documentation and comments #25140
2020-08-11 18:26:41 +01:00
George Kadianakis
b8003fbe99
Merge branch 'maint-0.4.4'
2020-08-11 14:54:26 +03:00
George Kadianakis
ab9c35f043
Merge remote-tracking branch 'tor-gitlab/mr/102' into maint-0.4.4
2020-08-11 14:53:03 +03:00
Nick Mathewson
e873c7e893
small code tweaks to try to work around debian stable complaints
2020-08-10 19:20:05 -04:00
George Kadianakis
afd88ee87f
Merge remote-tracking branch 'tor-gitlab/mr/88'
2020-08-05 14:57:20 +03:00
Nick Mathewson
1d0695fe7e
Improve ratelimit message to list true interval.
...
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-04 13:56:28 -04:00
Nick Mathewson
5b9508c9a5
Add a tor_str_wipe_and_free() function.
...
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-08-03 10:11:03 -04:00
Nick Mathewson
4c810a6abe
Merge branch 'bug40076_044'
2020-07-30 14:35:06 -04:00
Nick Mathewson
b4400e2093
Merge branch 'bug40076_043' into bug40076_044
2020-07-30 14:28:11 -04:00
Nick Mathewson
69d7752937
Merge branch 'bug40076_042' into bug40076_043
2020-07-30 14:27:29 -04:00
Nick Mathewson
c2d5ec5e43
Merge branch 'maint-0.4.2' into bug40076_042
2020-07-30 14:27:29 -04:00
Nick Mathewson
c4742b89b2
Fix a bug in buf_move_all() when the input buffer is empty.
...
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-30 14:24:25 -04:00
Neel Chauhan
c212578bf0
Introduce write_str_if_not_equal()
2020-07-30 10:46:15 -04:00
Nick Mathewson
9164d7c75e
Merge branch 'maint-0.4.4'
2020-07-29 12:37:08 -04:00
Nick Mathewson
3b8bf743ae
Merge branch 'maint-0.4.2' into maint-0.4.3
2020-07-29 12:37:07 -04:00
Nick Mathewson
cdb0e6c252
Merge branch 'maint-0.3.5' into maint-0.4.2
2020-07-29 12:37:07 -04:00
Nick Mathewson
8c92d44622
Merge remote-tracking branch 'tor-gitlab/mr/68' into maint-0.4.4
2020-07-29 12:35:57 -04:00
Alexander Færøy
eba2870d18
Merge branch 'maint-0.4.4'
2020-07-29 13:58:14 +00:00
Alexander Færøy
8e690ce736
Merge remote-tracking branch 'tor-gitlab/mr/85' into maint-0.4.4
2020-07-29 13:57:47 +00:00
Alexander Færøy
109063185b
Merge branch 'tor-gitlab/mr/73_squashed'
2020-07-29 13:34:24 +00:00
Nick Mathewson
3cb9a9b8ce
Remove the connection_t.outbuf_flushlen field
...
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-29 13:33:35 +00:00
Daniel Pinto
eab8e7af52
Fix startup crash with seccomp sandbox enabled #40072
...
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-29 00:34:08 +01:00
Nick Mathewson
dcc60294ad
Use _lseeki64() on windows.
...
Fixes bug 31036; bugfix on 0.2.1.8-alpha when we moved the logging
system to use posix fds.
2020-07-28 11:30:47 -04:00
Nick Mathewson
b3112a6d26
Merge branch 'remove-padding-fix-7869-v2'
2020-07-23 08:26:44 -04:00
Nick Mathewson
7d0e64016e
Merge branch 'maint-0.4.4'
2020-07-21 09:29:13 -04:00