Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unsupported tag: graphicString #15

Open
tcurdt opened this issue Oct 8, 2019 · 3 comments
Open

unsupported tag: graphicString #15

tcurdt opened this issue Oct 8, 2019 · 3 comments

Comments

@tcurdt
Copy link

tcurdt commented Oct 8, 2019

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
Copy link
Author

tcurdt commented Nov 21, 2019

Any idea? @filom

@filom
Copy link
Owner

filom commented Nov 25, 2019

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.

@tcurdt
Copy link
Author

tcurdt commented Nov 25, 2019

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants