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

docs: Add module wrapper to ASN.1 literal usage examples #7

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

v0-e
Copy link
Contributor

@v0-e v0-e commented Apr 5, 2024

The module definition seems to be missing in the add_asn_literal usage examples, resulting in a parsing error.
Not sure if your intention is later to create internally and output a module definition if the user does not provide it, could be a cool feature :)

Copy link
Member

@6d7a 6d7a left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! IMO a missing module header should result in an error here. My idea was that for something like inline ASN.1, users should use the asn1 macro, which generates a default module header if the input doesn't contain one. I guess that should be reflected more clearly in the docs. Thank you for your contribution!

@6d7a 6d7a merged commit a481bb7 into librasn:main Apr 5, 2024
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

Successfully merging this pull request may close these issues.

2 participants