diff options
author | lloyd <[email protected]> | 2014-12-22 01:09:10 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2014-12-22 01:09:10 +0000 |
commit | 66723650cab63f541e64145272821984a0f6117e (patch) | |
tree | 020bcce21629abf858ae5b146d81ba3b6b54edbc /src/lib/rng | |
parent | 2882141ba37e7605dcb2104234b3b4d11ba57810 (diff) |
Fix System_RNG for Windows, fix nmake clean target
Diffstat (limited to 'src/lib/rng')
-rw-r--r-- | src/lib/rng/system_rng/system_rng.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/rng/system_rng/system_rng.cpp b/src/lib/rng/system_rng/system_rng.cpp index 70222530c..caaa3968a 100644 --- a/src/lib/rng/system_rng/system_rng.cpp +++ b/src/lib/rng/system_rng/system_rng.cpp @@ -56,7 +56,7 @@ System_RNG::System_RNG() { #if defined(BOTAN_TARGET_OS_HAS_CRYPTGENRANDOM) - if(!CryptAcquireContext(&m_prov, 0, 0, RSA_FULL, CRYPT_VERIFYCONTEXT)) + if(!CryptAcquireContext(&m_prov, 0, 0, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) throw std::runtime_error("System_RNG failed to acquire crypto provider"); #else @@ -80,7 +80,7 @@ System_RNG::~System_RNG() void System_RNG::randomize(byte buf[], size_t len) { #if defined(BOTAN_TARGET_OS_HAS_CRYPTGENRANDOM) - ::CryptGenRandom(m_prov, static_cast<DWORD>(len), buf)) + ::CryptGenRandom(m_prov, static_cast<DWORD>(len), buf); #else while(len) { |