Skip to content

Commit 1f34b71

Browse files
authored
Merge pull request #8660 from douzzer/20250411-fixes
20250411-fixes
2 parents 8ee7d38 + 7acc336 commit 1f34b71

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/pq-all.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ jobs:
1818
matrix:
1919
config: [
2020
# Add new configs here
21-
'--enable-intelasm --enable-sp-asm --enable-all --enable-testcert --enable-acert --enable-dtls13 --enable-dtls-mtu --enable-dtls-frag-ch --enable-dtlscid --enable-quic --with-sys-crypto-policy --enable-experimental --enable-kyber=yes,original --enable-lms --enable-xmss --enable-dilithium --enable-dual-alg-certs --disable-qt CPPFLAGS="-pedantic -Wdeclaration-after-statement -DWOLFCRYPT_TEST_LINT -DNO_WOLFSSL_CIPHER_SUITE_TEST"'
21+
'--enable-intelasm --enable-sp-asm --enable-all --enable-testcert --enable-acert --enable-dtls13 --enable-dtls-mtu --enable-dtls-frag-ch --enable-dtlscid --enable-quic --with-sys-crypto-policy --enable-experimental --enable-kyber=yes,original --enable-lms --enable-xmss --enable-dilithium --enable-dual-alg-certs --disable-qt CPPFLAGS="-pedantic -Wdeclaration-after-statement -DWOLFCRYPT_TEST_LINT -DNO_WOLFSSL_CIPHER_SUITE_TEST -DTEST_LIBWOLFSSL_SOURCES_INCLUSION_SEQUENCE"',
22+
'--enable-intelasm --enable-sp-asm --enable-all --enable-testcert --enable-acert --enable-dtls13 --enable-dtls-mtu --enable-dtls-frag-ch --enable-dtlscid --enable-quic --with-sys-crypto-policy --enable-experimental --enable-kyber=yes,original --enable-lms --enable-xmss --enable-dilithium --enable-dual-alg-certs --disable-qt CPPFLAGS="-pedantic -Wdeclaration-after-statement -DWOLFCRYPT_TEST_LINT -DNO_WOLFSSL_CIPHER_SUITE_TEST -DTEST_LIBWOLFSSL_SOURCES_INCLUSION_SEQUENCE" CC=c++'
2223
]
2324
name: make check
2425
if: github.repository_owner == 'wolfssl'

src/internal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42369,7 +42369,7 @@ WOLFSSL_BY_DIR_HASH* wolfSSL_sk_BY_DIR_HASH_value(
4236942369
WOLFSSL_BY_DIR_HASH* wolfSSL_sk_BY_DIR_HASH_pop(
4237042370
WOLF_STACK_OF(WOLFSSL_BY_DIR_HASH)* sk)
4237142371
{
42372-
return wolfSSL_sk_pop(sk);
42372+
return (WOLFSSL_BY_DIR_HASH *)wolfSSL_sk_pop(sk);
4237342373
}
4237442374
/* release all contents in stack, and then release stack itself. */
4237542375
/* Second argument is a function pointer to release resources. */
@@ -42501,7 +42501,7 @@ WOLFSSL_BY_DIR_entry* wolfSSL_sk_BY_DIR_entry_value(
4250142501
WOLFSSL_BY_DIR_entry* wolfSSL_sk_BY_DIR_entry_pop(
4250242502
WOLF_STACK_OF(WOLFSSL_BY_DIR_entry)* sk)
4250342503
{
42504-
return wolfSSL_sk_pop(sk);
42504+
return (WOLFSSL_BY_DIR_entry *)wolfSSL_sk_pop(sk);
4250542505
}
4250642506
/* release all contents in stack, and then release stack itself. */
4250742507
/* Second argument is a function pointer to release resources. */

tests/api.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15772,11 +15772,13 @@ static int test_wc_PKCS7_EncodeSignedData(void)
1577215772
{
1577315773
int signedSz = 0, i;
1577415774
encodeSignedDataStream strm;
15775-
int numberOfChunkSizes = 4;
15776-
word32 chunkSizes[] = { 4080, 4096, 5000, 9999 };
15775+
static const int numberOfChunkSizes = 4;
15776+
static const word32 chunkSizes[] = { 4080, 4096, 5000, 9999 };
1577715777
/* chunkSizes were chosen to test around the default 4096 octet string
1577815778
* size used in pkcs7.c */
1577915779

15780+
XMEMSET(&strm, 0, sizeof(strm));
15781+
1578015782
ExpectNotNull(pkcs7 = wc_PKCS7_New(HEAP_HINT, testDevId));
1578115783
ExpectIntEQ(wc_PKCS7_Init(pkcs7, HEAP_HINT, INVALID_DEVID), 0);
1578215784

@@ -33032,7 +33034,7 @@ static int test_wolfSSL_PKCS8_d2i(void)
3303233034
bio = NULL;
3303333035

3303433036
/* https://github.com/wolfSSL/wolfssl/issues/8610 */
33035-
bytes = (int)XSTRLEN((void*)pkcs8_buffer);
33037+
bytes = (int)XSTRLEN((char *)pkcs8_buffer);
3303633038
ExpectNotNull(bio = BIO_new_mem_buf((void*)pkcs8_buffer, bytes));
3303733039
ExpectIntEQ(BIO_get_mem_data(bio, &p), bytes);
3303833040
ExpectIntEQ(XMEMCMP(p, pkcs8_buffer, bytes), 0);

0 commit comments

Comments
 (0)