forked from wolfSSL/wolfssl
skip crl revoked entry extensions
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
AC_INIT([cyassl],[2.1.5],[http://www.yassl.com])
|
AC_INIT([cyassl],[2.1.7],[http://www.yassl.com])
|
||||||
|
|
||||||
AC_CONFIG_AUX_DIR(config)
|
AC_CONFIG_AUX_DIR(config)
|
||||||
|
|
||||||
|
@@ -4521,6 +4521,7 @@ static int GetRevoked(const byte* buff, word32* idx, DecodedCRL* dcrl,
|
|||||||
int maxIdx)
|
int maxIdx)
|
||||||
{
|
{
|
||||||
int len;
|
int len;
|
||||||
|
word32 end;
|
||||||
byte b;
|
byte b;
|
||||||
RevokedCert* rc;
|
RevokedCert* rc;
|
||||||
|
|
||||||
@@ -4529,6 +4530,8 @@ static int GetRevoked(const byte* buff, word32* idx, DecodedCRL* dcrl,
|
|||||||
if (GetSequence(buff, idx, &len, maxIdx) < 0)
|
if (GetSequence(buff, idx, &len, maxIdx) < 0)
|
||||||
return ASN_PARSE_E;
|
return ASN_PARSE_E;
|
||||||
|
|
||||||
|
end = *idx + len;
|
||||||
|
|
||||||
/* get serial number */
|
/* get serial number */
|
||||||
b = buff[*idx];
|
b = buff[*idx];
|
||||||
*idx += 1;
|
*idx += 1;
|
||||||
@@ -4577,6 +4580,9 @@ static int GetRevoked(const byte* buff, word32* idx, DecodedCRL* dcrl,
|
|||||||
/* skip for now */
|
/* skip for now */
|
||||||
*idx += len;
|
*idx += len;
|
||||||
|
|
||||||
|
if (*idx != end) /* skip extensions */
|
||||||
|
*idx = end;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user