naynajain / mbedtls-1

An open source, portable, easy to use, readable and flexible SSL library
https://tls.mbed.org
Apache License 2.0
1 stars 2 forks source link

Open PKCS7 data files in binary format #9

Closed nick-child-ibm closed 3 years ago

nick-child-ibm commented 3 years ago

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