mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

matthew_swift
07.56.2009 9008dca31797ba1b05fa3ed6cacb540ef175c666
opends/src/server/org/opends/server/protocols/asn1/ASN1InputStreamReader.java
@@ -422,6 +422,25 @@
  /**
   * {@inheritDoc}
   */
  public int readEnumerated() throws ASN1Exception
  {
    // Read the header if haven't done so already
    peekLength();
    if ((peekLength < 1) || (peekLength > 4))
    {
      Message message = ERR_ASN1_INTEGER_INVALID_LENGTH.get(peekLength);
      throw new ASN1Exception(message);
    }
    // From an implementation point of view, an enumerated value is
    // equivalent to an integer.
    return (int) readInteger();
  }
  /**
   * {@inheritDoc}
   */
  public long readInteger() throws ASN1Exception
  {
    // Read the header if haven't done so already