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

Open PKCS7 data files in binary format #9

Merged

Conversation

nick-child-ibm
Copy link
Collaborator

Previously, we were reading files in text mode. This was causing all of the 0x0d0a line breaks to be converted to unix line breaks. This will cause issues when comparing hashes of files. If we read the files in binary mode (fopen "rb") then we avoid this conversion.

Signed-off-by: Nick Child nick.child@ibm.com

Previously, we were reading files in text mode. This was causing all of the 0x0d0a line breaks to be converted to unix line breaks. This will cause issues when comparing hashes of files. If we read the files in binary mode (fopen "rb") then we avoid this conversion.

Signed-off-by: Nick Child <nick.child@ibm.com>
@naynajain naynajain merged commit 3f8a191 into naynajain:development-pkcs7 Feb 24, 2021
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