1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// 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> },
}