On Thu, Sep 27, 2012 at 11:30 AM, Peter Stuge <pe...@stuge.se> wrote:

> Andreas Schwier wrote:
> > I will first need to write a small test in C to reproduce the problem.
> > Right now we test from Java, which makes debugging a real nightmare.
>
> Maybe you can reproduce it using some of the existing command line
> tools?
>
>
It can be reproduced, using command
#  pkcs11-tool --module ./build/lib/opensc-pkcs11.so --slot-index 0 -l
--pin "1234" --delete-object --type cert --id <object-id>

and patched pkcs11-tool:
diff --git a/src/tools/pkcs11-tool.c b/src/tools/pkcs11-tool.c
index f23948b..30074d8 100644
--- a/src/tools/pkcs11-tool.c
+++ b/src/tools/pkcs11-tool.c
@@ -824,6 +824,9 @@ int main(int argc, char * argv[])
                         util_fatal("You should specify at least one of the
"
                                         "object ID, object label,
application label or application ID\n");
                delete_object(session);
+
+               printf("Now list public keys ...\n");
+               list_objects(session, CKO_PUBLIC_KEY);
        }

        if (do_set_id) {


I will look for the solution.



> //Peter
> _______________________________________________
> 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

Reply via email to