summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | python: one import per line.Nick Mathewson2024-10-242-2/+4
| | | | | |
| * | | | | Python: use a more lint-acceptable block comment format.Nick Mathewson2024-10-241-3/+6
| | | | | |
| * | | | | python: Avoid using "l" as a variable name.Nick Mathewson2024-10-242-16/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (Python coding style guide and lint tools deprecate it, even if your font distinguishes l, 1, I, and |.)
| * | | | | rpc-docs-tool: imports go at the head of the module.Nick Mathewson2024-10-241-7/+7
| | | | | |
| * | | | | python: Use "a not in b" rather than "not a in b".Nick Mathewson2024-10-243-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | Due to precedence, both work the same, but the former is preferred.
| * | | | | python: Fix warnings about unused variables and modules.Nick Mathewson2024-10-249-15/+13
| | | | | |
| * | | | | Add a pyproject.toml for arti_rpc_testsNick Mathewson2024-10-241-0/+23
| | | | | |
| * | | | | Remove obsolete "rpc_demo.py"Nick Mathewson2024-10-241-24/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It no longer reflects our current API, refers to no-longer-extant bugs, and was never a terribly good example of what you were supposed to do with RPC.
* | | | | | Merge branch 'vanguards-stems' into 'main'gabi-2502024-10-247-255/+285
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | doc/dev/notes/vanguards: Use the new circuit stem terminology. Closes #1479 See merge request tpo/core/arti!2410
| * | | | | tor-circmgr: Clarify that using guarded for client rend is an exception.Gabriela Moldovan2024-10-242-1/+27
| | | | | |
| * | | | | tor-circmgr: Rename Short/Extended to Naive/Guarded.Gabriela Moldovan2024-10-244-32/+32
| | | | | |
| * | | | | tor-circmgr: Try to clarify what a "circuit stem" is.Gabriela Moldovan2024-10-241-2/+3
| | | | | |
| * | | | | tor-circmgr: Post-renaming documentation fixes.Gabriela Moldovan2024-10-244-14/+14
| | | | | |
| * | | | | tor-circmgr: s/stub/stem throughout.Gabriela Moldovan2024-10-244-100/+100
| | | | | |
| * | | | | tor-circmgr: s/HsCircStubKind/HsCircStemKind.Gabriela Moldovan2024-10-242-27/+27
| | | | | | | | | | | | | | | | | | | | | | | | As per #1479
| * | | | | tor-circmgr: s/HsCircStubKind/HsCircStemKind.Gabriela Moldovan2024-10-245-60/+60
| | | | | | | | | | | | | | | | | | | | | | | | As per #1479
| * | | | | tor-circmgr: Use the new vanguards terminology throughout.Gabriela Moldovan2024-10-243-75/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the first step towards clarifying the questions from !2230. Corresponding torspec changes: https://gitlab.torproject.org/tpo/core/torspec/-/merge_requests/282 Part of #1479
| * | | | | doc/dev/notes/vanguards: Use the new circuit stem terminology.Gabriela Moldovan2024-10-241-25/+28
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "Circuit stubs" are now called "circuit stems". We are also replacing the STUB/STUB+ terminology (STUB/STUB+ circuits are now called NAIVE/GUARDED). Part of #1479
* | | | | Merge branch 'run-black' into 'main'Alexander Hansen Færøy2024-10-2422-438/+661
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Run "black" to reformat all our python See merge request tpo/core/arti!2578
| * | | | | Run "black" to reformat all our pythonNick Mathewson2024-10-2422-438/+661
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "Black" is an "opinionated" python formatter, whose opinionatedness is somewhat in the spirit of rustfmt. This MR runs black with default settings on all of our python code in Arti. It was produced by the following commands ``` # Everything in python/ black python/ # Everything with a .py extension fd '.py$' -X black # Everything with a python shebang. git grep -l '#! */usr/bin/env *python' | xargs black ```
* | | | | Merge branch 'rpc-drop' into 'main'Nick Mathewson2024-10-2414-100/+307
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rpc: Move `rpc:release` method to apply to all object-ids. Closes #1663 See merge request tpo/core/arti!2573
| * | | | | rpc: Tweak release_owned to give an error on second removal of "connection".Nick Mathewson2024-10-232-16/+30
| | | | | |
| * | | | | rpc: Use a const for the "connection" object ID.Nick Mathewson2024-10-231-2/+9
| | | | | |
| * | | | | rpc: Simplify method-dispatch-bypass logic a bitNick Mathewson2024-10-235-34/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit removes the separate function for asking whether to bypass the dispatch code. Instead, it gives the "invoke with bypass" function an error to return when no dispatch is warranted, and moves the whole responsibility for method dispatch or non-dispatch back into tor-rpcbase. I had to add an ObjectId argument to `invoke_rpc_method` to make this work, but that's probably a good thing. Additionally, this commit tweaks the derive-deftly macro to prevent you from asking for dispatch bypass on special methods, where it isn't implemented (and doesn't really make sense).
| * | | | | rpc: Re-run cbindgen.Nick Mathewson2024-10-231-1/+0
| | | | | |
| * | | | | python: Use logging to report nonfatal errors.Nick Mathewson2024-10-232-2/+8
| | | | | |
| * | | | | rpc: Add test for releasing the session object.Nick Mathewson2024-10-231-0/+14
| | | | | |
| * | | | | rpc: Add support for dropping the special "connection" object ID.Nick Mathewson2024-10-232-9/+40
| | | | | |
| * | | | | python: Automatically release RPC objects on __del__Nick Mathewson2024-10-232-3/+32
| | | | | |
| * | | | | rpc: correct msg and doc for InvalidInput::NullPointerNick Mathewson2024-10-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we implied that it was only for strings, which isn't the case.
| * | | | | python rpc: Avoid sneaky use-after-free errors.Nick Mathewson2024-10-231-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After calling a `foo_free()` method on a ctypes pointer object, we now set that pointer to None, so that we cannot inadvertently pass the freed pointer to anything else.
| * | | | | python: Add tests for rpc:release.Nick Mathewson2024-10-232-0/+49
| | | | | |
| * | | | | rpc: Move "rpc:release" to be a method on the rpc object.Nick Mathewson2024-10-232-33/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now, instead of telling the session or the connection to drop the object ID, we tell the object ID to go away. Closes #1663.
| * | | | | rpcserver: detect and use methods that bypass method dispatch.Nick Mathewson2024-10-231-3/+8
| | | | | |
| * | | | | rpc: do not attempt to dispatch methods with bypassed dispatch.Nick Mathewson2024-10-231-0/+12
| | | | | |
| * | | | | rpc: Add a mechanism for method that bypass regular dispatchNick Mathewson2024-10-231-2/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I'm about to use this for rpc:release, which is special because it doesn't actually look at the type of the object that it's invoked on. Later it might be useful for manipulating weakrefs, cloning referenes, detecting reference equality, etc.
| * | | | | rpc: Remove unimplemented rpc:downgrade method for now.Nick Mathewson2024-10-231-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If and when we implement this, it will likely be different; arti#868 has some thoughts on the implications.
| * | | | | rpc: Move some object-id-manipulation methods to a new module.Nick Mathewson2024-10-233-50/+63
| | |/ / / | |/| | | | | | | | | | | | | | | | | | These will have different implementations soon; this is a more logical place for them.
* | | | | Merge branch 'rpc-docs-tool-update' into 'main'Nick Mathewson2024-10-231-1/+34
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | Update rpc-docs-tool to work with latest nightly rustdoc See merge request tpo/core/arti!2574
| * | | | rpc-docs-tool: Provide better warning on rustdoc format mismatch.Nick Mathewson2024-10-231-0/+27
| | | | |
| * | | | Update rpc-docs-tool to work with latest nightly rustdocNick Mathewson2024-10-221-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | Additionally, document that this tool requires particular versions of nightly, since the rustdoc json format is unstable.
* | | | | Merge branch 'elided_lifetime_warning' into 'main'opara2024-10-221-1/+1
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | linkspec: Fix nightly warning about elided lifetime See merge request tpo/core/arti!2575
| * | | | linkspec: Fix nightly warning about elided lifetimeNick Mathewson2024-10-221-1/+1
|/ / / / | | | | | | | | | | | | | | | | | | | | This warning shows up when running `cargo +nightly doc`. Apparently nightly doesn't like it when we have elided a lifetime that has a perfectly good name.
* | | | Merge branch 'mq-feat' into 'main'Ian Jackson2024-10-2212-20/+103
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Compile in memquota feature by default See merge request tpo/core/arti!2569
| * | | | Make memquota feature part of full in artiIan Jackson2024-10-223-3/+4
| | | | | | | | | | | | | | | | | | | | Mark it no longer experimental, but part of full. And document it.
| * | | | Make memquota feature part of full in arti-clientIan Jackson2024-10-222-3/+4
| | | | | | | | | | | | | | | | | | | | Mark it no longer experimental, but part of full. And document it.
| * | | | tor-memquota: Declare memquota feature stable, and defaultIan Jackson2024-10-223-3/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And document the Cargo features. This compiles in the memquota support for people who depend directly on tor-memquota. But all our in-tree dependencies turn off default features, so this doesn't have any effect for in-tree crates.
| * | | | tor-cell: Document Cargo featuresIan Jackson2024-10-221-0/+27
| | | | |
| * | | | tor-hscrypto: Document Cargo featuresIan Jackson2024-10-221-1/+18
| | | | |
| * | | | tor-llcrypto: Document memquota-memcost and full featuresIan Jackson2024-10-221-0/+6
| | | | |