mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-26 06:12: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:
parent
5524596082
commit
86c7229172
1 changed files with 4 additions and 6 deletions
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue