From aad596c8559b3d3d081617736cdbeda1374f017b Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Fri, 11 May 2012 21:58:30 +0000
Subject: [PATCH] Fix OPENDJ-482: Validation for the CertificateSyntax
---
opends/src/server/org/opends/server/protocols/asn1/ASN1ByteSequenceReader.java | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/protocols/asn1/ASN1ByteSequenceReader.java b/opends/src/server/org/opends/server/protocols/asn1/ASN1ByteSequenceReader.java
index 921a4fc..7ef1e4c 100644
--- a/opends/src/server/org/opends/server/protocols/asn1/ASN1ByteSequenceReader.java
+++ b/opends/src/server/org/opends/server/protocols/asn1/ASN1ByteSequenceReader.java
@@ -23,6 +23,7 @@
*
*
* Copyright 2006-2009 Sun Microsystems, Inc.
+ * Portions Copyright 2012 Forgerock AS
*/
package org.opends.server.protocols.asn1;
@@ -460,6 +461,16 @@
/**
* {@inheritDoc}
*/
+ public void readStartExplicitTag() throws ASN1Exception
+ {
+ // From an implementation point of view, an explicit tag is equivalent to a
+ // sequence, as it is a constructed type.
+ readStartSequence();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
public void readStartSet() throws ASN1Exception
{
// From an implementation point of view, a set is equivalent to a
@@ -493,6 +504,16 @@
/**
* {@inheritDoc}
*/
+ public void readEndExplicitTag() throws ASN1Exception
+ {
+ // From an implementation point of view, an explicit tag is equivalent to a
+ // sequence, as it is also a constructed type.
+ readEndSequence();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
public void readEndSet() throws ASN1Exception
{
// From an implementation point of view, a set is equivalent to a
--
Gitblit v1.10.0