feat: v1.12.0
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
use crate::cmd_se_generate::print_se_key;
|
||||
use crate::keyutil::{parse_key_uri, KeyUri, KeyUsage};
|
||||
use crate::keyutil::{parse_key_uri, KeyUsage};
|
||||
use crate::{cmdutil, seutil};
|
||||
use clap::{App, Arg, ArgMatches, SubCommand};
|
||||
use rust_util::util_clap::{Command, CommandError};
|
||||
@@ -28,9 +28,9 @@ impl Command for CommandImpl {
|
||||
let json_output = cmdutil::check_json_output(sub_arg_matches);
|
||||
|
||||
seutil::check_se_supported()?;
|
||||
let key_uri = sub_arg_matches.value_of("key").unwrap();
|
||||
|
||||
let KeyUri::SecureEnclaveKey(se_key_uri) = parse_key_uri(key_uri)?;
|
||||
let key = sub_arg_matches.value_of("key").unwrap();
|
||||
let key_uri = parse_key_uri(key)?;
|
||||
let se_key_uri = key_uri.as_secure_enclave_key()?;
|
||||
debugging!("Secure enclave key URI: {:?}", se_key_uri);
|
||||
|
||||
let (public_key_point, public_key_der, _private_key) =
|
||||
@@ -39,7 +39,7 @@ impl Command for CommandImpl {
|
||||
se_key_uri.usage == KeyUsage::Singing,
|
||||
)?;
|
||||
|
||||
print_se_key(json_output, &public_key_point, &public_key_der, key_uri);
|
||||
print_se_key(json_output, &public_key_point, &public_key_der, key);
|
||||
|
||||
Ok(None)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user