linuxkm: in module_hooks.c:wolfssl_init(), add support for WC_RNG_SEED_CB.

This commit is contained in:
Daniel Pouzzner
2021-10-22 22:55:23 -05:00
parent 071be3171e
commit 8ee49cd50c

View File

@ -241,7 +241,14 @@ static int wolfssl_init(void)
#endif
#ifndef NO_CRYPT_TEST
ret = wolfcrypt_test(NULL);
#ifdef WC_RNG_SEED_CB
ret = wc_SetSeed_Cb(wc_GenerateSeed);
if (ret == 0)
#endif
{
ret = wolfcrypt_test(NULL);
}
if (ret < 0) {
pr_err("wolfcrypt self-test failed with return code %d.\n", ret);
(void)libwolfssl_cleanup();