Merge pull request #5069 from Starsam80/fix-ssl

Fix `ReadCertFile` by opening as binary file
This commit is contained in:
Matthew Parlane 2017-03-12 21:26:24 +13:00 committed by GitHub
commit 7932efc78a
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ constexpr std::array<u8, 32> s_root_ca_hash = {{0xc5, 0xb0, 0xf8, 0xdf, 0xce, 0x
static std::vector<u8> ReadCertFile(const std::string& path, const std::array<u8, 32>& correct_hash)
{
File::IOFile file(path, "r");
File::IOFile file(path, "rb");
std::vector<u8> bytes(file.GetSize());
if (!file.ReadBytes(bytes.data(), bytes.size()))
{