Skip to content

Commit c3bb3ec

Browse files
committed
Merge branch 'pgpainless-roundtripPacketFormat'
2 parents 347c2af + 3abf79d commit c3bb3ec

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

pg/src/test/java/org/bouncycastle/bcpg/test/OnePassSignaturePacketTest.java

+8-3
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,10 @@ private void roundtripV3Packet()
105105
isNull("round-tripped OPS v3 MUST NOT have salt",
106106
after.getSalt());
107107

108-
isEncodingEqual("Packet encoding mismatch",
109-
before, after);
108+
if (before.hasNewPacketFormat() && newTypeIdFormat)
109+
{
110+
isEncodingEqual(before, after);
111+
}
110112
}
111113
}
112114

@@ -178,7 +180,10 @@ private void roundtripV6Packet()
178180
isEncodingEqual("round-tripped OPS salt mismatch",
179181
before.getSalt(), after.getSalt());
180182

181-
isEncodingEqual(before, after);
183+
if (before.hasNewPacketFormat() && newTypeIdFormat)
184+
{
185+
isEncodingEqual(before, after);
186+
}
182187
}
183188
}
184189

0 commit comments

Comments
 (0)