Re: rsaenh: add support for mandatory parameters to RSAENH_CPGetProvParam

2007-05-09 Thread Alexandre Julliard
Mounir IDRASSI <[EMAIL PROTECTED]> writes: > Hi Alexandre, > The problem comes from the file cert.c in crypt32 dll (the real one, not > the one in tests): at line 1976, the value AT_SIGNATURE is hardcoded in > case for failure of CryptGetProvParam. Without my patch, this function > definitely fail

Re: rsaenh: add support for mandatory parameters to RSAENH_CPGetProvParam

2007-05-09 Thread Mounir IDRASSI
>> This patch adds support for mandatory parameters in >> RSAENH_CPGetProvParam. It also adds tests for them. >> The mandatory parameters are: PP_UNIQUE_CONTAINER, PP_PROVTYPE, >> PP_KEYSPEC, PP_KEYSET_TYPE, PP_KEYSTORAGE. >> > > Thanks for

Re: rsaenh: add support for mandatory parameters to RSAENH_CPGetProvParam

2007-05-09 Thread Alexandre Julliard
Mounir IDRASSI <[EMAIL PROTECTED]> writes: > This patch adds support for mandatory parameters in > RSAENH_CPGetProvParam. It also adds tests for them. > The mandatory parameters are: PP_UNIQUE_CONTAINER, PP_PROVTYPE, > PP_KEYSPEC, PP_KEYSET_TYPE, PP_KEYSTORAGE. Thanks

Re: rsaenh: fix bug in RSAENH_CPGetProvParam (corrected again)

2007-05-09 Thread Alexandre Julliard
Mounir IDRASSI <[EMAIL PROTECTED]> writes: > From: Mounir IDRASSI <[EMAIL PROTECTED]> > Date: Wed, 9 May 2007 03:33:45 +0200 > Subject: rsaenh: fix bug in RSAENH_CPGetProvParam Could you please provide a more meaningful subject line to describe your patch? "fix bug&qu

Re: rsaenh: fix bug in RSAENH_CPGetProvParam (corrected)

2007-05-08 Thread Mounir IDRASSI
Hi Juan, Thanks for your explanations. I'm resubmitting the patch. Mounir IDRASSI IDRIX - Cryptography and IT Security Experts http://www.idrix.fr Juan Lang wrote: > Yes, certainly. See e.g. recent patches from Paul Vriens to get the tests > succeeding on Win9x. > --Juan >

Re: rsaenh: fix bug in RSAENH_CPGetProvParam (corrected)

2007-05-08 Thread Juan Lang
Hi again Mounir, > For CRYPT_SEC_DESCR, my previous implementation of the patch tested for > it with an "&" as you are suggesting. But, after Alexandre Julliard > comment, I no more check the current version of windows and return > always CRYPT_SEC_DESCR in RSAENH_CPGetP

Re: rsaenh: fix bug in RSAENH_CPGetProvParam (corrected)

2007-05-08 Thread Mounir IDRASSI
For CRYPT_SEC_DESCR, my previous implementation of the patch tested for it with an "&" as you are suggesting. But, after Alexandre Julliard comment, I no more check the current version of windows and return always CRYPT_SEC_DESCR in RSAENH_CPGetProvParam. So, that's why I put

rsaenh: fix bug in RSAENH_CPGetProvParam (corrected)

2007-05-08 Thread Juan Lang
Hi Mounir, +case PP_KEYSTORAGE: +dwTemp = CRYPT_SEC_DESCR; This looks fine.. +result = CryptGetProvParam(prov, PP_KEYSTORAGE, (LPBYTE)&dwParam, &dataLen, 0); +ok(result && dataLen == sizeof(dwParam) && (dwParam == CRYPT_SEC_DESCR), +"Expected CRYPT_SEC_DESCR t

Re: RSAENH_CPGetProvParam

2007-05-08 Thread Mounir IDRASSI
Actually, the only application I know that uses this expects only CRYPT_SEC_DESCR. So, as you advised, I'll rewrite the patch to remove the version check. Mounir IDRASSI IDRIX - Cryptography and IT Security Experts http://www.idrix.fr Alexandre Julliard wrote: > Mounir IDRASSI <[EMAIL PROTECTED]>

Re: RSAENH_CPGetProvParam

2007-05-08 Thread Alexandre Julliard
Mounir IDRASSI <[EMAIL PROTECTED]> writes: > +case PP_KEYSTORAGE: > +dwTemp = GetVersion(); > +/* for Windows NT, 95,98, Me, return CRYPT_PSTORE | > CRYPT_UI_PROMPT | CRYPT_SEC_DESCR > + * for the others, return CRYPT_SEC_DESCR > + */ > +

Re: rsaenh: fix bugs in RSAENH_CPAcquireContext and RSAENH_CPGetProvParam

2007-05-07 Thread Detlef Riekenberg
On Mo, 2007-05-07 at 18:29 +0200, Mounir IDRASSI wrote: > Thanks for your reply. I'm rewriting the patches and sending them back. > > Mounir IDRASSI > IDRIX - Cryptography and IT Security Experts > http://www.idrix.fr > > Detlef Riekenberg wrote: > > I have no Idea about the code, but the missing

Re: rsaenh: fix bugs in RSAENH_CPAcquireContext and RSAENH_CPGetProvParam

2007-05-07 Thread Mounir IDRASSI
Thanks for your reply. I'm rewriting the patches and sending them back. Mounir IDRASSI IDRIX - Cryptography and IT Security Experts http://www.idrix.fr Detlef Riekenberg wrote: > I have no Idea about the code, but the missing defines should > be a seperate patch. > > Your idention looks broken. >

Re: rsaenh: fix bugs in RSAENH_CPAcquireContext and RSAENH_CPGetProvParam

2007-05-07 Thread Detlef Riekenberg
On Sa, 2007-05-05 at 19:16 +0200, Mounir IDRASSI wrote: > --- a/include/wincrypt.h > +++ b/include/wincrypt.h > +/* Values returned by CryptGetProvParam of PP_KEYSTORAGE */ > +#define CRYPT_SEC_DESCR 0x0001 > +#define CRYPT_PSTORE0x0002 > +#define CRYPT_UI_PROMPT

Re: rsaenh: fix bugs in RSAENH_CPAcquireContext and RSAENH_CPGetProvParam

2007-05-06 Thread Mounir IDRASSI
MAIL PROTECTED]> Date: Sun, 6 May 2007 21:36:08 +0200 Subject: rsaenh: fix bugs in RSAENH_CPAcquireContext and RSAENH_CPGetProvParam --- dlls/rsaenh/rsaenh.c | 32 ++- dlls/rsaenh/tests/rsaenh.c | 61 --- include/wincrypt.h

Re: rsaenh: fix bugs in RSAENH_CPAcquireContext and RSAENH_CPGetProvParam

2007-05-05 Thread Maarten Lankhorst
Mounir IDRASSI schreef: > We have found few bugs in the MS Enhanced CSP implementation in wine > (rsaenh.dll) and you'll find attached a patch that corrects them. Hello Mounir, Bug fixes are always welcome in wine. But fixing bugs is one thing, but it is also very recommended to add tests to verif

rsaenh: fix bugs in RSAENH_CPAcquireContext and RSAENH_CPGetProvParam

2007-05-05 Thread Mounir IDRASSI
s the container for the local user, while it should check the CRYPT_MACHINE_KEYSET flag to see if it should be deleted on the local machine or for the local user. - In RSAENH_CPGetProvParam: The following mandatory parameters were not supported : PP_UNIQUE_CONTAINER, PP_PROVTYPE, PP_KEYSPEC, PP_KEYSET