unit-tests: Generate weak keys with gcrypt plugin (but quickly)
authorTobias Brunner <tobias@strongswan.org>
Thu, 27 Feb 2014 13:07:06 +0000 (14:07 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 20 Mar 2014 14:29:27 +0000 (15:29 +0100)
src/libstrongswan/tests/test_runner.c

index 0b26ee1..d1d0a62 100644 (file)
@@ -185,6 +185,9 @@ static bool pre_test(test_runner_init_t init)
                        "libstrongswan.plugins.random.random",
                        lib->settings->get_str(lib->settings,
                                "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)
        {