wolfcrypt/src/rng_bank.c and wolfssl/wolfcrypt/rng_bank.h: add !WC_NO_CONSTRUCTORS gate around wc_rng_new_bankref().

This commit is contained in:
Daniel Pouzzner
2026-03-17 17:45:09 -05:00
parent 7c0d64ade5
commit 87125c49e1
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -708,7 +708,7 @@ WOLFSSL_API int wc_BankRef_Release(WC_RNG *rng)
return ret;
}
#ifndef WC_RNG_BANK_STATIC
#if !defined(WC_RNG_BANK_STATIC) && !defined(WC_NO_CONSTRUCTORS)
WOLFSSL_API int wc_rng_new_bankref(struct wc_rng_bank *bank, WC_RNG **rng) {
int ret;
@@ -732,7 +732,7 @@ WOLFSSL_API int wc_rng_new_bankref(struct wc_rng_bank *bank, WC_RNG **rng) {
return ret;
}
#endif /* !WC_RNG_BANK_STATIC */
#endif /* !WC_RNG_BANK_STATIC && !WC_NO_CONSTRUCTORS */
#endif /* WC_DRBG_BANKREF */
+2 -1
View File
@@ -156,8 +156,9 @@ WOLFSSL_API int wc_InitRng_BankRef(struct wc_rng_bank *bank, WC_RNG *rng);
WOLFSSL_API int wc_BankRef_Release(WC_RNG *rng);
#ifndef WC_RNG_BANK_STATIC
#if !defined(WC_RNG_BANK_STATIC) && !defined(WC_NO_CONSTRUCTORS)
WOLFSSL_API int wc_rng_new_bankref(struct wc_rng_bank *bank, WC_RNG **rng);
/* note, free with wc_rng_free(). */
#endif
#endif /* WC_DRBG_BANKREF */