Hello, On Dec 23, 2010, at 5:40 AM, Andre Zepezauer wrote: > On Thu, 2010-12-23 at 03:10 +0100, Peter Stuge wrote: >>> That bug always occurs if there is an EF (i.e. EF.PrKD, EF.PuKD, EF.SKD) >>> that contains either broken ASN.1 or uses an encoding that OpenSC isn't >>> able to decode. The committed message [1] contains all the details about >>> the bug and the fix. >> >> Maybe you can mention something about known failure cases? > > A profile that stores some x509Certificates and one pgpCertificate aka > PGP public key. See PKCS#15 section 6.6 Certificates. Is it a common scenario? Should this only affect cards which are not initialized with OpenSC?
> Decoding of x509Certificates is processed without error. Each > x509Certificate is appended to p15card->obj_list. When the last object > in EF.CD (pgpCert) is processed then the ASN.1 decoder fails with: > > asn1.c:1279:asn1_decode: returning with: -1402 (Required ASN.1 object not > found) > > In that case, the function sc_pkcs15_parse_df returns also -1402 and > *doesn't* flag df as enumerated (df->enumerated == 0). On the next > invocation of __sc_pkcs15_search_objects the EF.CD is processed again. > And all the x509Certificates are appended to obj_list again and again > and again .... -- @MartinPaljak.net +3725156495 _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel