On Dec 17, 2007 2:23 PM, Andrew V. Stepanov <[EMAIL PROTECTED]> wrote:
> Please try attached patches.

OpenCT patch commited in revision 1009.

OpenSC patch commited in revision 3304 except the patch:

Index: src/pkcs15init/pkcs15-lib.c
===================================================================
--- src/pkcs15init/pkcs15-lib.c (révision 3303)
+++ src/pkcs15init/pkcs15-lib.c (copie de travail)
@@ -1712,6 +1713,15 @@ sc_pkcs15init_store_certificate(struct s
    if ((r = select_id(p15card, SC_PKCS15_TYPE_CERT, &args->id, NULL,
NULL, NULL)) < 0)
        return r;

+   /* dirtyhackforM0ZZILLAnss */
+   char M0ZZlabel[128];
+   if (!strncmp(label, "Imported Certificate", 21))
+   {
+       //sprintf(label, "Imported Certificate %d", args->id.value[0]);
+       sc_bin_to_hex(args->id.value, args->id.len, M0ZZlabel, 128, ':');
+       label = M0ZZlabel;
+   }
+
    if (profile->protect_certificates) {
        /* If there is a private key corresponding to the ID given
         * by the user, make sure $PIN references the pin protecting


Why do you need this patch? I don't think it is related to rutoken only.

bye

-- 
 Dr. Ludovic Rousseau
_______________________________________________
opensc-devel mailing list
[email protected]
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to