crypt32: Use the enhanced provider rather than the default (base) provider.

This commit is contained in:
Juan Lang 2007-11-07 09:11:49 -08:00 committed by Alexandre Julliard
parent 11a4968734
commit fd1dd39a36
1 changed files with 2 additions and 2 deletions

View File

@ -857,7 +857,7 @@ BOOL WINAPI CryptProtectData(DATA_BLOB* pDataIn,
szDataDescr = empty_str; szDataDescr = empty_str;
/* get crypt context */ /* get crypt context */
if (!CryptAcquireContextW(&hProv,NULL,NULL,CRYPT32_PROTECTDATA_PROV,CRYPT_VERIFYCONTEXT)) if (!CryptAcquireContextW(&hProv,NULL,MS_ENHANCED_PROV_W,CRYPT32_PROTECTDATA_PROV,CRYPT_VERIFYCONTEXT))
{ {
ERR("CryptAcquireContextW failed\n"); ERR("CryptAcquireContextW failed\n");
goto finished; goto finished;
@ -1043,7 +1043,7 @@ BOOL WINAPI CryptUnprotectData(DATA_BLOB* pDataIn,
} }
/* get a crypt context */ /* get a crypt context */
if (!CryptAcquireContextW(&hProv,NULL,NULL,CRYPT32_PROTECTDATA_PROV,CRYPT_VERIFYCONTEXT)) if (!CryptAcquireContextW(&hProv,NULL,MS_ENHANCED_PROV_W,CRYPT32_PROTECTDATA_PROV,CRYPT_VERIFYCONTEXT))
{ {
ERR("CryptAcquireContextW failed\n"); ERR("CryptAcquireContextW failed\n");
goto free_protect_data; goto free_protect_data;