mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-15 15:50:38 +08:00
We borrow code from `thrussh`, refactored to be runtime-less. Signed-off-by: Alexis Sellier <alexis@radicle.xyz>
16 lines
449 B
Rust
16 lines
449 B
Rust
/// Write clients for SSH agents.
|
|
pub mod client;
|
|
|
|
mod msg;
|
|
|
|
/// Constraints on how keys can be used.
|
|
#[derive(Debug, PartialEq, Eq)]
|
|
pub enum Constraint {
|
|
/// The key shall disappear from the agent's memory after that many seconds.
|
|
KeyLifetime { seconds: u32 },
|
|
/// Signatures need to be confirmed by the agent (for instance using a dialog).
|
|
Confirm,
|
|
/// Custom constraints
|
|
Extensions { name: Vec<u8>, details: Vec<u8> },
|
|
}
|