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_BAD because of this and your test > program fails. > You never generate random data to buf2 and thereby have no meaning of testing > this: > if (memcmp(buf1, buf2, 100) == 0) Right. Apparently that has been broken for quite a long time and with opensc-pkcs11 the code never triggered. Thanks for reporting!
Fixed in r3592 -- Martin Paljak [EMAIL PROTECTED] http://martin.paljak.pri.ee GSM:+3725156495 _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel