New version of pcsc-lite: 2.0.3

I just released a new version of pcsc-lite 2.0.3.

pcsc-lite is a Free Software implementation of the PC/SC (or WinSCard) API for Unix systems.

In version 2.0.2 I renamed SCARD_E_UNKNOWN_RES_MNG into SCARD_E_UNKNOWN_RES_MSG in this patch Fix typo in (unused) error code SCARD_E_UNKNOWN_RES_MSG to fix the reported issue Error symbol SCARD_E_UNKNOWN_RES_MNG should be SCARD_E_UNKNOWN_RES_MSG #169. The symbol is not used by pcsc-lite so I thought the change was harmless.

But this change made some software fail to build. For example ausweisapp2 fails to build with the error (Debian bug #1065380):

/<<PKGBUILDDIR>>/src/card/pcsc/PcscUtils.h:112:46: error: ‘SCARD_E_UNKNOWN_RES_MNG’ was not declared in this scope; did you mean ‘SCARD_E_UNKNOWN_RES_MSG’?
  112 |         Scard_E_Unknown_Res_Mng = returnCode(SCARD_E_UNKNOWN_RES_MNG),         /**< An unrecognized error code was returned from a layered component. */
          |                                              ^~~~~~~~~~~~~~~~~~~~~~~

I now discover that Windows does define BOTH values:

What The F... Microsoft?

Changes:

2.0.3: Ludovic Rousseau

3 March 2024

  • add SCARD_E_UNKNOWN_RES_MNGi back