| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | Add accessors for members of different directory requests | Nick Mathewson | 2021-04-01 | 1 | -3/+3 | |
| | | | | | | | | | This will let us use these types both as client and server-side implementations. Making this change required me to change the download code to take requests by reference. (Sorry, David) | |||||
| * | DirMgr: add text() and texts() functions to ask for document text | Nick Mathewson | 2021-03-31 | 5 | -29/+317 | |
| | | | | | | Also, start on a larger refactoring where we ask for documents by their ID. | |||||
| * | Refactor sqlite.rs to know about consensus flavors. | Nick Mathewson | 2021-03-31 | 2 | -27/+56 | |
| | | | | | | These were stored in the database before, but they were hardwired in the API. | |||||
| * | Use Arc::make_mut() to simplify the code a bit | Nick Mathewson | 2021-03-30 | 1 | -7/+11 | |
| | | | | | | Previously we used NetDir::extend here, which used try_unwrap. But it's much simpler to use the intended object for this purpose. | |||||
| * | Look for RdDigest in the right location | Nick Mathewson | 2021-03-30 | 1 | -1/+2 | |
| | | ||||||
| * | small tweaks to routerdesc storage code. | Nick Mathewson | 2021-03-30 | 1 | -48/+20 | |
| | | ||||||
| * | dirmgr: Add functions to store/read/update router descriptors | David Goulet | 2021-03-30 | 1 | -3/+131 | |
| | | | | | Signed-off-by: David Goulet <[email protected]> | |||||
| * | dirmgr: Add SQLite schema for router descriptors | David Goulet | 2021-03-30 | 1 | -9/+21 | |
| | | | | | Signed-off-by: David Goulet <[email protected]> | |||||
| * | Make reasonable set of default fallback directories | Nick Mathewson | 2021-03-30 | 3 | -4/+759 | |
| | | ||||||
| * | Give the authorities value a reasonable default. | Nick Mathewson | 2021-03-30 | 2 | -1/+36 | |
| | | ||||||
| * | Add a NetDirConfig::use_default_cache_path() function. | Nick Mathewson | 2021-03-30 | 1 | -0/+14 | |
| | | ||||||
| * | resolve a clippy issue | Nick Mathewson | 2021-03-30 | 1 | -1/+3 | |
| | | ||||||
| * | Declare a better default for DownloadScheduleConfig. | Nick Mathewson | 2021-03-30 | 2 | -3/+35 | |
| | | ||||||
| * | Fix Rust-1.51 clippy warnings about acronyms in camel case. | Nick Mathewson | 2021-03-29 | 4 | -22/+22 | |
| | | | | | This is painful, but we shouldn't have to do it again. | |||||
| * | Rename Rsa{Identity,Signature} to fix clippy warning. | Nick Mathewson | 2021-03-29 | 1 | -4/+4 | |
| | | ||||||
| * | DirMgr: cooperative multiprocess support. | Nick Mathewson | 2021-03-29 | 4 | -60/+170 | |
| | | | | | | | | | | | | | | | A directory manager can now launch or run in read-only or read-write mode, depending on whether it manages to acquire a lock on the filesystem. In read-write mode, it bootstraps and stores data into the database as usual. In read-only mode, it assumes that another process will be updating the database, and so it only loads it periodically, looking for new information. However, it also tries to acquire the lock itself, so it can enter read-write mode. | |||||
| * | Create a DirMgr::load_or_bootstrap_from_config. | Nick Mathewson | 2021-03-29 | 1 | -0/+16 | |
| | | ||||||
| * | Add support for a lockfile to control concurrent access to a dirmgr. | Nick Mathewson | 2021-03-29 | 2 | -11/+92 | |
| | | ||||||
| * | Add DirMgr::load_once. | Nick Mathewson | 2021-03-29 | 2 | -0/+29 | |
| | | | | | | This function loads a current bootstrapped directory from disk, if it can. | |||||
| * | Use the CircMgr in the DirMgr for all our downloading needs. | Nick Mathewson | 2021-03-29 | 2 | -25/+24 | |
| | | ||||||
| * | Make CircMgr an optional element of DirMgr. Not yet used. | Nick Mathewson | 2021-03-29 | 2 | -3/+18 | |
| | | ||||||
| * | Add a compatibility layer so we can upgrade rand_core. | Nick Mathewson | 2021-03-18 | 2 | -2/+2 | |
| | | | | | | | dalek-crypto is stuck on rand_core 0.5.1, so we've been stuck too. This commit introduces a compatibility module so that we can wrap new rand_core instances to make them backward compatible. | |||||
| * | Avoid unwrap() in dirmgr. | Nick Mathewson | 2021-03-04 | 2 | -3/+7 | |
| | | ||||||
| * | Avoid unwrap() in dirmgr | Nick Mathewson | 2021-03-04 | 2 | -11/+22 | |
| | | ||||||
| * | Make first-level directory retry logic configurable. | Nick Mathewson | 2021-02-17 | 3 | -20/+57 | |
| | | ||||||
| * | Make our initial bootstrap retry schedule configurarable | Nick Mathewson | 2021-02-17 | 4 | -11/+94 | |
| | | ||||||
| * | tor-dirmgr: simplify config.rs a bit. | Nick Mathewson | 2021-02-16 | 1 | -52/+14 | |
| | | ||||||
| * | Add support to override network parameters in the configuration. | Nick Mathewson | 2021-02-16 | 3 | -2/+24 | |
| | | ||||||
| * | Apply "deny_unknown_fields" to configuration types. | Nick Mathewson | 2021-02-12 | 2 | -0/+5 | |
| | | ||||||
| * | Remove fallback to .arti/cache for cache directory | Nick Mathewson | 2021-02-12 | 1 | -5/+1 | |
| | | ||||||
| * | Make authorities and fallbacks configurable. | Nick Mathewson | 2021-02-11 | 4 | -153/+44 | |
| | | | | | | | | | | | This commit adds configuration options for these values, with the right defaults, and uses those options instead of built-in functions to set them. We also remove the function to extract information from chutney directories: now that arti is configurable, it can be chutney's job to make its own network configurations. | |||||
| * | Check declared post-digest on consensus diffs. | Nick Mathewson | 2021-01-25 | 1 | -5/+6 | |
| | | ||||||
| * | Don't give up easily on initial bootstrap attempts. | Nick Mathewson | 2021-01-25 | 1 | -7/+14 | |
| | | ||||||
| * | Resolve a few more XXX-A1 comments in dirmgr. | Nick Mathewson | 2021-01-25 | 1 | -18/+29 | |
| | | ||||||
| * | Remove some not-necessary XXX-A1s in sqlite.rs | Nick Mathewson | 2021-01-25 | 1 | -3/+0 | |
| | | ||||||
| * | dirmgr: fix usage and meaning of `pending`. | Nick Mathewson | 2021-01-25 | 2 | -14/+34 | |
| | | | | | | The documentation and implementation diverged; the documentation was correct. | |||||
| * | Detect consensuses that are signed by the wrong authorities. | Nick Mathewson | 2021-01-25 | 3 | -13/+57 | |
| | | | | | | | | | | | | | With this patch we don't consider a consensus to be even potentially well-signed if the authorities that are listed as signing it don't contain enough authorities we believe in. Otherwise, we'd just try fetching certs for them and failing forever. (I found this by switching from a chutney network to the main network without cleaning out my cache.) Closes #44 | |||||
| * | dirmgr: Extra explanatory comments. | Nick Mathewson | 2021-01-25 | 1 | -3/+23 | |
| | | | | | Also replace some "disk" with "cache" in log messages | |||||
| * | dirmgr: Handle another error in download_mds(). | George Kadianakis | 2020-12-23 | 1 | -8/+12 | |
| | | | | | Co-authored-by: David Goulet <[email protected]> | |||||
| * | dirmgr: Handle some errors in download_mds(). | George Kadianakis | 2020-12-23 | 1 | -3/+8 | |
| | | | | | Co-authored-by: David Goulet <[email protected]> | |||||
| * | Fix a few clippy warnings | Nick Mathewson | 2020-12-17 | 1 | -2/+5 | |
| | | ||||||
| * | Download and use consensus diffs. | Nick Mathewson | 2020-12-17 | 2 | -18/+103 | |
| | | | | | | Had to refactor a few methods for database access, and fix a bug where we were storing valid_until times with the wrong information. | |||||
| * | dirmgr: Refactor so it has no unusable state. | Nick Mathewson | 2020-12-15 | 2 | -25/+57 | |
| | | | | | | | With this new API, if you have a DirMgr, it has a NetDir that was bootstrapped, and was live at least once during your program's execution. | |||||
| * | Add a "RetryError" to capture the idea of multiple failed attempts. | Nick Mathewson | 2020-12-12 | 1 | -16/+10 | |
| | | | | | | | When we try to do something a few times and it fails each time, it can be a good idea to remember why the individual failures happened. | |||||
| * | Document a problem on network transition | Nick Mathewson | 2020-12-08 | 1 | -0/+11 | |
| | | ||||||
| * | De-parameterize ChanMgr and everything that wraps it. | Nick Mathewson | 2020-12-08 | 2 | -77/+32 | |
| | | | | | | | | | | | | | | | This makes a whole lot of our code simpler, and makes it so that CircMgr and DirMgr no longer need to have anything parameterized over transports, either. Instead of boxing Transport inside of ChanMgr, I've made a new Connection trait that goes from a ChanTarget* straight to a Channel. This lets us avoid having to box the intermediate TLS object. [*] Actually, a copy of the information from a ChanTarget. Ick, but I had to make a copy to avoid parameterizing Connecter::build_channel. | |||||
| * | Fix a logic bug in the --chutney-dir option. | Nick Mathewson | 2020-12-07 | 1 | -4/+6 | |
| | | | | | | | | It was recording the dirport for each chutney authority as though it were an orport. That obviously won't work. Closes arti#45. | |||||
| * | Mark some XXXX issues as XXXX-A1. | Nick Mathewson | 2020-12-07 | 2 | -19/+22 | |
| | | ||||||
| * | Fix grammar in a log message | Nick Mathewson | 2020-12-07 | 1 | -1/+1 | |
| | | ||||||
| * | Add a few log messages about download timing. | Nick Mathewson | 2020-12-07 | 2 | -2/+12 | |
| | | ||||||
