feat: update crates

This commit is contained in:
2023-03-14 08:58:05 +08:00
parent 19c84448fb
commit 6437b955d7
10 changed files with 258 additions and 176 deletions

View File

@@ -78,8 +78,8 @@ impl Command for CommandImpl {
return simple_error!("SHA256, SHA384 or SHA512 must assign at least one");
}
let mut card = crate::pgpcardutil::get_card()?;
let mut pgp = OpenPgp::new(&mut card);
let card = crate::pgpcardutil::get_card()?;
let mut pgp = OpenPgp::new(card);
let mut trans = opt_result!(pgp.transaction(), "Open card failed: {}");
if let Some(sha256) = sha256 {