-
-
Notifications
You must be signed in to change notification settings - Fork 139
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
CMS.py Contains TWO Conflicting Definitions of RecipientKeyIdentifier #243
Comments
Commit f003c67 erroneously duplicated the |
I'll have to add some code to work-around the new name. |
I have a PR at #266 that should work around this issue. @cjamescook @geitda Do either of you have an interest in helping provide some sort of example file that we could use a test fixture for this structure? Alternatively @commonism since you originally added this code, do you have something we could use for a test? |
Hi, IIRC the structures were required to parse SMIME signatures from Outlook signed mails. Maybe consider using https://pre-commit.ci/ to make use of something like black/pylint/flake8… to detect re-definition/* and block merging. pre-commit is great. |
Possible to create something from edit the binary form mismatches the data in the text dump and does not include the OID
|
This has been fixed as of 8609892 and will be part of the next release |
cms.py contains TWO definitions of "class RecipientKeyIdentifier". Unfortunately, the first defines the field "subject_key_identifier" and the latter defines the field "subjectKeyIdentifier". This snowballs, causing problems due to Python binding time rules. That is, the definition of KeyAgreementRecipientIdentifier picks up the former definition, but a program that imports cms.py will pick up the latter.
To wit, the following fails:
The following works, but it took me over a day to figure out what was going on:
The text was updated successfully, but these errors were encountered: