Various build fixes:

* Fix api.c build error with `NO_FILESYSTEM` and `WOLFSSL_CERT_EXT`.
* Fix for building tests/suites.c with static memory (missing `LARGEST_MEM_BUCKET`).
* Always expose `wc_ecc_set_rng` for compatibility.
This commit is contained in:
David Garske
2022-10-13 12:49:06 -07:00
parent 72839d05f5
commit e2566bab21
5 changed files with 12 additions and 10 deletions
+6 -2
View File
@@ -12785,21 +12785,25 @@ void wc_ecc_fp_free(void)
#endif /* FP_ECC */
#ifdef ECC_TIMING_RESISTANT
int wc_ecc_set_rng(ecc_key* key, WC_RNG* rng)
{
int err = 0;
#ifdef ECC_TIMING_RESISTANT
if (key == NULL) {
err = BAD_FUNC_ARG;
}
else {
key->rng = rng;
}
#else
(void)key;
(void)rng;
/* report success, not an error if ECC_TIMING_RESISTANT is not defined */
#endif
return err;
}
#endif
#ifdef HAVE_ECC_ENCRYPT