aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 5dad0d144..dc7dc917f 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -8,6 +8,7 @@
#include <botan/def_char.h>
#include <botan/eng_def.h>
#include <botan/timers.h>
+#include <botan/parsing.h>
#if defined(BOTAN_EXT_MUTEX_PTHREAD)
#include <botan/mux_pthr.h>
@@ -157,11 +158,12 @@ std::vector<EntropySource*> Builtin_Modules::entropy_sources() const
#endif
#if defined(BOTAN_EXT_ENTROPY_SRC_EGD)
- sources.push_back(new EGD_EntropySource);
+ sources.push_back(new EGD_EntropySource(split_on("/var/run/egd-pool:/dev/egd-pool", ':')));
#endif
#if defined(BOTAN_EXT_ENTROPY_SRC_DEVICE)
- sources.push_back(new Device_EntropySource);
+ sources.push_back(
+ new Device_EntropySource(split_on("/dev/random:/dev/srandom:/dev/urandom", ':')));
#endif
#if defined(BOTAN_EXT_ENTROPY_SRC_CAPI)
@@ -173,7 +175,7 @@ std::vector<EntropySource*> Builtin_Modules::entropy_sources() const
#endif
#if defined(BOTAN_EXT_ENTROPY_SRC_UNIX)
- sources.push_back(new Unix_EntropySource);
+ sources.push_back(new Unix_EntropySource(split_on("/bin:/sbin:/usr/bin:/usr/sbin", ':')));
#endif
#if defined(BOTAN_EXT_ENTROPY_SRC_BEOS)