aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/entropy
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-10-04 04:43:07 -0400
committerJack Lloyd <[email protected]>2016-10-04 04:43:07 -0400
commit5a71e9a9e5a3b9452c94edcc2b5b0806bee38239 (patch)
tree6ac480f6d639991600e9f3abf51b8a1195cbef89 /src/lib/entropy
parentab2842d6f28680b1cac18d5ff6b70b395d1ffb65 (diff)
Fix entropy source selection logic on Windows
Fixes GH #644
Diffstat (limited to 'src/lib/entropy')
-rw-r--r--src/lib/entropy/entropy_srcs.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/entropy/entropy_srcs.cpp b/src/lib/entropy/entropy_srcs.cpp
index 22d2e5e4b..ad84709a5 100644
--- a/src/lib/entropy/entropy_srcs.cpp
+++ b/src/lib/entropy/entropy_srcs.cpp
@@ -95,11 +95,12 @@ std::unique_ptr<Entropy_Source> Entropy_Source::create(const std::string& name)
{
#if defined(BOTAN_HAS_ENTROPY_SRC_DEV_RANDOM)
return std::unique_ptr<Entropy_Source>(new Device_EntropySource(BOTAN_SYSTEM_RNG_POLL_DEVICES));
+#endif
}
if(name == "win32_cryptoapi")
{
-#elif defined(BOTAN_HAS_ENTROPY_SRC_CAPI)
+#if defined(BOTAN_HAS_ENTROPY_SRC_CAPI)
return std::unique_ptr<Entropy_Source>(new Win32_CAPI_EntropySource);
#endif
}