Implemented libstrongswan.plugins.random.strong_equals_true option

This commit is contained in:
Andreas Steffen
2013-11-16 00:11:40 +01:00
parent 85adb98daf
commit b63246c5db
4 changed files with 26 additions and 0 deletions
@@ -99,6 +99,10 @@ random_rng_t *random_rng_create(rng_quality_t quality)
this->fd = random_plugin_get_dev_random();
break;
case RNG_STRONG:
this->fd = random_plugin_get_strong_equals_true() ?
random_plugin_get_dev_random() :
random_plugin_get_dev_urandom();
break;
case RNG_WEAK:
default:
this->fd = random_plugin_get_dev_urandom();