Skip to content

Commit

Permalink
Add SCARD_E_UNKNOWN_RES_MNG back
Browse files Browse the repository at this point in the history
I now discover that Windows does define BOTH symbols with the same
value.:
- SCARD_E_UNKNOWN_RES_MSG 0x8010002B in
  https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpesc/9861f8da-76fe-41e6-847e-40c9aa35df8d
- SCARD_E_UNKNOWN_RES_MNG 0x8010002B in
  https://learn.microsoft.com/en-us/windows/win32/secauthn/authentication-return-values

To avoid breaking existing code the old symbol is back.
See https://bugs.debian.org/1065380
  • Loading branch information
LudovicRousseau committed Mar 3, 2024
1 parent 6c75244 commit c9031d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/PCSC/pcsclite.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ extern const SCARD_IO_REQUEST g_rgSCardT0Pci, g_rgSCardT1Pci, g_rgSCardRawPci;
#define SCARD_E_INVALID_CHV ((LONG)0x8010002A) /**< The supplied PIN is incorrect. */
/** @ingroup ErrorCodes */
#define SCARD_E_UNKNOWN_RES_MSG ((LONG)0x8010002B) /**< An unrecognized error code was returned from a layered component. */
#define SCARD_E_UNKNOWN_RES_MNG SCARD_E_UNKNOWN_RES_MSG
/** @ingroup ErrorCodes */
#define SCARD_E_NO_SUCH_CERTIFICATE ((LONG)0x8010002C) /**< The requested certificate does not exist. */
/** @ingroup ErrorCodes */
Expand Down

0 comments on commit c9031d6

Please sign in to comment.