Hi Martin, Martin Paljak: > On 08.12.2009, at 14:09, Aktiv Co. Aleksey Samsonov wrote: > >>> Any idea? >> C_CreateObject, C_FindObjectsInit, C_GenerateKeyPair, C_UnwrapKey : >> >> 1) if (pTemplate == NULL_PTR && ulCount > 0) { rv = CKR_ARGUMENTS_BAD; >> >> vs >> >> 2) if (pTemplate == NULL_PTR || ulCount == 0) { rv = CKR_ARGUMENTS_BAD; > > Would calling with an empty template make sense?
(for C_CreateObject, C_FindObjectsInit, C_GenerateKeyPair, C_UnwrapKey) if (pTemplate == NULL_PTR) then 2. already error (CKR_ARGUMENTS_BAD) or 1. no for the present and to try further (that'll do CKR_TEMPLATE_INCOMPLETE, CKR_OK and etc) _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel