mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-07 00:46:17 +08:00
Merge pull request #1752 from dihambo/master
修正asn1的tag掩码。完善asn1的tag测试,使其覆盖所有可能值。
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user