[ rdesktop-Bugs-2897269 ] SCARD_E_UNSUPPORTED_FEATURE has a different value

"SourceForge.net" <[email protected]>
Newsgroups gmane.network.rdesktop.devel
Message-ID <[email protected]>
Bugs item #2897269, was opened at 2009-11-13 15:44
Message generated for change (Comment added) made by ludov
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=381347&aid=2897269&group_id=24366

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Internals
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Ludovic Rousseau (ludov)
Assigned to: Nobody/Anonymous (nobody)
Summary: SCARD_E_UNSUPPORTED_FEATURE has a different value

Initial Comment:
SCARD_E_UNSUPPORTED_FEATURE has not the same value on Windows winscard and pcsc-lite

Windows has:
#define SCARD_E_UNSUPPORTED_FEATURE 0x80100022
#define SCARD_E_UNEXPECTED 0x8010001F

pcsc-lite has:
#define SCARD_E_UNSUPPORTED_FEATURE 0x8010001F
#define SCARD_E_UNEXPECTED 0x8010001F

Yes, the same value is used for two different names. This is an historic issue.

pcsc-lite never returns SCARD_E_UNEXPECTED so when 0x8010001F is returned it is in fact SCARD_E_UNSUPPORTED_FEATURE.
And this SCARD_E_UNSUPPORTED_FEATURE (0x8010001F) should be converted to a Windows SCARD_E_UNSUPPORTED_FEATURE (0x80100022) by rdekstop. Otherwise the Windows application will get a SCARD_E_UNEXPECTED (0x8010001F) when a SCARD_E_UNSUPPORTED_FEATURE is expected (0x80100022).

I have no patch to provide. My previous patch (in bug 2864500) has not yet been committed so I do not plan to work on a patch for nothing.

----------------------------------------------------------------------

>Comment By: Ludovic Rousseau (ludov)
Date: 2009-11-25 13:38

Message:
The problem is not with the API but with the ABI.

The only application impacted by this ABI difference is rdesktop (and
Citrix client and clones).

If I change the definition of SCARD_E_UNSUPPORTED_FEATURE I will break the
ABI and then break many applications. For now only rdekstop (and Citrix) is
broken. If no one complained yet maybe that is not a real problem.

The bug report is just to let you and your users know it is a known bug.

----------------------------------------------------------------------

Comment By: jared jennings (sarynx)
Date: 2009-11-13 16:05

Message:
> "My previous patch has not yet been committed so I do not plan to work on
a patch for nothing."

There's no need for brinksmanship. rdesktop goes pretty slowly, especially
compared to pcsc-lite.

Why can't you change pcsc-lite? As far as you've described, it isn't
conforming to the PC/SC API definition. Why should rdesktop work around its
brokenness? I looked on your API page at the known differences with Windows
and this doesn't appear to be one of them.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=381347&aid=2897269&group_id=24366

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.