Try to fix secure RNG on Windows

This commit is contained in:
def 2015-03-15 11:59:17 +01:00
parent ad255ccfe5
commit 9b27da8e4a

View file

@ -2383,7 +2383,7 @@ int secure_random_init()
return 0;
}
#if defined(CONF_FAMILY_WINDOWS)
if(CryptAcquireContext(&secure_random_data.provider, NULL, NULL, PROV_RSA_FULL, 0))
if(CryptAcquireContext(&secure_random_data.provider, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT))
{
secure_random_data.initialized = 1;
return 0;