forked from wolfSSL/wolfssl
Merge pull request #3004 from SparkiDev/asn1_int_lead_0_any
Define to allow badly formed ASN integers
This commit is contained in:
@ -460,8 +460,10 @@ static int GetASNInt(const byte* input, word32* inOutIdx, int* len,
|
||||
(*inOutIdx)++;
|
||||
(*len)--;
|
||||
|
||||
#ifndef WOLFSSL_ASN_INT_LEAD_0_ANY
|
||||
if (*len > 0 && (input[*inOutIdx] & 0x80) == 0)
|
||||
return ASN_PARSE_E;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user