diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-04-29 09:13:20 +0000 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-04-29 09:13:20 +0000 |
commit | f67eebccc8d47046c9c821ad24a161e302fbcad8 (patch) | |
tree | 246d9551d031d0c5778d89b8cd82bb004749d3cd /src/libstrongswan/plugins/random | |
parent | de92b9e70c36c6f098913dca68d776e487d32edd (diff) | |
download | strongswan-f67eebccc8d47046c9c821ad24a161e302fbcad8.tar.bz2 strongswan-f67eebccc8d47046c9c821ad24a161e302fbcad8.tar.xz |
changed RNG_REAL to RNG_TRUE
Diffstat (limited to 'src/libstrongswan/plugins/random')
-rw-r--r-- | src/libstrongswan/plugins/random/random_plugin.c | 2 | ||||
-rw-r--r-- | src/libstrongswan/plugins/random/random_rng.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libstrongswan/plugins/random/random_plugin.c b/src/libstrongswan/plugins/random/random_plugin.c index 3eff81ee0..8168bb54d 100644 --- a/src/libstrongswan/plugins/random/random_plugin.c +++ b/src/libstrongswan/plugins/random/random_plugin.c @@ -54,7 +54,7 @@ plugin_t *plugin_create() lib->crypto->add_rng(lib->crypto, RNG_STRONG, (rng_constructor_t)random_rng_create); - lib->crypto->add_rng(lib->crypto, RNG_REAL, + lib->crypto->add_rng(lib->crypto, RNG_TRUE, (rng_constructor_t)random_rng_create); return &this->public.plugin; diff --git a/src/libstrongswan/plugins/random/random_rng.c b/src/libstrongswan/plugins/random/random_rng.c index 45a1b5138..018b4972b 100644 --- a/src/libstrongswan/plugins/random/random_rng.c +++ b/src/libstrongswan/plugins/random/random_rng.c @@ -114,7 +114,7 @@ random_rng_t *random_rng_create(rng_quality_t quality) this->public.rng.allocate_bytes = (void (*) (rng_t *, size_t, chunk_t*)) allocate_bytes; this->public.rng.destroy = (void (*) (rng_t *))destroy; - if (quality == RNG_REAL) + if (quality == RNG_TRUE) { this->file = DEV_RANDOM; } |