mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
OCSP: Handle extensions in singleResponse
This commit is contained in:
@ -16828,6 +16828,18 @@ static int DecodeSingleResponse(byte* source,
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Skip the optional extensions in singleResponse. */
|
||||||
|
localIdx = idx;
|
||||||
|
if (((int)(idx - prevIndex) < wrapperSz) &&
|
||||||
|
GetASNTag(source, &localIdx, &tag, size) == 0 &&
|
||||||
|
tag == (ASN_CONSTRUCTED | ASN_CONTEXT_SPECIFIC | 1))
|
||||||
|
{
|
||||||
|
idx++;
|
||||||
|
if (GetLength(source, &idx, &length, size) < 0)
|
||||||
|
return ASN_PARSE_E;
|
||||||
|
idx += length;
|
||||||
|
}
|
||||||
|
|
||||||
*ioIndex = idx;
|
*ioIndex = idx;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user