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