Skip to content

Commit 3c74be3

Browse files
committed
correct test source file to follow C89 standard
for OpenSSL interface
1 parent 48f1c3b commit 3c74be3

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
@@ -58031,15 +58031,15 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t berder_test(void)
5803158031
int i;
5803258032
word32 len = 0, l;
5803358033
byte out[32];
58034-
WOLFSSL_SMALL_STACK_STATIC const byte good1_in[] = { 0x30, 0x80, 0x00, 0x00 };
58035-
WOLFSSL_SMALL_STACK_STATIC const byte good1_out[] = { 0x30, 0x00 };
58036-
WOLFSSL_SMALL_STACK_STATIC const byte good2_in[] = { 0x30, 0x80, 0x02, 0x01, 0x01, 0x00, 0x00 };
58037-
WOLFSSL_SMALL_STACK_STATIC const byte good2_out[] = { 0x30, 0x03, 0x02, 0x01, 0x01 };
58038-
WOLFSSL_SMALL_STACK_STATIC const byte good3_in[] = {
58034+
static const byte good1_in[] = { 0x30, 0x80, 0x00, 0x00 };
58035+
static const byte good1_out[] = { 0x30, 0x00 };
58036+
static const byte good2_in[] = { 0x30, 0x80, 0x02, 0x01, 0x01, 0x00, 0x00 };
58037+
static const byte good2_out[] = { 0x30, 0x03, 0x02, 0x01, 0x01 };
58038+
static const byte good3_in[] = {
5803958039
0x24, 0x80, 0x04, 0x01, 0x01, 0x00, 0x00
5804058040
};
58041-
WOLFSSL_SMALL_STACK_STATIC const byte good3_out[] = { 0x04, 0x1, 0x01 };
58042-
WOLFSSL_SMALL_STACK_STATIC const byte good4_in[] = {
58041+
static const byte good3_out[] = { 0x04, 0x1, 0x01 };
58042+
static const byte good4_in[] = {
5804358043
0x30, 0x80,
5804458044
0x02, 0x01, 0x01,
5804558045
0x30, 0x80,
@@ -58054,7 +58054,7 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t berder_test(void)
5805458054
0x00, 0x00,
5805558055
0x00, 0x00,
5805658056
};
58057-
WOLFSSL_SMALL_STACK_STATIC const byte good4_out[] = {
58057+
static const byte good4_out[] = {
5805858058
0x30, 0x12,
5805958059
0x02, 0x01, 0x01,
5806058060
0x30, 0x08,
@@ -58063,9 +58063,9 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t berder_test(void)
5806358063
0x31, 0x03,
5806458064
0x06, 0x01, 0x01
5806558065
};
58066-
WOLFSSL_SMALL_STACK_STATIC const byte good5_in[] = { 0x30, 0x03, 0x02, 0x01, 0x01 };
58066+
static const byte good5_in[] = { 0x30, 0x03, 0x02, 0x01, 0x01 };
5806758067

58068-
berDerTestData testData[] = {
58068+
static berDerTestData testData[] = {
5806958069
{ good1_in, sizeof(good1_in), good1_out, sizeof(good1_out) },
5807058070
{ good2_in, sizeof(good2_in), good2_out, sizeof(good2_out) },
5807158071
{ good3_in, sizeof(good3_in), good3_out, sizeof(good3_out) },

0 commit comments

Comments
 (0)