[Bug 50233] New: Signtools from Windows 10 SDK needs 'wintrust.CryptCATAdminAcquireContext2' implementation
WineHQ Bugzilla
wine-bugs at winehq.org
Tue Dec 1 06:37:23 CST 2020
https://bugs.winehq.org/show_bug.cgi?id=50233
Bug ID: 50233
Summary: Signtools from Windows 10 SDK needs
'wintrust.CryptCATAdminAcquireContext2' implementation
Product: Wine
Version: 5.22
Hardware: x86-64
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: wintrust
Assignee: wine-bugs at winehq.org
Reporter: focht at gmx.net
Distribution: ---
Hello folks,
as it says.
The stub was added in bug 45998
(https://source.winehq.org/git/wine.git/commitdiff/479c30072884c6342bc08faae17f0342a107edea).
Download(s):
*
"https://download.microsoft.com/download/1/c/3/1c3d5161-d9e9-4e4b-9b43-b70fe8be268c/windowssdk/Installers/Windows
SDK Signing Tools-x86_en-us.msi"
*
https://download.microsoft.com/download/1/c/3/1c3d5161-d9e9-4e4b-9b43-b70fe8be268c/windowssdk/Installers/4c3ef4b2b1dc72149f979f4243d2accf.cab
*
https://download.microsoft.com/download/1/c/3/1c3d5161-d9e9-4e4b-9b43-b70fe8be268c/windowssdk/Installers/685f3d4691f444bc382762d603a99afc.cab
*
https://download.microsoft.com/download/1/c/3/1c3d5161-d9e9-4e4b-9b43-b70fe8be268c/windowssdk/Installers/e5c4b31ff9997ac5603f4f28cd7df602.cab
*
https://download.microsoft.com/download/1/c/3/1c3d5161-d9e9-4e4b-9b43-b70fe8be268c/windowssdk/Installers/e98fa5eb5fee6ce17a7a69d585870b7c.cab
You can get these direct downloads by running the the Windows 10 SDK
web-installer, selecting the wanted packages and inspect the log file.
https://developer.microsoft.com/en-us/windows/downloads/sdk-archive/
I've created snapshots on archive.org because like other vendors, MS has a bad
habit of silently removing stuff after a while "rewriting history; it didn't
happen". Just prepend "https://web.archive.org/web/*/" to the original direct
links from MS.
One liner for downloading all required payloads:
--- snip ---
$ for file in
{4c3ef4b2b1dc72149f979f4243d2accf,685f3d4691f444bc382762d603a99afc,e5c4b31ff9997ac5603f4f28cd7df602,e98fa5eb5fee6ce17a7a69d585870b7c}.cab
"Windows SDK Signing Tools-x86_en-us.msi" ; do wget
"https://download.microsoft.com/download/1/c/3/1c3d5161-d9e9-4e4b-9b43-b70fe8be268c/windowssdk/Installers/$file"
; done
--- snip ---
Prerequisite: 'winetricks -q mfc42' (32-bit)
--- snip ---
$ pwd
/home/focht/.wine/drive_c/Program Files (x86)/Windows
Kits/10/bin/10.0.19041.0/x86
$ wine ./signtool.exe verify signtool.exe
0024:fixme:wintrust:CryptCATAdminAcquireContext2 0031E060 (null) (null)
00000000 0 stub
SignTool Error: CryptCATAdminAcquireContext2 returned error: 0x00000078
Call not implemented.
Unexpected error: "CryptCATAdminAcquireContext2 failed".
--- snip ---
Wine source:
https://source.winehq.org/git/wine.git/blob/2ad09b01673381261815bfc804a2f69ce4d85f86:/dlls/wintrust/crypt.c#l148
--- snip ---
148 /***********************************************************************
149 * CryptCATAdminAcquireContext2 (WINTRUST.@)
150 */
151 BOOL WINAPI CryptCATAdminAcquireContext2(HCATADMIN *catAdmin, const GUID
*sys, const WCHAR *algorithm,
152 const CERT_STRONG_SIGN_PARA
*policy, DWORD flags)
153 {
154 FIXME("%p %s %s %p %x stub\n", catAdmin, debugstr_guid(sys),
debugstr_w(algorithm), policy, flags);
155 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
156 return FALSE;
157 }
--- snip ---
$ sha1sum *.cab *msi
4614d732dfceb8816c95f147ff9d99dd1fcfd6dc 4c3ef4b2b1dc72149f979f4243d2accf.cab
933328788d00ec5b08fd9bfd2903b50a2caa83d3 685f3d4691f444bc382762d603a99afc.cab
3c452b0200382f8ab7495002b541735c47193c91 e5c4b31ff9997ac5603f4f28cd7df602.cab
8c451f3fdfe54356d1a4bb2ff9374aef200d399b e98fa5eb5fee6ce17a7a69d585870b7c.cab
da91ee0facad49b74da579e73ab05a10630234c8 Windows SDK Signing
Tools-x86_en-us.msi
$ du -sh *.cab *msi
532K 4c3ef4b2b1dc72149f979f4243d2accf.cab
1.1M 685f3d4691f444bc382762d603a99afc.cab
580K e5c4b31ff9997ac5603f4f28cd7df602.cab
1.4M e98fa5eb5fee6ce17a7a69d585870b7c.cab
388K Windows SDK Signing Tools-x86_en-us.msi
$ wine --version
wine-5.22-260-g2ad09b01673
Regards
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list