crypto: shared agent stream
The Mutex within AgentSigner did not seem to make sense. The Mutex could
never be shared, since the structs could never be cloned.
It would make more sense to have an Arc<Mutex<AgentClient<Stream>>> within
Agent, which could then be shared and cloned when constructing the
AgentSigner.
2 files changed
+30
-23
62d000f7
→
3b5fac17
modified radicle-crypto/src/ssh/agent.rs
@@ -1,5 +1,4 @@
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -12,56 +11,63 @@ pub use std::net::TcpStream as Stream;
|
|
|
|
|
|
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
| - | |
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -84,6 +90,7 @@ impl Signer for AgentSigner {
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified radicle-tools/src/rad-agent.rs
@@ -28,11 +28,11 @@ fn main() -> anyhow::Result<()> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|