| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
bridge descs: Add tests for process_document
See merge request tpo/core/arti!841
|
| | |/ / |
|
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
Remove TODO re BridgeDescDownloadConfig defaults
See merge request tpo/core/arti!839
|
| | |/ / |
|
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
Check more targets
See merge request tpo/core/arti!844
|
| |/ / / |
|
| |\ \ \
| |/ /
|/| |
| | |
| | | |
bridge desc: Deal with two TODOs
See merge request tpo/core/arti!843
|
| | | |
| | |
| | |
| | |
| | | |
We have a separate BridgeDescMgr, rather than reusing DirMgr, so we
will not be implementing BridgeDescProvider for DirMgr.
|
| |/ / |
|
| |\ \
| |/
|/|
| |
| |
| |
| | |
Upgrade to clap 3
Closes #616
See merge request tpo/core/arti!830
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Also replace Arg::takes_value with Arg::action to configure flags
that don't take parameters vs options that do.
This makes it easy to upgrade to clap 4.
Tested deprecations with:
cargo check --workspace --all-features --features clap/deprecated
|
| | |
| |
| |
| |
| |
| |
| |
| | |
This removes the last cargo audit override (for the unmaintained
ansi_term).
Don't mark options as required when they have default values:
see <https://github.com/clap-rs/clap/pull/3793>.
|
| |\ \
| | |
| | |
| | |
| | | |
Downgrade and/or remove a few misc "TODO pt-client" comments
See merge request tpo/core/arti!838
|
| | | |
| | |
| | |
| | | |
These are structure-internal things we can solve later, if ever.
|
| | | |
| | |
| | |
| | | |
renamings are now #623. Code movement can happen later.
|
| |\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Persistently cache bridge descriptors
Closes #619
See merge request tpo/core/arti!831
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This is more consistent with our naming elsewhere.
Suggested-by: Nick Mathewson <[email protected]>
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
As per
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/831#note_2851764
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
The current test case doesn't use this.
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This introduces the new API functions to Store.
But currently they are all no-ops.
So all this machinery doesn't actually do anything.
Also, it changes the API to the mockable downloader, to allow it to
support if-modified-since. So this isn't used either. But it is more
convenient to do this all at once in BridgeDescManager, since care
needs to be taken about the intraction between if-modified-since and
the persistent cache.
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
We use the one in the dirmgr. That means that our constructor now has
to take a dirmgr. And, the dirmgr must have a circmgr.
This is all rather odd, TBH.
Add .. to the binding of the return values from setup, as
future-proofing.
The tests now need to provide a Store too. Make the sqlite::new_empty
function pub(crate) so we can use it.
We must retain the _db_tmp_dir, since when it goes away the tmp
directory is deleted and the db goes readonly.
|
| | | | |
| | | |
| | | |
| | | | |
This lets us see the log messages. They look fine, as it happens.
|
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
Resolve `TODO pt-client` entries in linkspec
See merge request tpo/core/arti!836
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | | |
This resolves a number of TODOs.
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This is not something we need to solve for 1.1.0 (and it might not
need to be solved ever).
|
| | | | | |
| | | | |
| | | | |
| | | | | |
We didn't find a use for this.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Since there are (or soon will be) parsing restrictions on this type,
we don't want to inline it as a simple Vec.
|
| |\ \ \ \ \
| | |/ / /
| |/| | |
| | | | |
| | | | | |
Small misc yaks for bridge descriptor persistence
See merge request tpo/core/arti!828
|
| | | | | |
| | | | |
| | | | |
| | | | | |
This allows use with tor_error::Report.
|
| | | | | |
| | | | |
| | | | |
| | | | | |
The bridge descriptor manager is going to want this.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This will let us share it with the bridge descriptor manager.
(As discussed with Nick.)
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* Centralise applying the schema updates, in a closure
* Make the schema update SQL texts be in an array so we can loop
* Make the version update statement generic, not cloned-and-hacked
This will make it possible to add another schema version without
error-prone conditions etc.
|
| |\ \ \ \ \
| |_|_|/ /
|/| | | |
| | | | |
| | | | | |
GuardMgr: Almost finish wiring Bridges in as a guard substitute
See merge request tpo/core/arti!832
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This explanation is slightly complicated by the fact that I think
that one of the calls to update_guardset_internal() is possibly
unnecessary, and that one of the calls that it makes is potentially
ill-advised.
I'm not going to make those changes right now, however, because they
are potentially a little destabilizing.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Now it is an Option, and is set to None if bridges aren't enabled.
This simplifies `replace_bridge_config` a bit, and forces us to
check for `None` in a few more places.
|
| | | | | |
| | | | |
| | | | |
| | | | | |
Enforce this with assert!() and a documented panics section.
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Also remove a bunch of now-unnecessary `allow(dead_code)`
annotations.
|
| | | | | | |
|
| | | | | | |
|