| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Run maint/add_warning to add lint block everywhere | Ian Jackson | 2023-08-23 | 1 | -0/+1 |
| | | |||||
| * | tor-dirclient: Remove unused `StringBody` trait. | Gabriela Moldovan | 2023-08-16 | 1 | -26/+0 |
| | | |||||
| * | tor-dirclient: Make Requestable return requests with String bodies. | Gabriela Moldovan | 2023-08-16 | 1 | -31/+14 |
| | | | | | | It's simpler to always use a `String` to represent directory request bodies. We no longer need the `StringBody` trait. | ||||
| * | tor-dirclient: Rename StringBody::str() to StringBody::as_str(). | Gabriela Moldovan | 2023-08-16 | 1 | -4/+4 |
| | | |||||
| * | tor-dirclient: Add `HsDescUploadRequest`. | Gabriela Moldovan | 2023-08-16 | 1 | -0/+46 |
| | | | | | | The hsdir publisher will send the `HsDescUploadRequest`s to the appropriate directory using `send_request()`. | ||||
| * | tor-dirclient: Make the body type of a `Requestable` type configurable. | Gabriela Moldovan | 2023-08-16 | 1 | -1/+42 |
| | | | | | | | | | | Previously, the `Requestable` trait assumed the body of the request would always be empty (`http::Request<()>`). This change replaces the hardcoded `()` body type with the `Requestable::Body` associated type (which will allow implementors to create requests with non-empty bodies). This will enable us to reuse the `Requestable` trait for building `POST` requests for uploading descriptors. | ||||
| * | Run maint/add_warning to actually apply new lint allows | Ian Jackson | 2023-07-10 | 1 | -0/+1 |
| | | |||||
| * | dirclient: use correct default max_len | Nick Mathewson | 2023-06-27 | 1 | -2/+2 |
| | | | | | | | Yes, it's 50 kilobytes, not 50 kibibytes. I double-checked this with the C implementation and with param-spec.txt's documentation for `HSV3MaxDescriptorSize`. | ||||
| * | dirclient: Correct an erroneous comment. | Nick Mathewson | 2023-06-27 | 1 | -1/+2 |
| | | |||||
| * | dirclient: Make maximum hsdesc length adjustable. | Nick Mathewson | 2023-06-27 | 1 | -8/+12 |
| | | |||||
| * | dirclient: Explain why hardcoding "3" is ok. | Nick Mathewson | 2023-06-27 | 1 | -1/+7 |
| | | |||||
| * | Use an Enum for the description request | tranna | 2023-04-10 | 1 | -37/+54 |
| | | |||||
| * | dirclient: fix an "unused import" warning. | Nick Mathewson | 2023-04-06 | 1 | -1/+1 |
| | | |||||
| * | tor-dirclient: Add a comment about 50 x 1024 | gabi-250 | 2023-04-03 | 1 | -0/+1 |
| | | |||||
| * | tor-dirclient: Add test case for HsDescDownloadRequest | Ian Jackson | 2023-04-03 | 1 | -1/+21 |
| | | | | | | | | | I couldn't find a test vector in C Tor. This test case was generated from the code here. I'm fairly sure it's right since I managed to get my descriptor downloader to work. (That's not an MR yet, but uses this code.) | ||||
| * | tor-dirclient: Provide HsDescDownloadRequest | Ian Jackson | 2023-04-03 | 1 | -0/+43 |
| | | | | | | In my tests this seems to do the right thing, but I'm getting 404s. I'm not sure if actually this URL is wrong. | ||||
| * | Allow clippy::unchecked_duration_subtraction in tests | Nick Mathewson | 2023-01-27 | 1 | -0/+1 |
| | | | | | | This panics on error, and we're fine with a panic on misbehavior in tests. | ||||
| * | Complete our migration to base64ct. | Nick Mathewson | 2023-01-20 | 1 | -1/+2 |
| | | | | | | | | | | This is in lieu of upgrading to the latest base64 crate, which has a different API from the old one. Since we have to migrate either way, we might as well use base64ct everywhere. I don't think that most of these cases _require_ constant-time base64, but it won't hurt. | ||||
| * | test lint blocks: Add many many automatically | Ian Jackson | 2022-12-12 | 1 | -0/+8 |
| | | | | | | This is precisely the result of running the rune in maint/adhoc-add-lint-blocks. | ||||
| * | cfg compilation: Add two allows | Ian Jackson | 2022-11-18 | 1 | -0/+1 |
| | | |||||
| * | tor-dirclient: Provide RoutersOwnDescRequest | Ian Jackson | 2022-10-25 | 1 | -0/+29 |
| | | | | | This will be used for bridges' descriptors. | ||||
| * | dirclient: Generalize MdSha256Empty to EmptyRequest. | Nick Mathewson | 2022-07-07 | 1 | -2/+5 |
| | | | | | | (It makes sense to use this for things that are not in fact lists of SHA256 digests of Microdescriptors.) | ||||
| * | dirclient: Fix comments re conssensus request without authorities | Ian Jackson | 2022-06-10 | 1 | -5/+3 |
| | | |||||
| * | dirclient: Replace four very similar "ids in request" | Ian Jackson | 2022-06-09 | 1 | -28/+44 |
| | | | | | | | | | | | In reviewing !553 I noticed that the empty digest list error had to be handled in two places. I filed #492 about the duplication. In fact it turns out to have been quadruplication. The new code also avoids cloning the underlying objects, instead sorting a Vec of references. | ||||
| * | dirclient: Test consensus request based on empty ConsensusRequest | Ian Jackson | 2022-06-09 | 1 | -0/+8 |
| | | | | | | | I'm not sure this is right. But providing a test case for it before my next change ensures that my refactoring doesn't change the behaviour. | ||||
| * | tor-dirclient: Require that self.digests is nonempty | Neel Chauhan | 2022-05-30 | 1 | -2/+6 |
| | | |||||
| * | dirclient: add the ability to reject circuits that are too skewed. | Nick Mathewson | 2022-05-11 | 1 | -1/+65 |
| | | | | | This will help implement #466. | ||||
| * | Remove allow(clippy::disallowed_methods) lint. | Nick Mathewson | 2022-03-30 | 1 | -1/+0 |
| | | |||||
| * | Merge branch 'no-system-time' into 'main' | eta | 2022-03-30 | 1 | -0/+1 |
| |\ | | | | | | | | | | | | | Don't use SystemTime::now() Closes #306 See merge request tpo/core/arti!365 | ||||
| | * | use wallclock where possible in tests | trinity-1686a | 2022-02-26 | 1 | -0/+1 |
| | | | |||||
| * | | dirclient: Collect and expose peer information from errors. | Nick Mathewson | 2022-03-21 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | | | | | | | This commit refactors the dirclient error type into two cases: errors when constructing a circuit, and errors that occur once we already have a one-hop circuit. The latter can usually be attributed to the specific cache we're talking to. This commit also adds a function to expose the information about which directory gave us the info. | ||||
| * | | Replace manual Default and new with std derive in tor-dirclient | Ian Jackson | 2022-03-02 | 1 | -30/+6 |
| |/ | |||||
| * | add semicolons if nothing returned | Daniel Eades | 2021-11-25 | 1 | -2/+2 |
| | | |||||
| * | tor-dirclient: Put routerdesc download behind a feature. | Nick Mathewson | 2021-11-12 | 1 | -0/+8 |
| | | | | | Part of #125 | ||||
| * | fix/silence clippy lints in test modules | Daniel Eades | 2021-09-08 | 1 | -1/+1 |
| | | |||||
| * | Move all crates into a `crates` subdirectory. | Nick Mathewson | 2021-08-27 | 1 | -0/+555 |
| This will cause some pain for now, but now is really the best time to do this kind of thing. | |||||
