forked from wolfSSL/wolfssl
linuxkm: in module_hooks.c:wolfssl_init(), add support for WC_RNG_SEED_CB.
This commit is contained in:
@@ -241,7 +241,14 @@ static int wolfssl_init(void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef NO_CRYPT_TEST
|
#ifndef NO_CRYPT_TEST
|
||||||
|
|
||||||
|
#ifdef WC_RNG_SEED_CB
|
||||||
|
ret = wc_SetSeed_Cb(wc_GenerateSeed);
|
||||||
|
if (ret == 0)
|
||||||
|
#endif
|
||||||
|
{
|
||||||
ret = wolfcrypt_test(NULL);
|
ret = wolfcrypt_test(NULL);
|
||||||
|
}
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
pr_err("wolfcrypt self-test failed with return code %d.\n", ret);
|
pr_err("wolfcrypt self-test failed with return code %d.\n", ret);
|
||||||
(void)libwolfssl_cleanup();
|
(void)libwolfssl_cleanup();
|
||||||
|
Reference in New Issue
Block a user