forked from wolfSSL/wolfssl
fix shadow warning
This commit is contained in:
@@ -1346,15 +1346,15 @@ static int GetCertHeader(DecodedCert* cert)
|
|||||||
static int StoreRsaKey(DecodedCert* cert)
|
static int StoreRsaKey(DecodedCert* cert)
|
||||||
{
|
{
|
||||||
int length;
|
int length;
|
||||||
word32 read = cert->srcIdx;
|
word32 recvd = cert->srcIdx;
|
||||||
|
|
||||||
if (GetSequence(cert->source, &cert->srcIdx, &length, cert->maxIdx) < 0)
|
if (GetSequence(cert->source, &cert->srcIdx, &length, cert->maxIdx) < 0)
|
||||||
return ASN_PARSE_E;
|
return ASN_PARSE_E;
|
||||||
|
|
||||||
read = cert->srcIdx - read;
|
recvd = cert->srcIdx - recvd;
|
||||||
length += read;
|
length += recvd;
|
||||||
|
|
||||||
while (read--)
|
while (recvd--)
|
||||||
cert->srcIdx--;
|
cert->srcIdx--;
|
||||||
|
|
||||||
cert->pubKeySize = length;
|
cert->pubKeySize = length;
|
||||||
|
|||||||
Reference in New Issue
Block a user