botan: Use strongSwan's RNG interface in Botan plugin

This allows using rng_t implementations provided by other plugins to
serve as RNG for Botan.

Closes strongswan/strongswan#192.
This commit is contained in:
René Fischer
2021-02-15 09:27:51 +01:00
committed by Tobias Brunner
parent 5ffc1ec423
commit 4261fcedec
12 changed files with 92 additions and 11 deletions
@@ -216,7 +216,7 @@ private_key_t *botan_ed_private_key_gen(key_type_t type, va_list args)
break;
}
if (botan_rng_init(&rng, "system"))
if (!botan_get_rng(&rng, RNG_TRUE))
{
return NULL;
}