Add provisional Visual Studio 2010 project

This commit is contained in:
Vinnie Falco
2013-06-19 15:59:27 -07:00
parent 646ed2690c
commit 3a8299e03a
10 changed files with 212 additions and 11 deletions

View File

@@ -73,7 +73,7 @@ bool RandomNumbers::platformAddEntropy ()
DWORD count = 500;
HCRYPTPROV cryptoHandle;
if (!CryptGetDefaultProvider (PROV_RSA_FULL, NULL, CRYPT_MACHINE_DEFAULT, name, &count))
if (!CryptGetDefaultProviderA (PROV_RSA_FULL, NULL, CRYPT_MACHINE_DEFAULT, name, &count))
{
#ifdef DEBUG
std::cerr << "Unable to get default crypto provider" << std::endl;
@@ -81,7 +81,7 @@ bool RandomNumbers::platformAddEntropy ()
return false;
}
if (!CryptAcquireContext (&cryptoHandle, NULL, name, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT | CRYPT_SILENT))
if (!CryptAcquireContextA (&cryptoHandle, NULL, name, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT | CRYPT_SILENT))
{
#ifdef DEBUG
std::cerr << "Unable to acquire crypto provider" << std::endl;