add "generic" format string based encoder and decoder (scan_asn1generic,

fmt_asn1generic, see t10.c for example usage)
add "generic" asn.1 dumper (in t10.c)
fix some read off-by-one errors, minor cleanups
add real OID support
add bitstring support
This commit is contained in:
leitner
2011-04-28 19:50:11 +00:00
parent e90320f819
commit e04ca78ff8
49 changed files with 483 additions and 110 deletions

View File

@@ -639,7 +639,7 @@ static void tagmatches(uint32* index,size_t elements,struct string* s,
setbit(b,rec);
/* there may be multiple matches.
* Look before and after mid, too */
if (mid) /* thx Andreas Stührk */
if (mid) /* thx Andreas Stührk */
for (k=mid-1; k>0; --k) {
m=uint32_read((char*)(&index[k]));
if ((ft==LESSEQUAL) || (l=match(s,map+m))==0) {