Skip to content

Commit 4de7061

Browse files
committed
added invalid OID override
1 parent 728acd7 commit 4de7061

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

core/src/main/jdk1.4/org/bouncycastle/asn1/ASN1RelativeOID.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import java.util.Map;
88

99
import org.bouncycastle.util.Arrays;
10+
import org.bouncycastle.util.Properties;
1011

1112
public class ASN1RelativeOID
1213
extends ASN1Primitive
@@ -229,6 +230,11 @@ static ASN1RelativeOID createPrimitive(byte[] contents, boolean clone)
229230

230231
static boolean isValidContents(byte[] contents)
231232
{
233+
if (Properties.isOverrideSet("org.bouncycastle.asn1.allow_wrong_oid_enc"))
234+
{
235+
return true;
236+
}
237+
232238
if (contents.length < 1)
233239
{
234240
return false;

0 commit comments

Comments
 (0)