http://bugs.winehq.org/show_bug.cgi?id=17760
Summary: CryptAcquireContext: Use MS_ENHANCED_PROV instead of MS_DEF_PROV when pszProvider == NULL Product: Wine Version: 1.1.17 Platform: All OS/Version: All Status: UNCONFIRMED Severity: normal Priority: P2 Component: crypt32 AssignedTo: wine-bugs@winehq.org ReportedBy: mb@smartftp.com
If the pszProvider parameter in the CryptAcquireContext function is NULL Wine seems to use the MS_DEF_PROV provider (Base) by default. However on Windows (at least XP and higher) the default provider depends on many factors (e.g. registry) and by default (see Note 1) the MS_ENHANCED_PROV or a newer/stronger provider is selected.
The result is that applications that use CryptAcquireContext with a NULL pszProvider parameter assume that a Strong or better provider is selected and therefore fail under Wine if they use an algorithm (or keylen) that is not supported by the Base provider.
I strongly recommend to use the Strong/Enhanced provider in this case.
Note 1 ====== "When an application calls CryptAcquireContext and specifies a provider type but no provider name, the function looks for a named provider, first checking a list of default named providers associated with the logged-on user and, if that fails, from a list of default named providers associated with the computer. After the provider name has been determined, the CryptAcquireContext function searches for the CSP for that provider, loads it, and returns its handle." Reference: http://msdn.microsoft.com/en-us/library/aa380246(VS.85).aspx
http://bugs.winehq.org/show_bug.cgi?id=17760
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- OS/Version|All |other Platform|All |Other
--- Comment #1 from Dmitry Timoshkov dmitry@codeweavers.com 2009-03-16 02:41:59 --- Please send a patch to wine-patches.
http://bugs.winehq.org/show_bug.cgi?id=17760
--- Comment #2 from Austin English austinenglish@gmail.com 2009-09-15 15:40:21 --- Is this still an issue in current (1.1.29 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=17760
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |arethusa26@gmail.com
--- Comment #3 from Juan Lang juan_lang@yahoo.com 2009-10-19 15:41:11 --- *** Bug 20418 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=17760
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #4 from Juan Lang juan_lang@yahoo.com 2009-10-19 15:46:28 --- Confirming due to bug 20418. Patch sent: http://www.winehq.org/pipermail/wine-patches/2009-October/080213.html
http://bugs.winehq.org/show_bug.cgi?id=17760
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #5 from Juan Lang juan_lang@yahoo.com 2009-10-20 10:41:35 --- Fixed by commit 7a6381e852a4daf0bbc77ffcb9da3bd85002e1d8.
http://bugs.winehq.org/show_bug.cgi?id=17760
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alexandre Julliard julliard@winehq.org 2009-10-23 13:18:55 --- Closing bugs fixed in 1.1.32.