| Summary: | ccid 1.4.x has a problem in processing the waittime extension request. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Sandro Bonazzola <sandro.bonazzola> |
| Component: | ccid | Assignee: | Bob Relyea <rrelyea> |
| Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | urgent | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 14 | CC: | kalevlember, ludovic.rousseau, rrelyea |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i686 | ||
| OS: | Linux | ||
| URL: | http://lists.gnupg.org/pipermail/gnupg-users/2006-October/029525.html | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-08-16 15:22:56 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Sandro Bonazzola
2011-01-28 09:21:37 UTC
It seems that the problem is in ccid driver itself.
Just checking CCID_TIME_EXTENSION before CCID_COMMAND_FAILED seems to fix the issue for me.
ccid-1.4.1 is also affected by this bug.
diff -ru ccid-1.4.0.orig/src/commands.c ccid-1.4.0/src/commands.c
--- ccid-1.4.0.orig/src/commands.c 2010-08-01 19:05:25.000000000 +0200
+++ ccid-1.4.0/src/commands.c 2011-01-31 08:31:57.487803003 +0100
@@ -1312,6 +1312,12 @@
return IFD_COMMUNICATION_ERROR;
}
+ if (cmd[STATUS_OFFSET] & CCID_TIME_EXTENSION)
+ {
+ DEBUG_COMM2("Time extension requested: 0x%02X", cmd[ERROR_OFFSET]);
+ goto time_request;
+ }
+
if (cmd[STATUS_OFFSET] & CCID_COMMAND_FAILED)
{
ccid_error(cmd[ERROR_OFFSET], __FILE__, __LINE__, __FUNCTION__); /* bError */
@@ -1341,11 +1347,6 @@
}
}
- if (cmd[STATUS_OFFSET] & CCID_TIME_EXTENSION)
- {
- DEBUG_COMM2("Time extension requested: 0x%02X", cmd[ERROR_OFFSET]);
- goto time_request;
- }
/* we have read less (or more) data than the CCID frame says to contain */
if (length-10 != dw2i(cmd, 1))
(In reply to comment #1) > Just checking CCID_TIME_EXTENSION before CCID_COMMAND_FAILED seems to fix the > issue for me. After some more testing, Ihave to say that this doesn't fix the issue: it's still present. This would be something you should take up with upstream; adding dr. Ludovic Rousseau to CC. AFAIK it is a bug in the OpenPGP card. I corrected a bug like this in revision 3330 of the CCID driver [1]. What is the ATR of your card? [1] http://lists.alioth.debian.org/pipermail/pcsclite-cvs-commit/2009-March/003514.html (In reply to comment #4) > AFAIK it is a bug in the OpenPGP card. I corrected a bug like this in revision > 3330 of the CCID driver [1]. > > What is the ATR of your card? Running pcsc_scan: Reader 0: SCM SCR 335 [CCID Interface] (60400813) 00 00 Card state: Card inserted, ATR: 3B FA 13 00 FF 81 31 80 45 00 31 C1 73 C0 01 00 00 90 00 B1 You have the OpenPGP with the problem fixed in revision 3330 I talked about. The problem has been fixed in version 1.3.10 of the ccid driver. I am surprised you still have it with ccid-1.4.0-2.fc14.i686 Please generate a full log using http://pcsclite.alioth.debian.org/ccid.html#support > Jan 28 09:18:58 Ssandro pcscd: openct/proto-t1.c:214:t1_transceive() fatal:
transmit/receive failed
Looking at the log again, are you sure it's even using the ccid driver? The line above shows an error message from openct instead. Does anything change if you remove the openct ifdhandler package 'pcsc-lite-openct'?
This message is a notice that Fedora 14 is now at end of life. Fedora has stopped maintaining and issuing updates for Fedora 14. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At this time, all open bugs with a Fedora 'version' of '14' have been closed as WONTFIX. (Please note: Our normal process is to give advanced warning of this occurring, but we forgot to do that. A thousand apologies.) Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, feel free to reopen this bug and simply change the 'version' to a later Fedora version. Bug Reporter: Thank you for reporting this issue and we are sorry that we were unable to fix it before Fedora 14 reached end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged to click on "Clone This Bug" (top right of this page) and open it against that version of Fedora. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping |