Merge pull request #8468 from jmalak/fix-test-c89

correct test source file to follow C89 standard
This commit is contained in:
Daniel Pouzzner
2025-02-19 11:23:48 -06:00
committed by GitHub

View File

@@ -58045,15 +58045,15 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t berder_test(void)
int i;
word32 len = 0, l;
byte out[32];
WOLFSSL_SMALL_STACK_STATIC const byte good1_in[] = { 0x30, 0x80, 0x00, 0x00 };
WOLFSSL_SMALL_STACK_STATIC const byte good1_out[] = { 0x30, 0x00 };
WOLFSSL_SMALL_STACK_STATIC const byte good2_in[] = { 0x30, 0x80, 0x02, 0x01, 0x01, 0x00, 0x00 };
WOLFSSL_SMALL_STACK_STATIC const byte good2_out[] = { 0x30, 0x03, 0x02, 0x01, 0x01 };
WOLFSSL_SMALL_STACK_STATIC const byte good3_in[] = {
static const byte good1_in[] = { 0x30, 0x80, 0x00, 0x00 };
static const byte good1_out[] = { 0x30, 0x00 };
static const byte good2_in[] = { 0x30, 0x80, 0x02, 0x01, 0x01, 0x00, 0x00 };
static const byte good2_out[] = { 0x30, 0x03, 0x02, 0x01, 0x01 };
static const byte good3_in[] = {
0x24, 0x80, 0x04, 0x01, 0x01, 0x00, 0x00
};
WOLFSSL_SMALL_STACK_STATIC const byte good3_out[] = { 0x04, 0x1, 0x01 };
WOLFSSL_SMALL_STACK_STATIC const byte good4_in[] = {
static const byte good3_out[] = { 0x04, 0x1, 0x01 };
static const byte good4_in[] = {
0x30, 0x80,
0x02, 0x01, 0x01,
0x30, 0x80,
@@ -58068,7 +58068,7 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t berder_test(void)
0x00, 0x00,
0x00, 0x00,
};
WOLFSSL_SMALL_STACK_STATIC const byte good4_out[] = {
static const byte good4_out[] = {
0x30, 0x12,
0x02, 0x01, 0x01,
0x30, 0x08,
@@ -58077,9 +58077,9 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t berder_test(void)
0x31, 0x03,
0x06, 0x01, 0x01
};
WOLFSSL_SMALL_STACK_STATIC const byte good5_in[] = { 0x30, 0x03, 0x02, 0x01, 0x01 };
static const byte good5_in[] = { 0x30, 0x03, 0x02, 0x01, 0x01 };
berDerTestData testData[] = {
static berDerTestData testData[] = {
{ good1_in, sizeof(good1_in), good1_out, sizeof(good1_out) },
{ good2_in, sizeof(good2_in), good2_out, sizeof(good2_out) },
{ good3_in, sizeof(good3_in), good3_out, sizeof(good3_out) },