wolfssl: Call wc_SetSeed_Cb() as required for FIPS-mode
This commit is contained in:
1 parent
3a5f203958
commit
7bfd81d78a
1 file changed
+5
@@ -547,6 +547,11 @@ plugin_t *wolfssl_plugin_create()
|
||||
|
||||
fips_mode = lib->settings->get_bool(lib->settings,
|
||||
"%s.plugins.wolfssl.fips_mode", FALSE, lib->ns);
|
||||
|
||||
#ifdef WC_RNG_SEED_CB
|
||||
wc_SetSeed_Cb(wc_GenerateSeed);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_FIPS
|
||||
if (fips_mode)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user