CryptAcquireContext can have multiple flags defined at the same time, V2

Mounir IDRASSI mounir.idrassi at idrix.fr
Mon Jun 11 15:29:45 CDT 2007


Hi Marteen,
As you mentioned, I can confirm that this combination of flags is
allowed only when the default container is specified (the second
parameter pszContainer set to NULL). So, a small patch would consist of
adding this flags combination to the same switch code of
CRYPT_VERIFYCONTEXT.
Could you please send the patching code along with the test to the
patches list?.
Thanks for pointing this behavior.

Mounir IDRASSI
IDRIX - Cryptography and IT Security Experts
http://www.idrix.fr

Maarten Lankhorst wrote:
> Hello,
>
> After retrying, I tried the same function arguments that msn messenger
> 7.5 passes to advapi32. It seems that function _is_ allowed to define
> the flags CRYPT_NEWKEYSET and CRYPT_VERIFYCONTEXT at the same time.
>
> I tried the same flags for advapi32 crosstest 'crypt' in linux and windows.
>
> Linux:
> $ wine advapi32_crosstest.exe crypt
> crypt.c:198: Test failed: 0/80090009
>
> windows 2000:
> Test didn't fail.
>
> Patch attached.
> Note that second parameter must be NULL for this call to succeed.
>
> Maarten
>   




More information about the wine-devel mailing list