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

@@ -38,8 +38,8 @@ impl Command for CommandImpl {
return simple_error!("cipher or cipher-base64 must assign 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: {}");
opt_result!(trans.verify_pw1_user(pin.as_ref()), "User pin verify failed: {}");