Move verify_pin after Stub::connect
If all we want is to determine the recipient, we don't need to verify the PIN. Closes str4d/age-plugin-yubikey#30.
This commit is contained in:
@@ -213,6 +213,11 @@ impl IdentityPluginV1 for IdentityPlugin {
|
||||
}
|
||||
};
|
||||
|
||||
if let Err(e) = conn.request_pin(&mut callbacks)? {
|
||||
callbacks.error(e)?.unwrap();
|
||||
continue;
|
||||
}
|
||||
|
||||
for (&file_index, stanzas) in files {
|
||||
if file_keys.contains_key(&file_index) {
|
||||
// We decrypted this file with an earlier YubiKey.
|
||||
|
||||
Reference in New Issue
Block a user