> > What is the output of pkcs11-tool -L ?
> > Does it include for your slot:
> >   token flags:   rng, readonly, ***login required***, PIN initialized,
> > token initialized ?
> 
> Yes, there is the point. "login required" is not shown in version 0.12.

@Johannes:
Apply this patch locally, and everything should work fine. BTW the
unicard support was added by Peter Koch [1]. Maybe you want to contact
him for an upstream patch.

Index: libopensc/pkcs15-tcos.c
===================================================================
--- libopensc/pkcs15-tcos.c     (revision 4631)
+++ libopensc/pkcs15-tcos.c     (working copy)
@@ -414,6 +414,7 @@
        if(!insert_cert(p15card,"41004352", 0x45, 1, "Zertifikat 1")){
                p15card->manufacturer_id = strdup("JLU Giessen");
                p15card->label = strdup("JLU Giessen Card");
+               p15card->flags |= SC_PKCS15_CARD_FLAG_LOGIN_REQUIRED;
 
                insert_cert(p15card,"41004353", 0x46, 1, "Zertifikat 2");
                insert_cert(p15card,"41004354", 0x47, 1, "Zertifikat 3");

[1] 
http://www.opensc-project.org/opensc/changeset/3309/trunk/src/libopensc/pkcs15-tcos.c

_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to