mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-06 16:36:16 +08:00
fix: tag mask错误
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