Kees Cook kees@outflux.net writes:
ChangeLog: Create basic test suite for CryptProtectData/CryptUnprotectData.
The tests fail here:
../../../tools/runtest -q -P wine -M crypt32.dll -T ../../.. -p crypt32_test.exe.so protectdata.c && touch protectdata.ok err:crypt:CryptProtectData CryptAcquireContextW failed protectdata.c:89: Test failed: Encrypting without entropy. protectdata.c:91: Test failed: Wrong (2148073494) GetLastError seen err:crypt:CryptProtectData CryptAcquireContextW failed protectdata.c:99: Test failed: Encrypting with entropy. protectdata.c:101: Test failed: Wrong (2148073494) GetLastError seen err:crypt:CryptProtectData CryptAcquireContextW failed protectdata.c:111: Test failed: Encrypting with entropy and no description. protectdata.c:113: Test failed: Wrong (2148073494) GetLastError seen protectdata.c:127: Test failed: CryptProtectData failed to run, so I can't test its output make[3]: *** [protectdata.ok] Error 7
On Fri, May 20, 2005 at 09:24:56PM +0200, Alexandre Julliard wrote:
err:crypt:CryptProtectData CryptAcquireContextW failed
Hm. This may be related to not have an initial crypt session for the user. I think I built one (on accident?) while playing with various test scripts, so I suspect something is in the registry. I will investigate.