So far, i've debugged a bit out of this.

It fails at the USB communication part, at sys-bsd.c:250:
        if ((rc = ioctl(dev->fd, USB_DO_REQUEST, &ctrl)) < 0) {

An EIO is returned which is not documented by ioctl(2), nor
mentioned in usb.h where is the USB_DO_REQUEST defined.

More info, in the dmesg the device appears as:
ugen0: Eutron CryptoIdentity CCID, rev 1.10/1.00, addr 3

Since that I've tried to check it with the ccid driver, but
neither that worked.

Suggestions still welcomed, please :)

On Sun, Sep 16, 2007 at 08:31:18AM +0200, Gergely CZUCZY wrote:
> Hello
> 
> I've got a ITSEC-I/64, i've got it from the local redistributor
> for two weeks to check if it works for opensc (I'd also like to
> have some kind of cards later).
> 
> Of course, it's not working, else I wouldn't write to this list :)
> 
> It's a Siemens CardOS V4.3 B as the charismathics manager says.
> The USB ID is:  vendor:073d, product:0008
> 
> I've tried to make it work with the etoken,etoken64 and the eutron
> drivers in openct, by putting its ID to the proper place in the
> openct.conf config file.
> 
> The most I could get is running the ifdhandler and appear it
> in the openct and opensc listings. As far as I'm trying to
> do _anything_ with the card I've got nothing but errors,
> all the same.
> 
> I've tried re-profiling the card with all the 3 available
> profiles (corporate, pkcs15, GCN (or similar)) from the charismatics
> manager, all the same.
> 
> An example:
> # openct-control status
> No.   Name                         Info
> ===================================================
>   0   Aladdin eToken PRO           slot0: card present
> # openct-tool -ddd atr
> Detected Aladdin eToken PRO
> Card present, status changed
> failed to reset card
> # pkcs11-tool -I
> [opensc-pkcs11] reader-openct.c:243:openct_reader_connect: 
> openct_reader_connect read failed: Generic error
> [opensc-pkcs11] card.c:228:sc_connect_card: returning with: Card not present
> Cryptoki version 2.11
> Manufacturer     OpenSC (www.opensc-project.org)
> Library          smart card PKCS#11 API (ver 1.0)
> [opensc-pkcs11] reader-openct.c:243:openct_reader_connect: 
> openct_reader_connect read failed: Generic error
> [opensc-pkcs11] card.c:228:sc_connect_card: returning with: Card not present
> [opensc-pkcs11] reader-openct.c:243:openct_reader_connect: 
> openct_reader_connect read failed: Generic error
> [opensc-pkcs11] card.c:228:sc_connect_card: returning with: Card not present
> 
> The ifdhandler is running:
> root        3785  0.0  0.1  1704  1224  ??  Ss    7:15PM   0:00.01 
> /usr/local/sbin/ifdhandler -H -ddd etoken usb /dev/ugen0
> 
> And it appeared in the dmesg:
> Sep 15 19:15:18 mort kernel: ugen0: Eutron CryptoIdentity CCID, rev 
> 1.10/1.00, addr 3
> 
> When i got those errors from the userspace utilities
> these messages appear in my dmesg:
> Sep 15 19:15:25 mort ifdhandler[3785]: usb_do_request failed: Input/output 
> error (5)
> Sep 15 19:15:25 mort ifdhandler[3785]: etoken: failed to activate token
> Sep 15 19:15:38 mort ifdhandler[3785]: usb_do_request failed: Input/output 
> error (5)
> Sep 15 19:15:38 mort ifdhandler[3785]: etoken: failed to activate token
> 
> So, how should I try to make this work, and debug this whole thingie?
> If some developers volunteer I can give temporary access to a box with
> this card plugged in.
> 
> Sincerely,
> 
> Gergely Czuczy
> mailto: [EMAIL PROTECTED]
> 
> -- 
> Weenies test. Geniuses solve problems that arise.



Sincerely,

Gergely Czuczy
mailto: [EMAIL PROTECTED]

-- 
Weenies test. Geniuses solve problems that arise.

Attachment: pgpwZLSl1WCYC.pgp
Description: PGP signature

_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to