Hello Nikos, please could you post the access conditions of 3F00/5015/4946. I wounder why the error code SC_ERROR_NOT_ALLOWED is returned. To me it seems, that r4853 has only discovered an older bug.
Regards Andre On Sat, 2010-11-06 at 12:18 +0100, Nikos Mavrogiannopoulos wrote: > The commit applied in svn revision 4853[0] does not allow me to > erase my feitian smart card: > $ ./pkcs15-init -E > Using reader with a card: OmniKey CardMan 3121 00 00 > Couldn't bind to the card: Not allowed > > The error I get from sc_select_file is -1209 and if set to zero > as before I can erase and format the card properly. > > regards, > Nikos > > > [0] The commit: > Index: src/pkcs15init/pkcs15-lib.c > =================================================================== > --- src/pkcs15init/pkcs15-lib.c (revision 4852) > +++ src/pkcs15init/pkcs15-lib.c (revision 4853) > @@ -3518,8 +3518,6 @@ > if ((mem = malloc(len)) != NULL) { > r = sc_read_binary(card, 0, mem, len, 0); > } > - } else { > - r = 0; > } > > if (r >= 0) > _______________________________________________ > opensc-devel mailing list > opensc-devel@lists.opensc-project.org > http://www.opensc-project.org/mailman/listinfo/opensc-devel _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel