List Info

Thread: publicKeyCoefficients: make it optional to silence warning with siemens cards?




publicKeyCoefficients: make it optional to silence warning with siemens cards?
user name
2007-07-20 08:45:29
[opensc-pkcs11] asn1.c:1172:asn1_decode: mandatory ASN.1 
object 'publicKeyCoefficients' not found
[opensc-pkcs11] asn1.c:1184:asn1_decode: returning with:
Required ASN.1 object 
not found
[opensc-pkcs11]
pkcs15-pubkey.c:256:sc_pkcs15_decode_pubkey_rsa: ASN.1
parsing 
of public key failed: Required ASN.1 object not found

I get this from a siemens initialized cardos M4.01 card.
is it ok to make that object optional? result: no warnings.

--- src/libopensc/pkcs15-pubkey.c       (revision 3225)
+++ src/libopensc/pkcs15-pubkey.c       (working copy)
 -216,7
+216,7 
 }
 
 static struct sc_asn1_entry c_asn1_public_key[2] = {
-       { "publicKeyCoefficients", SC_ASN1_STRUCT,
SC_ASN1_TAG_SEQUENCE | 
SC_ASN1_CONS, 0, NULL, NULL },
+       { "publicKeyCoefficients", SC_ASN1_STRUCT,
SC_ASN1_TAG_SEQUENCE | 
SC_ASN1_CONS, SC_ASN1_OPTIONAL, NULL, NULL },
        { NULL, 0, 0, 0, NULL, NULL }
 };


Regards, Andreas
_______________________________________________
opensc-devel mailing list
opensc-devellists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc
-devel

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )