Skip to content

Commit 7fe6eed

Browse files
haydenroche5danielinux
authored andcommitted
Gate inclusion of wc_GenerateSeed in C wrapper on WC_RNG_SEED_CB_ENABLED.
This function is only needed when WC_RNG_SEED_CB_ENABLED is defined. Resolves ZD #15035.
1 parent 5c28f69 commit 7fe6eed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wolfcrypt/_build_ffi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,6 @@ def generate_libwolfssl():
513513
int wc_RNG_GenerateBlock(WC_RNG*, byte*, word32);
514514
int wc_RNG_GenerateByte(WC_RNG*, byte*);
515515
int wc_FreeRng(WC_RNG*);
516-
int wc_GenerateSeed(OS_Seed* os, byte* seed, word32 sz);
517516
518517
int wc_GetPkcs8TraditionalOffset(byte* input, word32* inOutIdx, word32 sz);
519518
"""
@@ -875,6 +874,7 @@ def generate_libwolfssl():
875874
typedef int (*wc_RngSeed_Cb)(OS_Seed* os, byte* seed, word32 sz);
876875
877876
int wc_SetSeed_Cb(wc_RngSeed_Cb cb);
877+
int wc_GenerateSeed(OS_Seed* os, byte* seed, word32 sz);
878878
"""
879879

880880
if FIPS_ENABLED and (FIPS_VERSION > 5 or (FIPS_VERSION == 5 and FIPS_VERSION >= 1)):

0 commit comments

Comments
 (0)