SOP decrypt: Do not throw if no signatures found

This commit is contained in:
Paul Schaub 2022-06-22 22:14:22 +02:00
parent e5ba4f9933
commit bca359805b
Signed by: vanitasvitae
GPG Key ID: 62BEE9264BF17311
1 changed files with 0 additions and 6 deletions

View File

@ -154,12 +154,6 @@ public class DecryptImpl implements Decrypt {
verificationList.add(map(signatureVerification));
}
if (!consumerOptions.getCertificates().isEmpty()) {
if (verificationList.isEmpty()) {
throw new SOPGPException.NoSignature();
}
}
SessionKey sessionKey = null;
if (metadata.getSessionKey() != null) {
org.pgpainless.util.SessionKey sk = metadata.getSessionKey();