From bca359805b8b8f8158f7b6115a392e2a9c2813b7 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Wed, 22 Jun 2022 22:14:22 +0200 Subject: [PATCH] SOP decrypt: Do not throw if no signatures found --- .../src/main/java/org/pgpainless/sop/DecryptImpl.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pgpainless-sop/src/main/java/org/pgpainless/sop/DecryptImpl.java b/pgpainless-sop/src/main/java/org/pgpainless/sop/DecryptImpl.java index b9539ed5..efed9472 100644 --- a/pgpainless-sop/src/main/java/org/pgpainless/sop/DecryptImpl.java +++ b/pgpainless-sop/src/main/java/org/pgpainless/sop/DecryptImpl.java @@ -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();