ASN1Decoder icon indicating copy to clipboard operation
ASN1Decoder copied to clipboard

unsupported tag: graphicString

Open tcurdt opened this issue 6 years ago • 3 comments

After a IAP restore the following code

let receipt = pkcs7.receipt()

sometime prints one of the following

unsupported tag: graphicString
unsupported tag: read
unsupported tag: embeddedPdv

I couldn't quite make out a pattern yet. Sometimes a restore also clears it.

tcurdt avatar Oct 08 '19 20:10 tcurdt

Any idea? @filom

tcurdt avatar Nov 21 '19 23:11 tcurdt

This library (in particular the ASN1 core parser) want to be a generic parser, while unfortunately asn.1 is frequently implemented as read/write methods know the structure. So I find out that sometimes especially "octectString" contains sub nodes and not only just string. That the reason why with octectString I try to parse the content too until i find something impossible to parse and then I assume that is a real string and not a container. So during this parse attempt is possible to find other tag that is not implemented yet (usually because nobody is really using anymore). In your particular case it could be all right and the unsupported tag message may be considered as a collateral warning message. Without the real receipt it's difficult to say more.

filom avatar Nov 25 '19 09:11 filom

I am sure I could provide a receipt.

If this is kind of expected - maybe provide a better way to catch this other than just logging it?

tcurdt avatar Nov 25 '19 10:11 tcurdt