Files
heartwood/radicle-ssh/src/agent.rs
T
Alexis Sellier 2acd999c16 Add SSH functionality with new radicle-ssh
We borrow code from `thrussh`, refactored to be runtime-less.

Signed-off-by: Alexis Sellier <alexis@radicle.xyz>
2022-10-03 10:34:59 +02:00

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> },
}