Hello Aleksey and others, Those of you who have used pkcs15init API, can anyone explain the way keycache works? There is some extra magic happening that does not only USER_PIN/SO_PIN <-> PIN value mapping but deals with "naming PINs"? What is this used for in keycache.c: libopensc/opensc.h:#define SC_AC_SYMBOLIC 0x00000010 /* internal use only */ I've checked how card initialization works with KEYCACHE_DEBUG enabled but I can't really make conclusions as I've never directly worked with src/pkcs15init
Thanks, On 06.10.2009, at 17:06, Aktiv Co. Aleksey Samsonov wrote: > Aktiv Co. Aleksey Samsonov: >> Hello, >> Rutoken initialization failed after >> http://www.opensc-project.org/opensc/changeset/3765#file8 >> $ pkcs15-init -l "Rutoken ECP User PIN" -a 02 --pin "12345678" -- >> puk "" >> -P --so-pin "87654321" -F >> Failed to store PIN: Requested object not found >> => >> new_entry -> calloc >> ... >> sc_keycache_get_key -> search_key -> if (s->len != 0) then error >> >> Any idea? >> Thanks. > > Cause: http://www.opensc-project.org/opensc/changeset/3741 > _______________________________________________ > opensc-devel mailing list > opensc-devel@lists.opensc-project.org > http://www.opensc-project.org/mailman/listinfo/opensc-devel -- Martin Paljak http://martin.paljak.pri.ee +372.515.6495 _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel