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

Remove unused signature features #79

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

Mike-M0
Copy link

@Mike-M0 Mike-M0 commented Jun 26, 2024

Describe your changes

  • only create xmldsig fragments which are listed (like other fragments)
  • remove unused fields for optimization (e.g remove "shall not be used" from standard)
    removed elements are not in structure and will result in en/decoder error NOT_IMPLEMENTED when "isUsed" flag is set or element is accessed in decoder.

Issue ticket number and link

Feature request #75

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have made corresponding changes to the documentation
  • I read the contribution documentation and made sure that my changes meet its requirements

- only create xmldsig framgnets which are listed (like other fragments)
- remove unused fields for optimization (per default remove "shall not be used" from standard)
removed elements are not in structure and will result in en/decoder error NOT_IMPLEMENTED when "isUsed" flag is set.

Signed-off-by: Michael Mezger <[email protected]>
@Mike-M0
Copy link
Author

Mike-M0 commented Aug 22, 2024

The change is not optimal.
I needed a manual change of eventCode in xmldsigFragment en/decoder from 1 to 32 and bitcount from 1 to 6 (which are the values from before this feature), because all other eventcodes are getting optimized out.
I could not find a easy way to implement this in generator.
But with this manual fix, PnC works fine again.

@barsnick barsnick changed the title Add feature from request #75: Remove unused signature features Oct 11, 2024
@barsnick
Copy link
Contributor

Notes for us when reviewing this:

  • Can this or should this be configurable (on/off)?
  • Does it affect the API?
  • Does it affect the ABI?
  • Is it free of regressions?

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