http://bugs.winehq.org/show_bug.cgi?id=6194
------- Additional Comments From hans@it.vu.nl 2007-26-05 14:23 ------- With an improved stub for CryptCATOpen the installer crashes in a call to CryptCATGetCatAttrInfo, which is unimplemented and also undocumented. I arrived at the following prototype based on trial and error and some tests:
CRYPTCATATTRIBUTE * WINAPI CryptCATGetCatAttrInfo(HANDLE catalog, LPWSTR attr)
To make these functions work we will need to parse catalog files which are also undocumented. Looking at hexdumps I recognized fragments of digital certificates and indeed the catalog file at hand embeds PKCS7 encoded certificates in DER format. This can be shown by the following command:
$ openssl pkcs7 -inform DER -text -print_certs -noout < catalog.cat
There is a viewer for catalog files that reveals more. Start it by right clicking -> Open on a catalog file or from the command line like this:
$ rundll32.exe cryptext.dll,CryptExtOpenCAT catalog.cat