c code generator support IA5String for uper encoding#170
Open
sailing0505 wants to merge 2 commits into
Open
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #170 +/- ##
=======================================
Coverage 34.82% 34.82%
=======================================
Files 7 7
Lines 8666 8666
=======================================
Hits 3018 3018
Misses 5648 5648 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Collaborator
|
Hi sailing0505, Thanks for the pull request. The changes look okay at first glance, I will perform a review once you add some tests for the new functionality to the PR. |
|
Just attempted to use asn1tools for c code generation with ia5string and ran into this. would be good to have in mainline |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This enchancement is to generate the C code for IA5String for UPER encoding
for example: foo.asn
FOO DEFINITIONS AUTOMATIC TAGS ::=
BEGIN
DATAS ::= SEQUENCE {
fixedName IA5String (SIZE(3)),
variableName IA5String (SIZE(1..20))
}
END
execute: asn1tools generate_c_source --codec uper --generate-fuzzer foo.asn