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

leave certificate name untouched in decode() #2640

Closed
wants to merge 1 commit into from

Conversation

vladak
Copy link
Contributor

@vladak vladak commented Jun 7, 2018

When running mk-ca-bundle.pl with the -v option, it fails to report the certificate name. This is happening due to the decode() call from Encode module having CHECK set without the Encode::LEAVE_SRC bit.

https://perldoc.perl.org/Encode.html#LEAVE_SRC says:

If the Encode::LEAVE_SRC bit is not set but CHECK is set, then the source string to encode() or decode() will be overwritten in place. If you're not interested in this, then bitwise-OR it with the bitmask.

This simple change adds the bit and also reports skipped certificates (which is handy in the light of https://www.imperialviolet.org/2012/01/30/mozillaroots.html).

Thank you.

@bagder
Copy link
Member

bagder commented Jun 8, 2018

Thanks!

@bagder bagder closed this in 9ff67f7 Jun 8, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Sep 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants