mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-10 22:10:53 +02:00
479659fa96
The CAVP self-test build (--enable-selftest) failed to compile test_aes.c: wc_AesGcmSetExtIV (test_wc_AesGcmDecisionCoverage) and wc_Gmac/wc_GmacVerify (test_wc_AesGmacArgMcdc) are declared only under !WC_NO_RNG in mainline and are absent from the frozen self-test module's headers (they are present under FIPS - the apple-M1 FIPS build compiled and passed both), so -Werror=implicit-function- declaration aborted the build. Gate those specific calls (and the now-otherwise-unused iv buffer) on !defined(WC_NO_RNG) && !defined(HAVE_SELFTEST). wc_GmacSetKey stays available, so its coverage is retained under self-test. FIPS builds are unaffected. Verified: --enable-all still builds and both tests pass; preprocessing test_aes.c with -DHAVE_SELFTEST leaves no wc_AesGcmSetExtIV/wc_Gmac/wc_GmacVerify calls in any always-compiled function (remaining ones are in the WOLFSSL_AESGCM_STREAM stream test, which the self-test config disables).
Before creating any new configure files (.conf) read the CONF_FILES_README.md