Skip to content

Commit 597b839

Browse files
authored
Merge pull request wolfSSL#8468 from jmalak/fix-test-c89
correct test source file to follow C89 standard
2 parents 373a7d4 + 3c74be3 commit 597b839

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

wolfcrypt/test/test.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58045,15 +58045,15 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t berder_test(void)
5804558045
int i;
5804658046
word32 len = 0, l;
5804758047
byte out[32];
58048-
WOLFSSL_SMALL_STACK_STATIC const byte good1_in[] = { 0x30, 0x80, 0x00, 0x00 };
58049-
WOLFSSL_SMALL_STACK_STATIC const byte good1_out[] = { 0x30, 0x00 };
58050-
WOLFSSL_SMALL_STACK_STATIC const byte good2_in[] = { 0x30, 0x80, 0x02, 0x01, 0x01, 0x00, 0x00 };
58051-
WOLFSSL_SMALL_STACK_STATIC const byte good2_out[] = { 0x30, 0x03, 0x02, 0x01, 0x01 };
58052-
WOLFSSL_SMALL_STACK_STATIC const byte good3_in[] = {
58048+
static const byte good1_in[] = { 0x30, 0x80, 0x00, 0x00 };
58049+
static const byte good1_out[] = { 0x30, 0x00 };
58050+
static const byte good2_in[] = { 0x30, 0x80, 0x02, 0x01, 0x01, 0x00, 0x00 };
58051+
static const byte good2_out[] = { 0x30, 0x03, 0x02, 0x01, 0x01 };
58052+
static const byte good3_in[] = {
5805358053
0x24, 0x80, 0x04, 0x01, 0x01, 0x00, 0x00
5805458054
};
58055-
WOLFSSL_SMALL_STACK_STATIC const byte good3_out[] = { 0x04, 0x1, 0x01 };
58056-
WOLFSSL_SMALL_STACK_STATIC const byte good4_in[] = {
58055+
static const byte good3_out[] = { 0x04, 0x1, 0x01 };
58056+
static const byte good4_in[] = {
5805758057
0x30, 0x80,
5805858058
0x02, 0x01, 0x01,
5805958059
0x30, 0x80,
@@ -58068,7 +58068,7 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t berder_test(void)
5806858068
0x00, 0x00,
5806958069
0x00, 0x00,
5807058070
};
58071-
WOLFSSL_SMALL_STACK_STATIC const byte good4_out[] = {
58071+
static const byte good4_out[] = {
5807258072
0x30, 0x12,
5807358073
0x02, 0x01, 0x01,
5807458074
0x30, 0x08,
@@ -58077,9 +58077,9 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t berder_test(void)
5807758077
0x31, 0x03,
5807858078
0x06, 0x01, 0x01
5807958079
};
58080-
WOLFSSL_SMALL_STACK_STATIC const byte good5_in[] = { 0x30, 0x03, 0x02, 0x01, 0x01 };
58080+
static const byte good5_in[] = { 0x30, 0x03, 0x02, 0x01, 0x01 };
5808158081

58082-
berDerTestData testData[] = {
58082+
static berDerTestData testData[] = {
5808358083
{ good1_in, sizeof(good1_in), good1_out, sizeof(good1_out) },
5808458084
{ good2_in, sizeof(good2_in), good2_out, sizeof(good2_out) },
5808558085
{ good3_in, sizeof(good3_in), good3_out, sizeof(good3_out) },

0 commit comments

Comments
 (0)