Merge pull request #1752 from dihambo/master

修正asn1的tag掩码。完善asn1的tag测试,使其覆盖所有可能值。
This commit is contained in:
Zhi Guan
2025-12-09 08:44:58 +08:00
committed by GitHub
2 changed files with 13 additions and 11 deletions

View File

@@ -38,7 +38,7 @@ const char *asn1_tag_name(int tag)
}
switch (tag & 0xc0) {
case ASN1_TAG_CONTENT_SPECIFIC: return asn1_tag_index[tag & 0xe0];
case ASN1_TAG_CONTENT_SPECIFIC: return asn1_tag_index[tag & 0x1f];
case ASN1_TAG_APPLICATION: return "Application";
case ASN1_TAG_PRIVATE: return "Private";
}