mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-05-05 01:54:13 +02:00
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:
+6
-2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user