summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/Test_choice_ocsp.c2
-rw-r--r--tests/ocsp-basic-response.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/Test_choice_ocsp.c b/tests/Test_choice_ocsp.c
index d4183b6..33c17fc 100644
--- a/tests/Test_choice_ocsp.c
+++ b/tests/Test_choice_ocsp.c
@@ -37,7 +37,7 @@ main (int argc, char** argv)
exit (1);
}
- fp = fopen(datafile, "r");
+ fp = fopen(datafile, "rb");
if (fp == NULL)
{
printf ("error in %d\n", __LINE__);
diff --git a/tests/ocsp-basic-response.c b/tests/ocsp-basic-response.c
index 701ed53..54b50ae 100644
--- a/tests/ocsp-basic-response.c
+++ b/tests/ocsp-basic-response.c
@@ -36,7 +36,7 @@ main (int argc, char** argv)
exit (1);
}
- fp = fopen(datafile, "r");
+ fp = fopen(datafile, "rb");
if (fp == NULL)
{
fprintf (stderr, "error in %d\n", __LINE__);