mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-12-10 22:31:09 +01:00
Fix prematurely throwing of MissingPassphraseException
This commit is contained in:
parent
b7bf722ecf
commit
f05be3dc30
2 changed files with 5 additions and 1 deletions
|
|
@ -392,7 +392,9 @@ public final class DecryptionStreamFactory {
|
|||
for (Tuple<SubkeyIdentifier, ?> k : postponedDueToMissingPassphrase) {
|
||||
keyIds.add(k.getA());
|
||||
}
|
||||
throw new MissingPassphraseException(keyIds);
|
||||
if (!keyIds.isEmpty()) {
|
||||
throw new MissingPassphraseException(keyIds);
|
||||
}
|
||||
}
|
||||
else if (options.getMissingKeyPassphraseStrategy() == MissingKeyPassphraseStrategy.INTERACTIVE) {
|
||||
// Interactive mode: Fire protector callbacks to get passphrases interactively
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue