Re: [opensc-devel] fix get_response logic

2007-01-03 Thread Douglas E. Engert
Andreas Jellinghaus wrote: Hi Thomas, I guess we will sooner or later need card specific get_response commands. but that also means an architecture change: currently the loop is done in the generic apdu.c code, and I guess it would need to move into the card specific get_response code. Thi

[opensc-devel] Simple-mini PIV APDU Docs -- Partly for the get_response thread

2007-01-03 Thread Thomas Harning Jr.
Here's some really minimal docs on the APDUs that PIV cards use. There's also 2 example apdu sequences: 1) Read certificate 2) Sign piece of data -- Thomas Harning Jr. Authentication Engineer @ Identity Alliance http://www.trustbearer.com/ For PIN commands: replace p2's 80 with 81 for PUK/SO_PIN

Re: [opensc-devel] fix get_response logic

2007-01-03 Thread Andreas Jellinghaus
Hi Thomas, I guess we will sooner or later need card specific get_response commands. but that also means an architecture change: currently the loop is done in the generic apdu.c code, and I guess it would need to move into the card specific get_response code. This change breaks PIV chaining.

Re: [opensc-devel] fix get_response logic

2007-01-03 Thread Thomas Harning Jr.
On Fri, 2006-12-29 at 10:50 +0100, Andreas Jellinghaus wrote: > at least with cryptoflex only the sign apdu returns 0x61 and the number > of bytes we can fetch. all get response commands return 90 00. so we > need to keep the number of bytes to get from the first command, and then > loop till we r

Re: [opensc-devel] Re: [opensc-commits] svn opensc changed [3095] prepare Oberthur card support for secure messaging

2007-01-03 Thread Ludovic Rousseau
On 03/01/07, Andreas Jellinghaus <[EMAIL PROTECTED]> wrote: I guess that change was unintended. does anyone know the encoding magic of svn in detail, so maybe it can prefent this from happening? we want to tell svn "this is utf-8" and if people have a different locale, it should convert it when c

Re: [opensc-devel] Building SCA on MacIntel / PIV Patch #128

2007-01-03 Thread Jean-Pierre Szikora
Thomas Harning Jr. a écrit : > On Tue, 2007-01-02 at 20:22 +0100, JP Szikora wrote: > >> Thomas Harning Jr. wrote: >> >>> Has anyone compiled SCA on a MacIntel? >>> I know that the recent builds of SCA are Universals, but I need a >>> version w/ the new PIV support patch applied ( ticket #1