1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-12-23 03:17:58 +01:00

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

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();