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 | |
parent | 2882141ba37e7605dcb2104234b3b4d11ba57810 (diff) |
Fix System_RNG for Windows, fix nmake clean target
Diffstat (limited to 'src')
-rw-r--r-- | src/build-data/makefile/nmake.in | 2 | ||||
-rw-r--r-- | src/lib/rng/system_rng/system_rng.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/build-data/makefile/nmake.in b/src/build-data/makefile/nmake.in index 69c6a24ca..6ce3a536e 100644 --- a/src/build-data/makefile/nmake.in +++ b/src/build-data/makefile/nmake.in @@ -59,7 +59,7 @@ docs: %{build_doc_commands} clean: - $(RM) %{build_dir}\lib\* %{build_dir}\tests\* + $(RM) %{build_dir}\obj\* %{build_dir}\tests\* $(RM) *.manifest *.exp *.dll $(RM) $(LIBRARIES) $(APP) $(TEST) 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) { |