summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * move IsolationToken to circmgrTrinity Pointard2021-07-148-38/+31
| | | | | | | | | | document the behavior of IsolationToken::default remove From and Into impls between IsolationToken and u64
| * fix clippy lintsTrinity Pointard2021-07-133-4/+16
| |
| * implement isolation in artiTrinity Pointard2021-07-133-9/+44
| | | | | | | | | | rules are not configurable, but similar to default rules for Tor (isolate by client addr, by listening port and by authentication if any)
| * implement stream isolationTrinity Pointard2021-07-136-15/+126
| |
* | Try to re-enable simple_tls test on osx.Nick Mathewson2021-07-152-7/+5
| | | | | | | | | | | | On #111, trinity-1686a points me towards a post on the apple dev forum, suggesting that the problem here is that OSX's SecureTransport API doesn't support PKCS12 files with empty passwords.
* | Refactor MockSleepProvider::wait_for to work better.Nick Mathewson2021-07-153-24/+53
| | | | | | | | | | | | | | This is necessary for some tests I'm doing on circuit timeout code. It doesn't solve the wait_for issues completely; I've opened #149 for those.
* | time mocking: only insert each Sleeping future once.Nick Mathewson2021-07-151-6/+14
| |
* | Move wait_for into MockSleepProvider.Nick Mathewson2021-07-152-82/+67
| | | | | | | | | | This function is generally useful for testing functions where we want time to advance bit by bit.
* | Revert "Use coarsetime to build an incoming traffic timestamp."Nick Mathewson2021-07-136-150/+0
| | | | | | | | | | | | | | | | This reverts commit f30b22802aeafaa4dd1b8d424fa83ceb6f45d4aa. It turns out (see torspec#57) that there is no need for us to keep this timestamp -- at least, not for the use we had in mind in circuit timeouts.
* | Use coarsetime to build an incoming traffic timestamp.Nick Mathewson2021-07-136-0/+150
| | | | | | | | | | | | | | | | | | | | | | We need this for the circuit timeout estimator (#57). It needs to know "how recently have we got some incoming traffic", so that it can tell whether a circuit has truly timed out, or whether the entire network is down. I'm implementing this with coarsetime, since we need to update these in response to every single incoming cell, and we need the timestamp operation to be _fast_.
* | Update WANT_FROM_OTHER_CRATES again.Nick Mathewson2021-07-131-1/+16
| |
* | Changes to WANT_FROM_OTHER_CRATES based on discussion on #146Nick Mathewson2021-07-121-10/+16
| |
* | cleanlinessTrinity Pointard2021-07-101-11/+8
| |
* | make ipv[46]_policy take into account BadExitTrinity Pointard2021-07-102-12/+32
|/ | | | they now report an empty policy for BadExit relays
* Move responsibility for circuit construction into CircuitBuilder.Nick Mathewson2021-07-086-121/+121
| | | | | | | | | Previously this was done in functions associated with Path and OwnedPath, but this caused their method signatures to get more and more complicated. This change will also allow us to make timeout handling part of the circuit-building process.
* Add a shell script to verify that every package has an okay license.Nick Mathewson2021-07-061-0/+81
| | | | | | | We implement this by giving a list of permitted licenses, and then using cargo-license to dump everything's actual license. Since packages list their licenses as "x OR y OR z", we permit any package that is available under at least one license on the allow-list.
* Rename "send_me_*" to "sendme_*"Nick Mathewson2021-07-061-9/+9
|
* Fix an unused variable warning when fuzzing tor-netdocNick Mathewson2021-07-021-1/+1
|
* Fix some code-rot in tor-netdoc fuzz targetsNick Mathewson2021-07-022-2/+2
|
* Revert "clippy: remove unneeded dependencies."Nick Mathewson2021-07-021-0/+4
| | | | | | | This sort of reverts 37b978ae1ba2770ebf75dd34e76797802e90b2f9. It appears that on nightly, these imports are necessary. Was there a change in the import resolver?
* Allow tor-rtcompat to build with no runtimes.Nick Mathewson2021-07-0120-148/+236
| | | | | | | | | | | | Thanks to cargo's version-2 feature resolver, we can require a runtime for tests only. I'm also making it so that the functions that create or fetch Runtimes only exist when one of the runtime features is enabled. For now that seems like a better solution than having those functions exist but panic. Closes #129.
* clippy: remove unneeded dependencies.Nick Mathewson2021-06-271-1/+1
|
* Merge remote-tracking branch 'origin/mr/34'Nick Mathewson2021-06-2739-246/+294
|\
| * Add clippy warn needless pass by valueYUAN LYU2021-06-2139-245/+270
| |
| * Add clippy warn needless borrowYUAN LYU2021-06-2124-1/+24
| |
* | Toposort the workspace members list.arti-v0.0.0Nick Mathewson2021-06-241-1/+4
| |
* | Rename tor-client to arti-tor-client for now.Nick Mathewson2021-06-243-3/+7
| |
* | Remove "default-features=false" thing on tor-rtcompat for now.Nick Mathewson2021-06-245-6/+6
| |
* | Fix category in tor-config/Cargo.tomlNick Mathewson2021-06-241-1/+1
| |
* | Add version="0.0.0" to dependencies that were missing itNick Mathewson2021-06-245-21/+21
| |
* | Bump version dependencies to 0.0.0Nick Mathewson2021-06-2412-55/+55
| |
* | Remove version=* in tor-rtmockNick Mathewson2021-06-241-1/+1
| |
* | List version 0.0.0 for tor-llcrypto dependency in tor-bytesNick Mathewson2021-06-241-1/+1
| |
* | Missing fields in tor-units/Cargo.toml.Nick Mathewson2021-06-242-1/+3
| |
* | Remove "publish = false"Nick Mathewson2021-06-2424-24/+0
| |
* | Bump tokio-related dependenciesNick Mathewson2021-06-241-2/+2
| |
* | Remove unused import.Nick Mathewson2021-06-211-1/+0
| |
* | More tests and a little code-golf for coverage on tor-circmgrNick Mathewson2021-06-204-14/+47
| |
* | tor_circmgr: simplify build_circuit a bit.Nick Mathewson2021-06-202-15/+10
|/
* A few tests for circparameters generation.Nick Mathewson2021-06-192-7/+50
|
* More/better tests on tor_circmgr::mgrNick Mathewson2021-06-191-46/+132
|
* A little testing and refactgoring in tor-circmgr.Nick Mathewson2021-06-193-25/+23
|
* Misc tests in tor-proto.Nick Mathewson2021-06-195-12/+67
|
* Remove most (all?) panics from tor-chanmgr::mgr::mapNick Mathewson2021-06-191-10/+22
| | | | | Improve testing for cases where change_state() is given a bad function.
* Add another entry to WANT_FROM_OTHER_CRATESNick Mathewson2021-06-191-0/+1
|
* Cut down WANT_FROM_OTHER_CRATESNick Mathewson2021-06-181-16/+8
|
* Fix some warnings about needless & from nightly clippyNick Mathewson2021-06-1818-29/+29
|
* Upgrade phf.Nick Mathewson2021-06-171-1/+1
|
* Run "typos" to fix a few more typos.Nick Mathewson2021-06-174-6/+6
|
* Update retry-error READMENick Mathewson2021-06-171-20/+8
|