Re: [opensc-devel] Problem with hanging cards

2009-03-11 Thread Tomas Gustavsson
Thanks! I'll try it the next time. Just have to write a small cli program to run it :) Regards, Tomas Ludovic Rousseau wrote: > 2009/3/11 Tomas Gustavsson : >> Is there some way to powercycle/reset a card without physically pulling >> it from the reader? > > Use something like: > rv = SCardReco

Re: [opensc-devel] ScardControl fail

2009-03-11 Thread Alon Bar-Lev
Great work! Can someone confirm current hardware still works? I never had PINPAD reader to play with. Alon. On Wed, Mar 11, 2009 at 11:13 AM, Fleblanc wrote: > > Hi there, > > I can confirm now, it's an issue (see below), it must be > > tmp |= 0x08 << 3; > > since the pin code start 8 bits after

Re: [opensc-devel] Problems with pkcs15

2009-03-11 Thread Andreas Jellinghaus
Am Mittwoch 11 März 2009 08:06:45 schrieb Marc Rios Valles: > On Tue, 2009-03-10 at 18:19 +0100, Andreas Jellinghaus wrote: > > Hi Marc, > > Hi andreas > > > could you be more specific, what your problem is? > > > > maybe you can debug your code and tell us if > > df->file and file differ after the

[opensc-devel] Is any ISO 7816 smart card simulator available

2009-03-11 Thread kamal kumar
Hi all, I am currently learning the ISO 7816 APDU'S. Is there any smart card simulators available so that I can try these APDU'S like Create File, Read record, write record, read binary and update binary. I am currently working in XP os. Regards, Kamal. __

Re: [opensc-devel] pkcs11-tool keygen

2009-03-11 Thread Peter Stuge
Rickard Bondesson wrote: > Will my patch be applied to the system? I hope so. I can't commit or I would have done so. Could someone please commit this? //Peter pgp8Wgd2cAqq5.pgp Description: PGP signature ___ opensc-devel mailing list opensc-devel@l

Re: [opensc-devel] Problem with hanging cards

2009-03-11 Thread Ludovic Rousseau
2009/3/11 Tomas Gustavsson : > Is there some way to powercycle/reset a card without physically pulling > it from the reader? Use something like: rv = SCardReconnect(hCard, SCARD_SHARE_SHARED, SCARD_PROTOCOL_T0, SCARD_UNPOWER_CARD, &dwActiveProtocol); See [1] for details. Bye [1] http://pcsclit

[opensc-devel] Problem with hanging cards

2009-03-11 Thread Tomas Gustavsson
Hi, I have a problem in one location. We are using smart cards to store CA keys, so they are always active for a long time. In one place running Oracle Enterprise Linux, kernel 2.6.9 and pcsc-lite 1.4.102, the cards seem to hang randomly. Sometimes after one week, sometimes after three months.

[opensc-devel] pkcs11-tool keygen

2009-03-11 Thread Rickard Bondesson
Will my patch be applied to the system? // Rickard PGP.sig Description: PGP signature ___ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel

Re: [opensc-devel] ScardControl fail

2009-03-11 Thread Fleblanc
Hi there, I can confirm now, it's an issue (see below), it must be tmp |= 0x08 << 3; since the pin code start 8 bits after lc ... The same apply for 'part10_build_modify_pin_block' line 1164, must be tmp |= 0x04 << 3; and line 1189 must be pin_modify->bInsertionOffsetNew = 0x08; /* bOffse

Re: [opensc-devel] Problems with pkcs15

2009-03-11 Thread Marc Rios Valles
On Tue, 2009-03-10 at 18:19 +0100, Andreas Jellinghaus wrote: > Hi Marc, Hi andreas > could you be more specific, what your problem is? > > maybe you can debug your code and tell us if > df->file and file differ after the sc_profile_get_file_by_path > call. > In df->file I have the correct struct