> -----Original Message-----
> From: Ludovic Rousseau [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 12, 2007 11:49 PM
> To: [email protected]
> Subject: Re: [opensc-devel] GemSafe driver
> 
> 2007/11/12, Douglas E. Engert <[EMAIL PROTECTED]>:
> > In answer to my own e-mail about leng of PIN, it looks like the
> > following change is needed
> >
> > --- pkcs15-gemsafeV1.c  (revision 3296)
> > +++ pkcs15-gemsafeV1.c  (working copy)
> > @@ -420,8 +420,8 @@
> >
> >          if (path)
> >                  info->path = *path;
> > -       if (type == SC_PKCS15_PIN_TYPE_BCD)
> > -               info->stored_length /= 2;
> >
> >          return sc_pkcs15emu_add_object(p15card,
> >                                         SC_PKCS15_TYPE_AUTH_PIN,
> >
> > The divide by 2 looks like a hold over from some previous version
> > of OpenSC. Line 262 in sec.c is doing the same thing for BCD encoded
> pins.
> 
> Commited in revision 3297.
> 

PIN cmds are successful for me with the above patch.
_______________________________________________
opensc-devel mailing list
[email protected]
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to