summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorMatthew Parlane <parlane@gmail.com>2017-03-12 21:26:24 +1300
committerGitHub <noreply@github.com>2017-03-12 21:26:24 +1300
commit7932efc78a9470dbeb262a0a8e95035e63e50f63 (patch)
treedfe9e1d8ca36a94655056edbcf5d069b30b7621e /Source/Core
parentb1bd23142198670c53406b1d9fc256a9e8602e37 (diff)
parent0f44d22db562615197d27abbbf3308a7fd9fd475 (diff)
Merge pull request #5069 from Starsam80/fix-ssl
Fix `ReadCertFile` by opening as binary file
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/IOS/Network/SSL.cpp2
1 files changed, 1 insertions, 1 deletions
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<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()))
{