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

Change PRIVATE_FORMAT_PKCS8 to unique value to fix conflict with PUBL… #861

Closed
wants to merge 1 commit into from

Conversation

fillup
Copy link

@fillup fillup commented Nov 6, 2015

In Crypt\RSA class there were two constants with the same value, PUBLIC_FORMAT_RAW and PRIVATE_FORMAT_PKCS8. This caused a bug in the _parseKey() method when $type was PRIVATE_FORMAT_PKCS8 because the value would match the first case statement as if it was PUBLIC_FORMAT_RAW and it was unable to parse the key.

I picked the value of 8 because it was the next in series and was not already in use.

Unit tests still pass for me so hopefully this is an easy PR to accept.

@bantu
Copy link
Member

bantu commented Nov 10, 2015

#865 and #866 handled this.

@bantu bantu closed this Nov 10, 2015
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