jdk1.1 compliance
[org.ibex.crypto.git] / src / org / ibex / crypto / DER.java
index 3e7f542..b683a05 100644 (file)
@@ -186,7 +186,7 @@ public class DER {
                         Object o = dis.readObject();
                         if(dis.bytesLeft() == 0) return new TaggedObject(tag&0x1f,o);
                         Vector v = new Vector();
-                        v.add(o);
+                        v.addElement(o);
                         return buildSequence(dis,v);
                     } else {
                         return new UnknownObject(tag,readBytes(length));
@@ -198,7 +198,7 @@ public class DER {
         protected Vector buildSequence(int length) throws IOException { return buildSequence(new InputStream(this,length),new Vector()); }
         protected Vector buildSequence(InputStream dis,Vector v) throws IOException {
             try {
-                for(;;) v.add(dis.readObject());
+                for(;;) v.addElement(dis.readObject());
             } catch(EOFException e) { 
                 return v; 
             }