1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-22 12:22: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
public void dearmorGarbageEmitsEmpty() {
public void dearmorGarbageEmitsEmpty() throws IOException {
String noArmoredData = "This is not armored.";
System.setIn(new ByteArrayInputStream(noArmoredData.getBytes(StandardCharsets.UTF_8)));
ByteArrayOutputStream out = new ByteArrayOutputStream();
System.setOut(new PrintStream(out));
PGPainlessCLI.execute("dearmor");
pipeStringToStdin(noArmoredData);
ByteArrayOutputStream out = pipeStdoutToStream();
assertSuccess(executeCommand("dearmor"));
assertTrue(out.toString().isEmpty());
}