+int odr_peektag(ODR o, int *zclass, int *tag, int *cons)
+{
+ if (o->direction != ODR_DECODE)
+ {
+ o->error = OOTHER;
+ return 0;
+ }
+ if (o->op->stackp > -1 && !odr_constructed_more(o))
+ return 0;
+ if (ber_dectag(o->bp, zclass, tag, cons) <= 0)
+ {
+ o->error = OREQUIRED;
+ return 0;
+ }
+ return 1;
+}