From 0f44d22db562615197d27abbbf3308a7fd9fd475 Mon Sep 17 00:00:00 2001 From: Starsam80 Date: Sat, 11 Mar 2017 23:42:54 -0700 Subject: [PATCH] Fix `ReadCertFile` by opening as binary file --- Source/Core/Core/IOS/Network/SSL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/IOS/Network/SSL.cpp b/Source/Core/Core/IOS/Network/SSL.cpp index 2ded34ffc6..fd2fe63ce1 100644 --- a/Source/Core/Core/IOS/Network/SSL.cpp +++ b/Source/Core/Core/IOS/Network/SSL.cpp @@ -103,7 +103,7 @@ constexpr std::array s_root_ca_hash = {{0xc5, 0xb0, 0xf8, 0xdf, 0xce, 0x static std::vector ReadCertFile(const std::string& path, const std::array& correct_hash) { - File::IOFile file(path, "r"); + File::IOFile file(path, "rb"); std::vector bytes(file.GetSize()); if (!file.ReadBytes(bytes.data(), bytes.size())) {