unit-tests: Generate weak keys with gcrypt plugin (but quickly)
This commit is contained in:
parent
fc4f8fc30e
commit
48ac56e2aa
|
@ -185,6 +185,9 @@ static bool pre_test(test_runner_init_t init)
|
||||||
"libstrongswan.plugins.random.random",
|
"libstrongswan.plugins.random.random",
|
||||||
lib->settings->get_str(lib->settings,
|
lib->settings->get_str(lib->settings,
|
||||||
"libstrongswan.plugins.random.urandom", "/dev/urandom"));
|
"libstrongswan.plugins.random.urandom", "/dev/urandom"));
|
||||||
|
/* same for the gcrypt plugin */
|
||||||
|
lib->settings->set_default_str(lib->settings,
|
||||||
|
"libstrongswan.plugins.gcrypt.quick_random", "yes");
|
||||||
|
|
||||||
if (lib->leak_detective)
|
if (lib->leak_detective)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue