diff options
author | Nils Durner <durner@gnunet.org> | 2010-01-20 21:07:20 +0000 |
---|---|---|
committer | Nils Durner <durner@gnunet.org> | 2010-01-20 21:07:20 +0000 |
commit | 1b0b8c014d04189c6e55e09288dd68ef5bc1e447 (patch) | |
tree | a10a58e71eee2779ccc52cdd531c40063dac86ff /src/testcurl | |
parent | 8893ec6980741cd78030d4c093f6665728d135a1 (diff) | |
download | libmicrohttpd-1b0b8c014d04189c6e55e09288dd68ef5bc1e447.tar.gz libmicrohttpd-1b0b8c014d04189c6e55e09288dd68ef5bc1e447.zip |
use untranslated file input mode, important on Windows
Diffstat (limited to 'src/testcurl')
-rw-r--r-- | src/testcurl/https/tls_authentication_test.c | 2 | ||||
-rw-r--r-- | src/testcurl/https/tls_test_common.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/testcurl/https/tls_authentication_test.c b/src/testcurl/https/tls_authentication_test.c index 388ceb32..9fe7318d 100644 --- a/src/testcurl/https/tls_authentication_test.c +++ b/src/testcurl/https/tls_authentication_test.c | |||
@@ -174,7 +174,7 @@ setup_ca_cert () | |||
174 | { | 174 | { |
175 | FILE *cert_fd; | 175 | FILE *cert_fd; |
176 | 176 | ||
177 | if (NULL == (cert_fd = fopen (ca_cert_file_name, "w+"))) | 177 | if (NULL == (cert_fd = fopen (ca_cert_file_name, "wb+"))) |
178 | { | 178 | { |
179 | fprintf (stderr, "Error: failed to open `%s': %s\n", | 179 | fprintf (stderr, "Error: failed to open `%s': %s\n", |
180 | ca_cert_file_name, strerror (errno)); | 180 | ca_cert_file_name, strerror (errno)); |
diff --git a/src/testcurl/https/tls_test_common.c b/src/testcurl/https/tls_test_common.c index 67d43ee2..ce794511 100644 --- a/src/testcurl/https/tls_test_common.c +++ b/src/testcurl/https/tls_test_common.c | |||
@@ -87,7 +87,7 @@ http_ahc (void *cls, struct MHD_Connection *connection, | |||
87 | } | 87 | } |
88 | *ptr = NULL; /* reset when done */ | 88 | *ptr = NULL; /* reset when done */ |
89 | 89 | ||
90 | file = fopen (url, "r"); | 90 | file = fopen (url, "rb"); |
91 | if (file == NULL) | 91 | if (file == NULL) |
92 | { | 92 | { |
93 | response = MHD_create_response_from_data (strlen (PAGE_NOT_FOUND), | 93 | response = MHD_create_response_from_data (strlen (PAGE_NOT_FOUND), |
@@ -290,7 +290,7 @@ setup_test_file () | |||
290 | { | 290 | { |
291 | FILE *test_fd; | 291 | FILE *test_fd; |
292 | 292 | ||
293 | if (NULL == (test_fd = fopen (TEST_FILE_NAME, "w+"))) | 293 | if (NULL == (test_fd = fopen (TEST_FILE_NAME, "wb+"))) |
294 | { | 294 | { |
295 | fprintf (stderr, "Error: failed to open `%s': %s\n", | 295 | fprintf (stderr, "Error: failed to open `%s': %s\n", |
296 | TEST_FILE_NAME, strerror (errno)); | 296 | TEST_FILE_NAME, strerror (errno)); |