pub enum Request {
RequestIdentities,
SignRequest(SignRequest),
AddIdentity(AddIdentity),
RemoveIdentity(RemoveIdentity),
RemoveAllIdentities,
AddSmartcardKey(SmartcardKey),
RemoveSmartcardKey(SmartcardKey),
Lock(String),
Unlock(String),
AddIdConstrained(AddIdentityConstrained),
AddSmartcardKeyConstrained(AddSmartcardKeyConstrained),
Extension(Extension),
}
Expand description
SSH agent protocol request messages.
These message types are sent from a client to an agent.
Described in draft-miller-ssh-agent-14 § 3.
Variants§
RequestIdentities
Request a list of all identities (public key/certificate & comment) from an agent
SignRequest(SignRequest)
Perform a private key signature operation using a key stored in the agent
AddIdentity(AddIdentity)
Add an identity (private key/certificate & comment) to an agent
RemoveIdentity(RemoveIdentity)
Remove an identity from an agent
RemoveAllIdentities
Remove all identities from an agent
AddSmartcardKey(SmartcardKey)
Add an identity (private key/certificate & comment) to an agent where the private key is stored on a hardware token
RemoveSmartcardKey(SmartcardKey)
Remove a key stored on a hardware token from an agent
Lock(String)
Temporarily lock an agent with a pass-phrase
Unlock(String)
Unlock a locked agaent with a pass-phrase
AddIdConstrained(AddIdentityConstrained)
Add an identity (private key/certificate & comment) to an agent, with constraints on it’s usage
AddSmartcardKeyConstrained(AddSmartcardKeyConstrained)
Add an identity (private key/certificate & comment) to an agent where the private key is stored on a hardware token, with constraints on it’s usage
Extension(Extension)
Send a vendor-specific message via the agent protocol, identified by an extension type.
Implementations§
Source§impl Request
impl Request
Sourcepub fn message_id(&self) -> u8
pub fn message_id(&self) -> u8
The protocol message identifier for a given Request
message type.
Described in draft-miller-ssh-agent-14 § 6.1.
Trait Implementations§
Source§impl Encode for Request
impl Encode for Request
Source§fn encoded_len(&self) -> Result<usize>
fn encoded_len(&self) -> Result<usize>
Source§fn encode(&self, writer: &mut impl Writer) -> Result<()>
fn encode(&self, writer: &mut impl Writer) -> Result<()>
Writer
.Source§fn encoded_len_prefixed(&self) -> Result<usize, Error>
fn encoded_len_prefixed(&self) -> Result<usize, Error>
uint32
length prefix.Source§fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>
uint32
length prefix
set to Encode::encoded_len
.