title: ASN1 OBJECT_IDENTIFIER decoding
body: <p>I have the following ASN1 data</p>
  
  <pre><code>Sequence
    Sequence
      ObjectIdentifier
    Sequence
      Sequence
        Integer
        Integer
      Sequence
        Integer
        Integer
  </code></pre>
  
  <p>My goal is to get the encoded integer values. My code so far is the following</p>
  
  <pre><code>ByteQueue queue(inputLen);
  queue.Put2(input, inputLen, 0, false);
  
  BERSequenceDecoder outer(queue);
  
  BERSequenceDecoder discard(outer); // unnecessary  sequence with object_identifier
  BERSequenceDecoder obj(discard,
      CryptoPP::ASNTag::OBJECT_IDENTIFIER | CryptoPP::ASNIdFlag::UNIVERSAL);
  
  BERSequenceDecoder parent(outer); //BER decode error
  for(int i = 0; i &lt; 2; i++) {
      BERSequenceDecoder dataSequence(parent);
      Integer i1, i2;
  
      i1.BERDecode(dataSequence);
      i2.BERDecode(dataSequence);
  </code></pre>
  
  <p>Problem is, I don't know how to properly get past the object_identifier part, at least I think that is the problem. I'm getting <code>BER decode error</code> on the 4. decoder object.</p>
  
  <p>Also, am I initializing the ByteQueue correctly? this <code>Put2</code> method doesn't seem like the correct way, but I didn't find any other methods.</p>