summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | tor-llcrypto: fix typotcyrus2025-07-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `tor_llcrypto::pk::ed25519::PublicKey` is based on `ed25519_dalek::VerifyingKey` and not `ed25519_dalek::SigningKey`.
| * | | | | tor-hscrypto: fix typostcyrus2025-07-232-3/+3
|/ / / / /
* | | | | Merge branch 'add-err-variant' into 'main'gabi-2502025-07-232-2/+9
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | tor-keymgr: Add err::Error::KeystoreNotConfigured See merge request tpo/core/arti!3103
| * | | | | tor-keymgr: Add err::Error::KeystoreNotFoundhjrgrn2025-07-232-2/+9
|/ / / / /
| | * | | hyper-examples: Put private key for tests backnield2025-08-041-0/+8
| | | | | | | | | | | | | | | | | | | | This was somehow accidentally deleted.
| | * | | hyper-examples: Use native-tls instead of rustlsnield2025-07-213-198/+15
| | | | |
| | * | | hyper-examples: Delete folder remaining after rebasenield2025-07-203-50/+166
| | | | |
| | * | | Merge branch 'hyper-examples' of gitlab.torproject.org:nield/arti into ↵nield2025-07-200-0/+0
| | |\ \ \ | | | | | | | | | | | | | | | | | | hyper-examples
| | | * | | hyper-examples: Typonield2025-06-241-1/+1
| | | | | |
| | | * | | hyper-examples: rustfmtnield2025-06-241-4/+7
| | | | | |
| | | * | | hyper-examples: Clarify comment regarding `is_fully_reachable`nield2025-06-241-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | Previous comment was not clear. `is_fully_reachable` only gives false negatives, not false positives.
| | | * | | hyper-examples: Simplify code for timeoutnield2025-06-241-51/+15
| | | | | | | | | | | | | | | | | | | | | | | | We removed the while loop.
| | | * | | hyper-examples: Print messages to stderrnield2025-06-241-6/+6
| | | | | |
| | | * | | hyper-examples: Add comment why we use rustls and manual set root_certnield2025-06-241-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The reason we prefer `rustls` in this case is because `rustls` provides better portability then `native-tls` due to not being dependent on the system. We have to explicitely set the root_cert because `rustls` does not use the system CA Certs to remain portable.
| | | * | | hyper-examples: Print messages to stderrnield2025-06-241-2/+2
| | | | | |
| | | * | | hyper-examples: Allow cli argument for test-urlnield2025-06-241-1/+4
| | | | | |
| | | * | | hyper-examples: Remove hyper-custom-connector-examplenield2025-06-044-268/+3
| | | | | | | | | | | | | | | | | | | | | | | | We will make a separate library for this.
| | | * | | hyper-examples: Typonield2025-04-161-1/+1
| | | | | |
| | | * | | hyper-examples: Fix example hyper-http-hs-examplenield2025-04-161-13/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This example previously remained stuck in the while loop without any output, seeming as if this example is not working. This because the method `is_fully_reachable` is no guarantee for the actual status of the onion service. It might return false while the service is actually reachable. We added a timeout to not remain stuck in the loop.
| | | * | | hyper-examples: Rename example directorynield2025-04-167-29/+29
| | | | | | | | | | | | | | | | | | | | | | | | This directory had to be renamed because otherwise it would cause conflicts with the actual hyper crate in the CI pipeline.
| | | * | | hyper-examples: Fix example hyper-http-client examplenield2025-04-161-14/+22
| | | | | | | | | | | | | | | | | | | | | | | | This example previously had errors trying to make a connection, this is solved now.
| | | * | | hyper-examples: Cargo fmtnield2025-04-161-1/+1
| | | | | |
| | | * | | hyper-examples: Add README.mdnield2025-04-151-0/+40
| | | | | |
| | | * | | hyper-examples: Remove subdirectories from examplenield2025-04-1511-132/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This example directory had a separate directory for each example. We can simplify this by using binaries.
| | | * | | hyper-examples: Remove unsafe test url form hyper-http-client-examplenield2025-04-151-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | This example made a request to a website which could deanonymize the user. We now use check.torproject.org instead.
| | | * | | hyper-examples: Example creating custom ArtiHttpConnector for hypernield2025-04-154-0/+300
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This example demonstrates how to create a custom connector which can be injected into a hyper client, to use hyper for Tor requests.
| | * | | | hyper-examples: Typonield2025-07-201-1/+1
| | | | | |
| | * | | | hyper-examples: rustfmtnield2025-07-201-4/+7
| | | | | |
| | * | | | hyper-examples: Clarify comment regarding `is_fully_reachable`nield2025-07-201-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | Previous comment was not clear. `is_fully_reachable` only gives false negatives, not false positives.
| | * | | | hyper-examples: Simplify code for timeoutnield2025-07-201-51/+15
| | | | | | | | | | | | | | | | | | | | | | | | We removed the while loop.
| | * | | | hyper-examples: Print messages to stderrnield2025-07-201-6/+6
| | | | | |
| | * | | | hyper-examples: Add comment why we use rustls and manual set root_certnield2025-07-201-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The reason we prefer `rustls` in this case is because `rustls` provides better portability then `native-tls` due to not being dependent on the system. We have to explicitely set the root_cert because `rustls` does not use the system CA Certs to remain portable.
| | * | | | hyper-examples: Print messages to stderrnield2025-07-201-2/+2
| | | | | |
| | * | | | hyper-examples: Allow cli argument for test-urlnield2025-07-201-1/+4
| | | | | |
| | * | | | hyper-examples: Remove hyper-custom-connector-examplenield2025-07-204-268/+3
| | | | | | | | | | | | | | | | | | | | | | | | We will make a separate library for this.
| | * | | | hyper-examples: Typonield2025-07-201-1/+1
| | | | | |
| | * | | | hyper-examples: Fix example hyper-http-hs-examplenield2025-07-201-13/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This example previously remained stuck in the while loop without any output, seeming as if this example is not working. This because the method `is_fully_reachable` is no guarantee for the actual status of the onion service. It might return false while the service is actually reachable. We added a timeout to not remain stuck in the loop.
| | * | | | hyper-examples: Rename example directorynield2025-07-207-29/+29
| | | | | | | | | | | | | | | | | | | | | | | | This directory had to be renamed because otherwise it would cause conflicts with the actual hyper crate in the CI pipeline.
| | * | | | hyper-examples: Fix example hyper-http-client examplenield2025-07-201-14/+22
| | | | | | | | | | | | | | | | | | | | | | | | This example previously had errors trying to make a connection, this is solved now.
| | * | | | hyper-examples: Cargo fmtnield2025-07-201-1/+1
| | | | | |
| | * | | | hyper-examples: Add README.mdnield2025-07-201-0/+40
| | | | | |
| | * | | | hyper-examples: Remove subdirectories from examplenield2025-07-2010-107/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This example directory had a separate directory for each example. We can simplify this by using binaries.
| | * | | | hyper-examples: Remove unsafe test url form hyper-http-client-examplenield2025-07-201-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | This example made a request to a website which could deanonymize the user. We now use check.torproject.org instead.
| | * | | | hyper-examples: Example creating custom ArtiHttpConnector for hypernield2025-07-204-0/+300
| |/ / / / |/| | | | | | | | | | | | | | | | | | | This example demonstrates how to create a custom connector which can be injected into a hyper client, to use hyper for Tor requests.
* | | | | Merge branch 'flow-ctrl' into 'main'opara2025-07-1715-39/+596
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | tor-proto: Add support for sending XON messages See merge request tpo/core/arti!3099
| * | | | | tor-basic-utils: add `assert_val_impl_trait!` macroSteven Engler2025-07-172-2/+24
| | | | | |
| * | | | | tor-proto: replace `DataReader`Steven Engler2025-07-172-44/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `DataReader` -> `DataReaderInner` `DataReaderNew` -> `DataReader` This means that the `DataReader` now supports XON/XOFF flow control using the `XonXoffReader`. This means that it can receive requests for a new drain rate from the reactor, and can send the new drain rate to the reactor once there is no more stream data queued.
| * | | | | tor-proto: add `DataReaderNew`Steven Engler2025-07-173-5/+75
| | | | | | | | | | | | | | | | | | | | | | | | This will later become `DataReader`.
| * | | | | tor-proto: add `StreamReceiver::is_empty()`Steven Engler2025-07-171-1/+39
| | | | | |
| * | | | | tor-proto: add the `XonXoffReader` and connect it to the reactorSteven Engler2025-07-1711-15/+267
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The idea here is that the reactor builds an `XonXoffReaderCtrl` for the new stream, and the `XonXoffReaderCtrl` can receive notifications from the reactor's `StreamFlowControl`. The `XonXoffReaderCtrl` can be combined with any `AsyncRead` to build a `XonXoffReader`, essentially wrapping the `AsyncRead` with a type that handles XON/XOFF flow control. Essentially, the reactor gives you a type that allows you to add XON/XOFF flow control support to any `AsyncRead`. We will add this `XonXoffReader` to the `DataReader` in a future commit.