fmt_asn1tag didn't set the high bit for the multibyte encoding

This commit is contained in:
leitner
2002-01-18 13:41:40 +00:00
parent dd709ad020
commit 086e8790db
2 changed files with 2 additions and 1 deletions

1
THANKS Normal file
View File

@@ -0,0 +1 @@
Trevor Harrison found a bug in fmt_asn1tag for the multibyte encoding.

View File

@@ -18,7 +18,7 @@ int fmt_asn1tag(char* dest,enum asn1_tagclass tc,enum asn1_tagtype tt,unsigned l
*dest=(int)tc+(int)tt+0x1f; ++dest;
while (j) {
--j;
*dest=((l>>(j*7))&0x7f);
*dest=((l>>(j*7))&0x7f) + (j?0x80:0);
++dest;
}
}