tests/api.c and tests/api/test_pkcs7.c: fixes for CFLAGS="-Og" --enable-all (PRB-single-flag.txt line 3).

This commit is contained in:
Daniel Pouzzner
2026-03-04 14:46:20 -06:00
parent 1297a85b03
commit f04e6e8718
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -18879,7 +18879,7 @@ static int test_wolfSSL_d2i_and_i2d_PublicKey_ecc(void)
const unsigned char* p;
unsigned char *der = NULL;
unsigned char *tmp = NULL;
int derLen;
int derLen = -1;
unsigned char pub_buf[65];
unsigned char pub_spki_buf[91];
const int pub_len = 65;
@@ -18989,7 +18989,7 @@ static int test_wolfSSL_d2i_and_i2d_DSAparams(void)
};
int derInLen = sizeof(derIn);
byte* derOut = NULL;
int derOutLen;
int derOutLen = -1;
byte* p = derIn;
/* Check that params can be successfully decoded. */
+1 -1
View File
@@ -3143,7 +3143,7 @@ int test_wc_PKCS7_GetEnvelopedDataKariRid(void)
byte rid[256];
byte cms[1024];
XFILE cmsFile = XBADFILE;
int ret;
int ret = -1;
word32 ridSz = sizeof(rid);
XFILE skiHexFile = XBADFILE;
byte skiHex[256];