mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Move definition to beginning of block
This commit is contained in:
@ -18975,6 +18975,8 @@ static int DecodeAltNames(const byte* input, word32 sz, DecodedCert* cert)
|
|||||||
}
|
}
|
||||||
|
|
||||||
while ((ret == 0) && (idx < sz)) {
|
while ((ret == 0) && (idx < sz)) {
|
||||||
|
ASNGetData dataASN[altNameASN_Length];
|
||||||
|
|
||||||
numNames++;
|
numNames++;
|
||||||
if (numNames > WOLFSSL_MAX_ALT_NAMES) {
|
if (numNames > WOLFSSL_MAX_ALT_NAMES) {
|
||||||
WOLFSSL_MSG("\tToo many subject alternative names");
|
WOLFSSL_MSG("\tToo many subject alternative names");
|
||||||
@ -18982,8 +18984,6 @@ static int DecodeAltNames(const byte* input, word32 sz, DecodedCert* cert)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
ASNGetData dataASN[altNameASN_Length];
|
|
||||||
|
|
||||||
/* Clear dynamic data items. */
|
/* Clear dynamic data items. */
|
||||||
XMEMSET(dataASN, 0, sizeof(dataASN));
|
XMEMSET(dataASN, 0, sizeof(dataASN));
|
||||||
/* Parse GeneralName with the choices supported. */
|
/* Parse GeneralName with the choices supported. */
|
||||||
|
Reference in New Issue
Block a user