mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2024-11-25 16:42:07 +01:00
decrypt --verify-with: Do not throw NoSignature if verifications is empty
This commit is contained in:
parent
b7e3838c4f
commit
d9c0baa4f4
1 changed files with 0 additions and 5 deletions
|
@ -115,11 +115,6 @@ public class DecryptCmd extends AbstractSopCmd {
|
||||||
|
|
||||||
private void writeVerifyOut(DecryptionResult result) throws IOException {
|
private void writeVerifyOut(DecryptionResult result) throws IOException {
|
||||||
if (verifyOut != null) {
|
if (verifyOut != null) {
|
||||||
if (result.getVerifications().isEmpty()) {
|
|
||||||
String errorMsg = getMsg("sop.error.runtime.no_verifiable_signature_found");
|
|
||||||
throw new SOPGPException.NoSignature(errorMsg);
|
|
||||||
}
|
|
||||||
|
|
||||||
try (OutputStream fileOut = getOutput(verifyOut)) {
|
try (OutputStream fileOut = getOutput(verifyOut)) {
|
||||||
PrintWriter writer = new PrintWriter(fileOut);
|
PrintWriter writer = new PrintWriter(fileOut);
|
||||||
for (Verification verification : result.getVerifications()) {
|
for (Verification verification : result.getVerifications()) {
|
||||||
|
|
Loading…
Reference in a new issue