https://bugs.winehq.org/show_bug.cgi?id=55137
Bug ID: 55137 Summary: MIssing support for SCARD_AUTOALLOCATE Product: Wine Version: 8.11 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winscard Assignee: wine-bugs@winehq.org Reporter: pq2sx44teeigl7za@chyen.cc Distribution: ---
Created attachment 74695 --> https://bugs.winehq.org/attachment.cgi?id=74695 A test program that uses SCARD_AUTOALLOCATE
Several applications call SCardListReaders with SCARD_AUTOALLOCATE. It will be great if that is supported.
Here are two examples:
* WebATM plugin for Chunghwa Post (中華郵政 WebATM 元件)
This can be installed from https://webatm.post.gov.tw/postatm/cab/ATMSetup.msi. With `wine ATMXHRService.exe` running, logging in from https://webatm.post.gov.tw/postatm/index.jsp?_portal=login results in
010c:fixme:winscard:SCardListReadersW SCARD_AUTOALLOCATE not supported
(you may need to accept the self-signed certificate at https://127.0.0.1:39021/ first)
* Taiwan Business Bank combo native agent (臺灣企銀二合一元件)
This can be installed from https://ebank.tbb.com.tw/nb3/COMPONENT/component_download?componentPath=win&.... With `wine TbbComboNativeAgentHost.exe` running, logging in from https://eatm.tbb.com.tw/eATM3/LOGIN/login results in
010c:fixme:winscard:SCardListReadersA SCARD_AUTOALLOCATE not supported
(you may need to accept the self-signed certificate at https://127.0.0.1:9203/ first)
Note that both are 32-bit applications, and I need to use experimental wow64 mode as normal 32-bit winscard.dll is broken (https://bugs.winehq.org/show_bug.cgi?id=54661)
A C++ file that mimics the behavior of aforementioned applications is attached.
Apparently, the current implementation is aware of missing support for SCARD_AUTOALLOCATE: https://gitlab.winehq.org/wine/wine/-/blob/wine-8.11/dlls/winscard/winscard..... On the other hand, an alternative implementaion appears to support it: https://gitlab.winehq.org/wine/wine/-/merge_requests/2249.