lnk_thrussh_agent/
lib.rs

1#[macro_use]
2extern crate log;
3
4/// Write clients for SSH agents.
5pub mod client;
6pub mod key;
7mod msg;
8/// Write servers for SSH agents.
9pub mod server;
10
11/// Constraints on how keys can be used
12#[derive(Debug, PartialEq, Eq)]
13pub enum Constraint {
14    /// The key shall disappear from the agent's memory after that many seconds.
15    KeyLifetime { seconds: u32 },
16    /// Signatures need to be confirmed by the agent (for instance using a dialog).
17    Confirm,
18    /// Custom constraints
19    Extensions { name: Vec<u8>, details: Vec<u8> },
20}