mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-10 23:50:51 +02:00
8324b67fae
The new MC/DC coverage tests broke many CI configs under -Werror (which is auto-enabled for in-git-tree builds). Fixes, each verified with a real -Werror build of the relevant config: - test_aes.c: wrap the whole test_wc_AesSivArgMcdc definition in WOLFSSL_AES_SIV && WOLFSSL_AES_128 (was body-only guarded while its prototype is guarded) -> fixes -Wmissing-prototypes when SIV is off. - test_aes.c: mark key/in/out (void) in test_wc_AesModesArgMcdc; they are used only by the per-mode (CTR/CFB/OFB) blocks -> fixes -Wunused-variable when no such mode is enabled. - api.c: guard the test_CryptoCb_* callback helpers with WOLF_CRYPTO_CB && WOLFSSL_TEST_STATIC_BUILD to match their only caller -> fixes -Wunused-function in cryptocb non-static builds. - api.c: register test_wc_CryptoCb_registry under its actual definition condition (WOLF_CRYPTO_CB && HAVE_IO_TESTS_DEPENDENCIES && !ONLY_*) and keep test_wc_CryptoCb registered unconditionally (as on master) -> fixes undeclared / defined-but-unused across cryptocb configs. - api.c: declare session-cache 'mode' under OPENSSL_EXTRA (its only uses) -> fixes -Wunused-variable without opensslextra. - api.c: guard the Enable/DisableOCSPStapling calls in test_wolfSSL_crl_ocsp_object_api with HAVE_CERTIFICATE_STATUS_REQUEST[_V2] -> fixes undefined references with OCSP but no stapling. Verified clean under: --enable-ocsp --enable-ocspstapling, --enable-ocsp (no stapling), and --enable-all; unit.test runs pass.
Before creating any new configure files (.conf) read the CONF_FILES_README.md