mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-06 10:10:52 +02:00
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:
@@ -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 */
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user