forked from wolfSSL/wolfssl
add Whitewood netRandom client library support
This commit is contained in:
@@ -90,6 +90,13 @@ int testsuite_test(int argc, char** argv)
|
||||
err_sys("Cavium OpenNitroxDevice failed");
|
||||
#endif /* HAVE_CAVIUM */
|
||||
|
||||
#ifdef HAVE_WNR
|
||||
if (wc_InitNetRandom(wnrConfig, NULL, 5000) != 0) {
|
||||
err_sys("Whitewood netRandom global config failed");
|
||||
return -1237;
|
||||
}
|
||||
#endif /* HAVE_WNR */
|
||||
|
||||
StartTCP();
|
||||
|
||||
server_args.argc = argc;
|
||||
@@ -200,6 +207,12 @@ int testsuite_test(int argc, char** argv)
|
||||
#ifdef HAVE_CAVIUM
|
||||
CspShutdown(CAVIUM_DEV_ID);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_WNR
|
||||
if (wc_FreeNetRandom() < 0)
|
||||
err_sys("Failed to free netRandom context");
|
||||
#endif /* HAVE_WNR */
|
||||
|
||||
printf("\nAll tests passed!\n");
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
Reference in New Issue
Block a user