From c77c96f8498e962ea70497cffb40982f76d85ced Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Wed, 9 Nov 2022 15:30:57 +0100 Subject: [PATCH] SOP verify: force data to be non-openpgp data --- .../src/main/java/org/pgpainless/sop/DetachedVerifyImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pgpainless-sop/src/main/java/org/pgpainless/sop/DetachedVerifyImpl.java b/pgpainless-sop/src/main/java/org/pgpainless/sop/DetachedVerifyImpl.java index e6e2768e..1f9aa32b 100644 --- a/pgpainless-sop/src/main/java/org/pgpainless/sop/DetachedVerifyImpl.java +++ b/pgpainless-sop/src/main/java/org/pgpainless/sop/DetachedVerifyImpl.java @@ -62,6 +62,8 @@ public class DetachedVerifyImpl implements DetachedVerify { @Override public List data(InputStream data) throws IOException, SOPGPException.NoSignature, SOPGPException.BadData { + options.forceNonOpenPgpData(); + DecryptionStream decryptionStream; try { decryptionStream = PGPainless.decryptAndOrVerify()