Re: [opensc-devel] On data models, card stock, and provider selection logic

2008-11-24 Thread Martin Paljak
On 25.11.2008, at 0:31, Timothy J. Miller wrote: > Ludovic Rousseau wrote: > >> Using the ATR to identify a service on a card may have worked in the >> past but it is really not a good idea now. > > Unfortunately it's written into the specs. > >> I don't think I will implement the PCSC v2 part 6 (

Re: [opensc-devel] On data models, card stock, and provider selection logic

2008-11-24 Thread Timothy J. Miller
Ludovic Rousseau wrote: Using the ATR to identify a service on a card may have worked in the past but it is really not a good idea now. Unfortunately it's written into the specs. I don't think I will implement the PCSC v2 part 6 (ICC Service Provider) inside pcsc-lite. I thought pcsc-lite

Re: [opensc-devel] C_GenerateRandom in PKCS11-tool

2008-11-24 Thread Martin Paljak
On Mon, Nov 24, 2008 at 12:24 PM, Rickard Bondesson <[EMAIL PROTECTED]> wrote: > How come you send in NULL and not buf2 to the C_GenerateRandom? See code: > http://www.opensc-project.org/opensc/browser/releases/opensc-0.11.6/src/tools/pkcs11-tool.c#L3005 > > My application will return CKR_ARGUMENTS

[opensc-devel] C_GenerateRandom in PKCS11-tool

2008-11-24 Thread Rickard Bondesson
How come you send in NULL and not buf2 to the C_GenerateRandom? See code: http://www.opensc-project.org/opensc/browser/releases/opensc-0.11.6/src/tools/pkcs11-tool.c#L3005 My application will return CKR_ARGUMENTS_BAD because of this and your test program fails. You never generate random data to b