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:
parent
307e2f7075
commit
cc2c2d079d
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue