[Bug 33896] CryptoPro CSP 3.6 with Rutoken support installer needs Smart Cards for Windows Service 'SCardSvr'

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Sep 23 05:13:46 CDT 2018


https://bugs.winehq.org/show_bug.cgi?id=33896

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Can't install CryptoPro CSP |CryptoPro CSP 3.6 with
                   |with Rutoken support        |Rutoken support installer
                   |(requires smart card API)   |needs Smart Cards for
                   |                            |Windows Service 'SCardSvr'
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
           Keywords|                            |download
                 CC|                            |focht at gmx.net

--- Comment #9 from Anastasius Focht <focht at gmx.net> ---
Hello folks,

confirming. It's actually the missing Smart Cards for Windows Service causing
the Rutoken drivers sub-installer to fail.

--- snip ---
$ WINEDEBUG=+seh,+relay,+msi,+winscard wine ./CPCSP36RT.Rus.v.1.05.03.0052.exe
>>log3.txt 2>&1
...
0051:trace:msi:ACTION_CustomAction Handling custom action
L"Start_SCardSvr_Service" (c01 L"NewBinary22"
L"RTDRVSUP_Start_SCardSvr_Service") 
...
0051:trace:msi:HANDLE_CustomType1 Calling function
L"RTDRVSUP_Start_SCardSvr_Service" from L"C:\\users\\focht\\Temp\\msi34e1.tmp"  
...
0062:Ret  KERNEL32.LoadLibraryW() retval=180000000 ret=7fbc6dbeacc4
0062:Call KERNEL32.GetProcAddress(180000000,00085bb0
"RTDRVSUP_Start_SCardSvr_Service") ret=7fbc6dbeadac
0062:Ret  KERNEL32.GetProcAddress() retval=18001b2a0 ret=7fbc6dbeadac
0062:trace:msi:alloc_msi_remote_handle 1 -> 1
0062:trace:msi:__wine_msi_call_dll_function calling
"RTDRVSUP_Start_SCardSvr_Service" 
...
0062:Call advapi32.OpenServiceW(000889e0,180023690 L"SCardSvr",00000017)
ret=180006fd1 
...
0062:Ret  advapi32.OpenServiceW() retval=00000000 ret=180006fd1
0062:Call KERNEL32.GetLastError() ret=180007008
0062:Ret  KERNEL32.GetLastError() retval=00000424 ret=180007008
...
0059:Call user32.MessageBoxW(00000000,009a86c0 L"Error. Function caller:
RTSC_Start_Service. Called function: OpenService. Error code: 1060 : Service
does not exist.\r\n",7e9ad140 L"Windows Installer",00000030) ret=7e949b88 
...
0051:err:msi:execute_script Execution of script 0 halted; action
L"Start_SCardSvr_Service" returned 1603 
--- snip ---

Microsoft docs:

https://docs.microsoft.com/en-us/windows/security/identity-protection/smart-cards/smart-card-smart-cards-for-windows-service

--- quote ---
...

The Smart Cards for Windows service runs in the context of a local service, and
it is implemented as a shared service of the services host (svchost) process.

...
By default, the service is configured for manual mode. Creators of smart card
reader drivers must configure their INFs so that they start the service
automatically and winscard.dll files call a predefined entry point to start the
service during installation. The entry point is defined as part of the
SmartCardReader class, and it is not called directly. If a device advertises
itself as part of this class, the entry point is automatically invoked to start
the service when the device is inserted. Using this method ensures that the
service is enabled when it is needed, but it is also disabled for users who do
not use smart cards.

When the service is started, it performs several functions:

* It registers itself for service notifications.
* It registers itself for Plug and Play (PnP) notifications related to device
removal and additions.
* It initializes its data cache and a global event that signals that the
service has started.
--- quote ---

$ sha1sum CPCSP36RT.Rus.v.1.05.03.0052.exe 
07a924739ea2822d218a44c0f1026afea7511b70  CPCSP36RT.Rus.v.1.05.03.0052.exe

$ du -sh CPCSP36RT.Rus.v.1.05.03.0052.exe 
20M    CPCSP36RT.Rus.v.1.05.03.0052.exe

$ wine --version
wine-3.16-149-gb1a3b9e5ce

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