summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | circmgr: Add missing rng trait to build_path()David Goulet2021-04-091-1/+4
|/ | | | Signed-off-by: David Goulet <[email protected]>
* rtcompat: Add a cancellable-task-handle type.Nick Mathewson2021-04-092-4/+24
| | | | | | | The API is a bit yucky, since it has to be compatible with tokio and async_std. (Also, this patch fixes some async_std clippy warnings)
* Merge branch 'mr_28_squashed'Nick Mathewson2021-04-073-0/+31
|\
| * circmgr: Add a function to build a circuit by pathDavid Goulet2021-04-073-0/+31
|/ | | | | | | Public function so an application can use to build a circuit using a custom path. Signed-off-by: David Goulet <[email protected]>
* Upgrade rsa, zstd, httpdate. Remove redundant pin-project.Nick Mathewson2021-04-054-4/+3
|
* Remove a few unused dependenciesNick Mathewson2021-04-053-3/+0
|
* Upgrade rusqlite; remove needless usage.Nick Mathewson2021-04-054-29/+16
|
* DirMgr::netdir() is no longer asyncNick Mathewson2021-04-023-13/+10
| | | | | | | | Since we moved to a non-async mutex(*), we no longer need to worry that this function might need to suspend. (*) This is _not_ safe in general, but it's okay in this case, since we never suspend while holding that mutex: see shared_ref.rs.
* missing file.Nick Mathewson2021-04-021-0/+78
|
* Turn the shared network directory reference into its own typeNick Mathewson2021-04-021-27/+13
| | | | | | Doing this will make it easier to use it from other parts of the crate, and will make it more obvious that it's safe to use a regular (not async) rwlock here.
* Merge branch 'hs3_ntor_squashed'Nick Mathewson2021-04-023-0/+533
|\
| * hs_ntor: add a disclaimer and put it behind a feature.Nick Mathewson2021-04-023-0/+12
| |
| * First draft of HS Ntor implementation.George Kadianakis2021-04-022-0/+521
| |
* | Fix a rust 1.51 warning: remove a semicolonNick Mathewson2021-04-021-1/+1
| |
* | Make ConsensusRequest take a flavor.Nick Mathewson2021-04-012-10/+15
| |
* | Add accessors for members of different directory requestsNick Mathewson2021-04-013-38/+66
| | | | | | | | | | | | | | | | 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)
* | Rename ClientRequest to Requestable.Nick Mathewson2021-04-012-8/+8
|/
* DirMgr: add text() and texts() functions to ask for document textNick Mathewson2021-03-317-32/+320
| | | | | Also, start on a larger refactoring where we ask for documents by their ID.
* Note redundancy in authority and fallback toml files.Nick Mathewson2021-03-312-0/+8
|
* Refactor sqlite.rs to know about consensus flavors.Nick Mathewson2021-03-312-27/+56
| | | | | These were stored in the database before, but they were hardwired in the API.
* Make ConsensusFlavor a real type.Nick Mathewson2021-03-312-27/+58
| | | | Previously we were "stringly typing" this field. Now it's time to stop.
* Use Arc::make_mut() to simplify the code a bitNick Mathewson2021-03-302-26/+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 locationNick Mathewson2021-03-301-1/+2
|
* Merge branch 'sd-storage'Nick Mathewson2021-03-301-12/+124
|\
| * small tweaks to routerdesc storage code.Nick Mathewson2021-03-301-48/+20
| |
| * dirmgr: Add functions to store/read/update router descriptorsDavid Goulet2021-03-301-3/+131
| | | | | | | | Signed-off-by: David Goulet <[email protected]>
| * dirmgr: Add SQLite schema for router descriptorsDavid Goulet2021-03-301-9/+21
| | | | | | | | Signed-off-by: David Goulet <[email protected]>
* | Rename ServerDescriptorRequest to RouterDescRequestNick Mathewson2021-03-301-7/+7
| | | | | | | | | | Rationale: the name of the request should match the name of the type that you parse from it.
* | ServerDescriptorRequest: handle "all.z" case differentlyNick Mathewson2021-03-301-7/+25
| | | | | | | | | | | | Having "no descriptors" mean "all of them" is kind of an accident waiting to happen, and had wrong behavior for partial_docs_ok() and max_response_len().
* | fix clippy warnings in request.rsNick Mathewson2021-03-301-5/+2
| |
* | Move RdDigest to routerdesc.rsNick Mathewson2021-03-304-8/+5
| |
* | dir: Add server descriptor directory requestDavid Goulet2021-03-302-0/+63
|/ | | | Signed-off-by: David Goulet <[email protected]>
* rs: Add getters to router status objectsDavid Goulet2021-03-301-0/+12
| | | | Signed-off-by: David Goulet <[email protected]>
* Client: Add a function to expose the current dirmgr.Nick Mathewson2021-03-302-0/+10
| | | | | | | | This function sits behind an `experimental-api` feature so that we don't need to worry about exposing the entire surface of DirMgr to our API consumers. This and the other recent patches are based on work from dgoulet.
* Experimental accessor functions for Relay members.Nick Mathewson2021-03-302-0/+30
|
* Make RouterFlags public.Nick Mathewson2021-03-301-4/+11
|
* Tell .gitignore to ignore more "target" directories.Nick Mathewson2021-03-301-1/+3
|
* Add an accessor for the members of a relay family.Nick Mathewson2021-03-301-0/+6
|
* Make reasonable set of default fallback directoriesNick Mathewson2021-03-305-9/+761
|
* Give the authorities value a reasonable default.Nick Mathewson2021-03-302-1/+36
|
* Add a NetDirConfig::use_default_cache_path() function.Nick Mathewson2021-03-302-1/+16
|
* resolve a clippy issueNick Mathewson2021-03-301-1/+3
|
* Declare a better default for DownloadScheduleConfig.Nick Mathewson2021-03-302-3/+35
|
* Add a missing member documentationNick Mathewson2021-03-301-0/+8
|
* Add a fuzzer for NsConsensus documentsNick Mathewson2021-03-302-0/+15
|
* Add a test case for NS consensus parsing.Nick Mathewson2021-03-303-1/+269
|
* NS consensus documents have signatures on SHA1 hashes, not SHA256.Nick Mathewson2021-03-301-8/+29
|
* Implement parsing for ns-flavored consensus documents.Nick Mathewson2021-03-303-202/+317
|
* Make RouterStatus a trait and Consensus into a generic type.Nick Mathewson2021-03-304-56/+133
| | | | This breaks surprisingly little.
* Start moving MdConsensus-specific code to a submodule.Nick Mathewson2021-03-302-172/+189
| | | | This is part of refactoring to handle NsConsensuses.