aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-11-21 23:57:32 -0500
committerJack Lloyd <[email protected]>2016-11-23 08:31:09 -0500
commiteac7117a0fcee1d421b0627ff3a6cd44b8f41b70 (patch)
tree460fb5bc02172bae932e226ff4068010d5106019
parent28b38adb037719ba08691a4e8c6f59ea2e854760 (diff)
Windows fix
-rw-r--r--src/tests/test_ocsp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/test_ocsp.cpp b/src/tests/test_ocsp.cpp
index 58fa46086..da52191df 100644
--- a/src/tests/test_ocsp.cpp
+++ b/src/tests/test_ocsp.cpp
@@ -23,7 +23,7 @@ class OCSP_Tests : public Test
std::vector<uint8_t> slurp_data_file(const std::string& path)
{
const std::string fsname = Test::data_file(path);
- std::ifstream file(fsname.c_str());
+ std::ifstream file(fsname.c_str(), std::ios::binary);
if(!file.good())
throw Test_Error("Error reading from " + fsname);