1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-30 00:02:06 +01:00

Do not reject bnacksig signatures when they predate subkey binding date

Fixes #334

SOP verify: force data to be non-openpgp data

Update changelog

SOP: Unify key/certificate reading code

Fix key/password matching in SOPs detached sign command

Rework CLI tests

update changelog

PGPainless 1.3.11

PGPainless 1.3.12-SNAPSHOT

Merge branch 'release/1.3'
This commit is contained in:
Paul Schaub 2022-11-09 22:23:24 +01:00
parent 5524596082
commit 86c7229172

View file

@ -90,13 +90,11 @@ public class DearmorCmdTest extends CLITest {
} }
@Test @Test
public void dearmorGarbageEmitsEmpty() { public void dearmorGarbageEmitsEmpty() throws IOException {
String noArmoredData = "This is not armored."; String noArmoredData = "This is not armored.";
System.setIn(new ByteArrayInputStream(noArmoredData.getBytes(StandardCharsets.UTF_8))); pipeStringToStdin(noArmoredData);
ByteArrayOutputStream out = new ByteArrayOutputStream(); ByteArrayOutputStream out = pipeStdoutToStream();
System.setOut(new PrintStream(out)); assertSuccess(executeCommand("dearmor"));
PGPainlessCLI.execute("dearmor");
assertTrue(out.toString().isEmpty()); assertTrue(out.toString().isEmpty());
} }