Hello Andre, Andre Zepezauer wrote: > On Tue, 2010-10-26 at 17:23 +0200, Viktor TARASOV wrote: > >> I've got this conclusion from the 'Unambiguous descriptions of ASN.1 >> tagging' >> (http://powerasn.ncottin.net/download/ASN1_Tagging.pdf) . >> >> I agree that it's not a supreme authority on the subject, >> nevertheless the natively PKCS#15 cards that I'm using (Oberthur, >> Morpho, Gemalto) have the encoding >> of the 'lastUpdate' presented in the second dump. >> > > Exactly that information I need. Thank you very much. > > Please can you try the attached patch with the other p15 cards you have. > Only "pkcs15-tool -D" will produce meaningful output. And "pkcs15-init > -C -c cardos -p pkcs15 --so-pin=xxxx" will encode a conforming TokenInfo > (may work for other cards too). > > Notes: > * the path of PKCS#15 Application (3F005015) is hard coded in > pkcs15.c line 665 > * you could remove line 756 in pkcs15.c but I assume that something > will fail, because encoding of all other objects is wrong too > Very instructive patch. I'll try it this weekend.
Minor remarks: C99 is not completely supported by Visual Studio, it will fail at +516. > Kind Regards > Andre Zepezauer > Kind wishes, Viktor. -- Viktor Tarasov <viktor.tara...@opentrust.com> _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel