Add binary OpenSSH KRL export
This commit is contained in:
parent
5751748458
commit
b9e7c61e67
11 changed files with 209 additions and 20 deletions
|
|
@ -397,6 +397,8 @@ pub enum SshRevocationCommand {
|
|||
out: PathBuf,
|
||||
#[arg(long, default_value = "jsonl")]
|
||||
format: String,
|
||||
#[arg(long)]
|
||||
ca_public: Option<PathBuf>,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
@ -660,9 +662,15 @@ fn request_for_command(command: Command) -> Result<ControlRequest> {
|
|||
reason,
|
||||
},
|
||||
SshRevocationCommand::List => ControlRequest::SshRevocationList,
|
||||
SshRevocationCommand::Export { out, format } => {
|
||||
ControlRequest::SshRevocationExport { out, format }
|
||||
}
|
||||
SshRevocationCommand::Export {
|
||||
out,
|
||||
format,
|
||||
ca_public,
|
||||
} => ControlRequest::SshRevocationExport {
|
||||
out,
|
||||
format,
|
||||
ca_public,
|
||||
},
|
||||
},
|
||||
},
|
||||
Command::Init | Command::Daemon { .. } => bail!("command is handled directly"),
|
||||
|
|
|
|||
Loading…
Reference in a new issue