7 char *odr_indent(ODR o)
12 memset(buf, ' ', 512);
15 buf[o->indent * 4] = 0;
19 int odp_more_chunks(ODR o, unsigned char *base, int len)
23 if (len < 0) /* indefinite length */
25 if (*o->bp == 0 && *(o->bp + 1) == 0)
35 return o->bp - base < len;
38 Odr_oid *odr_oiddup(ODR odr, Odr_oid *o)
44 if (!(r = odr_malloc(odr, (oid_oidlen(o) + 1) * sizeof(int))))
50 Odr_oid *odr_getoidbystr(ODR o, char *str)
58 while ((p = strchr(p, '.')))
60 ret = odr_malloc(o, sizeof(*ret)*num);
64 while ((p = strchr(p, '.')));