add oid and bitstring parsing and formatting to "generic" format string

routines, test them in t10.c
This commit is contained in:
leitner
2011-04-28 21:33:10 +00:00
parent e04ca78ff8
commit dae3ea8024
12 changed files with 181 additions and 50 deletions

View File

@@ -19,7 +19,7 @@ size_t scan_asn1BITSTRING(const char* src,const char* max,const char** s,size_t*
lastbyte=(*s)[*l+1];
if (lastbyte & (0xff >> (8-**s)))
return 0;
*l=*l*8-(unsigned char)(**s);
*l=(*l-1)*8-(unsigned char)(**s);
++*s;
return tmp;
}