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/ASN1InputStreamReader.java | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/protocols/asn1/ASN1InputStreamReader.java b/opends/src/server/org/opends/server/protocols/asn1/ASN1InputStreamReader.java
index f3a7e86..d6e0dbe 100644
--- a/opends/src/server/org/opends/server/protocols/asn1/ASN1InputStreamReader.java
+++ b/opends/src/server/org/opends/server/protocols/asn1/ASN1InputStreamReader.java
@@ -23,6 +23,7 @@
*
*
* Copyright 2006-2009 Sun Microsystems, Inc.
+ * Portions Copyright 2012 ForgeRock AS
*/
package org.opends.server.protocols.asn1;
@@ -747,6 +748,16 @@
/**
* {@inheritDoc}
*/
+ public void readStartExplicitTag() throws ASN1Exception
+ {
+ // From an implementation point of view, an explicit tag is equivalent to a
+ // sequence, as it is also a constructed type.
+ readStartSequence();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
public void readStartSet() throws ASN1Exception
{
// From an implementation point of view, a set is equivalent to a
@@ -796,6 +807,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