1
1
Fork 0
mirror of https://github.com/pbatard/rufus.git synced 2024-08-14 23:57:05 +00:00

ASN.1 parser's sequence tag is wrong

- Sequense is encoded with tag byte of 0x30.
- https://docs.microsoft.com/en-us/windows/win32/seccertenroll/about-sequence
This commit is contained in:
gusrb406 2019-08-02 16:53:11 +09:00
parent 307e2f7075
commit cc2c2d079d

View file

@ -1276,7 +1276,7 @@ static BOOL get_data_from_asn1_internal(const uint8_t* buf, size_t buf_len, cons
BOOL is_sequence, is_universal_tag;
while (pos < buf_len) {
is_sequence = buf[pos] & 0x20;
is_sequence = buf[pos] & 0x30;
is_universal_tag = ((buf[pos] & 0xC0) == 0x00);
tag = buf[pos++] & 0x1F;
if (tag == 0x1F) {