mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-08-11 06:21:19 +02:00
Three more config-specific failures surfaced once the ecc link error was resolved: - test_wolfmath.c: test_wc_SpIntExptGcdDecisionCoverage called sp_gcd, whose definition (sp_int.c) is guarded by !NO_RSA && WOLFSSL_KEY_GEN - narrower than its sp_int.h prototype (|| ). Guard the sp_gcd block with the same condition so builds like --enable-curl (RSA on, key-gen off) link. - test_cmac.c: the crypto-cb badlen callback dereferences wc_CryptoInfo's cmac member (WOLFSSL_CMAC only) and uses the Cmac type, but was guarded by WOLF_CRYPTO_CB alone; configs with the callback framework but no CMAC (e.g. --enable-wolftpm) failed to compile. Match the callback's guard to its only caller (WOLFSSL_CMAC && !NO_AES && WOLFSSL_AES_128 && WOLF_CRYPTO_CB). - test_dsa.c: test_wc_DsaExportKeyRaw_individual_args re-initialized WC_RNG three times but freed it once, leaking two DRBGs (caught by LeakSanitizer in the --enable-all sanitizer build). Free the RNG before each re-init, mirroring the existing DsaKey free-before-reinit. Verified: --enable-curl and --enable-wolftpm build/link; --enable-all with -fsanitize=leak runs unit.test leak-free (test_wc_DsaExportKeyRaw_individual_args passes).
Before creating any new configure files (.conf) read the CONF_FILES_README.md