aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorslaviber <slavimber@gmail.com>2016-10-07 22:56:22 +0300
committerslaviber <slavimber@gmail.com>2016-10-07 22:56:22 +0300
commit8197c8a1cdb88228daff05a78f5a0958e4b9536c (patch)
tree50ce8217a2fcbb96fe2f36981c3ebca1e9f05302 /src/lib
parentbd3a91bdc492ba1b2fabede888d7634d089de684 (diff)
The implicit constructor does not specify a provider.
With no provider specified, Win32_CAPI_EntropySource::poll does not call ::CryptGenRandom and returns 0, leading to subsequent PRNG_Unseeded exceptions.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/entropy/entropy_srcs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/entropy/entropy_srcs.cpp b/src/lib/entropy/entropy_srcs.cpp
index ad84709a5..5c232a56e 100644
--- a/src/lib/entropy/entropy_srcs.cpp
+++ b/src/lib/entropy/entropy_srcs.cpp
@@ -101,7 +101,7 @@ std::unique_ptr<Entropy_Source> Entropy_Source::create(const std::string& name)
if(name == "win32_cryptoapi")
{
#if defined(BOTAN_HAS_ENTROPY_SRC_CAPI)
- return std::unique_ptr<Entropy_Source>(new Win32_CAPI_EntropySource);
+ return std::unique_ptr<Entropy_Source>(new Win32_CAPI_EntropySource("RSA_FULL"));
#endif
}