aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2020-11-12Fake the current time when we're loading TEST_DESCRIPTORS.Nick Mathewson
Fixes bug 40187; bugfix on 0.4.5.1-alpha.
2020-11-12Merge remote-tracking branch 'tor-gitlab/mr/183' into masterNick Mathewson
2020-11-09Merge remote-tracking branch 'tor-gitlab/mr/192'Alexander Færøy
2020-11-09Merge remote-tracking branch 'tor-gitlab/mr/190'Alexander Færøy
2020-11-03Merge remote-tracking branch 'tor-gitlab/mr/185' into masterGeorge Kadianakis
2020-11-03Merge remote-tracking branch 'tor-gitlab/mr/187' into masterGeorge Kadianakis
2020-11-02Merge branch 'tor-gitlab/mr/186'David Goulet
2020-11-02Merge branch 'tor-gitlab/mr/188'David Goulet
2020-11-02or: Missing .inc file in include.amDavid Goulet
Fixes #40173 Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-11-02Fix another duplicate typedef.Nick Mathewson
Fixes #40177; bugfix on 0.4.5.1-alpha.
2020-11-01Update to 0.4.5.1-alpha-devNick Mathewson
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-30Bump version to 0.4.5.1-alphaNick Mathewson
2020-10-30Merge branch 'bug40080_035'Nick Mathewson
2020-10-30Merge remote-tracking branch 'tor-gitlab/mr/174' into masterGeorge Kadianakis
2020-10-28Fix duplicate typedef in metrics_store_entry.hNick Mathewson
Fixes #40171. Bug not in any released Tor.
2020-10-28Remove "GETINFO network-status".Nick Mathewson
It was deprecated 0.3.1.1-alpha. According to #22473, nothing uses it. Closes #22473.
2020-10-28Log a warning if Tor was built with any "risky" compile-time optionsNick Mathewson
These options are meant for testing builds only, and are likely to cause trouble if used in a production environment. Closes #18888.
2020-10-28Merge remote-tracking branch 'tor-gitlab/mr/171'Alexander Færøy
2020-10-28Fix a previously overstrict log message check.Nick Mathewson
OpenSSL doesn't seem to report error locations in the same way as before, which broke one of our tests. Fixes bug 40170; bugfix on 0.2.8.1-alpha.
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-28Revise fix for bug 32178 (spaces at end of log msg).Nick Mathewson
The loop in the earlier patch would invoke undefined behavior in two ways: First, it would check whether it was looking at a space before it checked whether the pointer was in-range. Second, it would let a pointer reach a position _before_ the start of a string, which is not allowed. I've removed the assertion about empty messages: empty messages can be their own warning IMO. I've also added tests for this formatting code, to make sure it actually works.
2020-10-28Removes trailing spaces in control event logAmadeusz Pawlik
2020-10-28test: Missing tor_free() in metrics unit testsDavid Goulet
Found by coverity: *** CID 1468664: Resource leaks (RESOURCE_LEAK) /src/test/test_metrics.c: 83 in test_config() 77 tt_int_op(ret, OP_EQ, false); 78 79 done: 80 SMARTLIST_FOREACH(ports, port_cfg_t *, c, port_cfg_free(c)); 81 smartlist_free(ports); 82 or_options_free(options); >>> CID 1468664: Resource leaks (RESOURCE_LEAK) >>> Variable "err_msg" going out of scope leaks the storage it points to. 83 } 84 85 static char _c_buf[256]; 86 #define CONTAINS(conn, msg) \ 87 do { \ 88 tt_int_op(buf_datalen(conn->outbuf), OP_EQ, (strlen(msg))); \ Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-10-27Avoid asserts with flagNeel Chauhan
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-27test: Add test for onion service metrics moduleDavid Goulet
Related to #40063 Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-10-27test: Metrics tests for lib/ and feature/David Goulet
Related to #40063 Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-10-27tests: Fix unit tests after adding new HS metrics moduleDavid Goulet
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-27hs: Collect introduction circuit metricsDavid Goulet
Tracks the total number of established introduction circuit. Related to #40063 Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-10-27hs: Collect rendezvous circuit metricsDavid Goulet
The total number of rendezvous circuit created and the number of established ones which is a gauge that decreases to keep an updated counter. Related to #40063 Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-10-27hs: Collect service traffic metricsDavid Goulet
Related to #40063 Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-10-27hs: Always note the virtual port in the identDavid Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-10-27hs: New metrics moduleDavid Goulet
At this commit, a new service registers to the module and a store is created. It also remove itself from the metrics module if it goes away. In order to hook into the metrics subsystem, this commit attaches the HS subsystem into the subsystem global list so its get_metrics() call can be accessible. HS initialization is still _not_ done through the subsys module as it is likely require much more testing. Related to #40063 Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-10-27conn: New Metrics listener portDavid Goulet
If MetricsPort is defined, listen on it and handle the incoming request. 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-27Merge branch 'tor-gitlab/mr/173'David Goulet
2020-10-27Merge branch 'tor-gitlab/mr/176'David Goulet
2020-10-26Merge branch 'maint-0.4.4'Nick Mathewson
2020-10-26Merge remote-tracking branch 'tor-gitlab/mr/169' into masterGeorge Kadianakis
2020-10-23Merge remote-tracking branch 'tor-gitlab/mr/127'Nick Mathewson
2020-10-23Update required/recommended protocol lists more systematicallyNick Mathewson
First I began with a set of candidates: The client's _required_ list starts with all the protocols supported by every release in 0.2.9-stable through current master. The client's _required_ list starts with all the protocols supported by every release in 0.3.5-stable through current master. Everybody's _recommended_ list starts with all the protocols supported by every release in 0.3.5-stable through current master. Then I removed the protocol versions that we do not actually want to require or recommend: DirCache=1 (deprecated) HSDir=1, HSIntro=1-3, HSRend=1 (deprecated) (All HS* protocol requirements for clients) Link=1-3 (deprecated) LinkAuth=1 (obsolete) Relay=1 (obsolete)
2020-10-23Merge branch 'combined_libs'Nick Mathewson
2020-10-22Turn ConsensusParams into a LinelistRoger Dingledine
Make it possible to specify multiple ConsensusParams torrc lines. Now directory authority operators can for example put the main ConsensusParams config in one torrc file and then add to it from a different torrc file. Closes ticket 40164.
2020-10-21main: Off by one when dumping subsystem listDavid Goulet
Fixes #40163 Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-10-21Allow mutiple lines on configuration for ROUTERSET entries. #28361Daniel Pinto
Affected entries are: EntryNodes, ExcludeNodes, ExcludeExitNodes, ExitNodes, MiddleNodes, HSLayer2Nodes and HSLayer3Nodes.