diff options
Diffstat (limited to 'src/testcurl/https/test_https_get.c')
-rw-r--r-- | src/testcurl/https/test_https_get.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/testcurl/https/test_https_get.c b/src/testcurl/https/test_https_get.c index a0cdb82f..13865502 100644 --- a/src/testcurl/https/test_https_get.c +++ b/src/testcurl/https/test_https_get.c | |||
@@ -26,8 +26,6 @@ | |||
26 | 26 | ||
27 | #include "platform.h" | 27 | #include "platform.h" |
28 | #include "microhttpd.h" | 28 | #include "microhttpd.h" |
29 | #include <limits.h> | ||
30 | #include <sys/stat.h> | ||
31 | #include <curl/curl.h> | 29 | #include <curl/curl.h> |
32 | #ifdef MHD_HTTPS_REQUIRE_GCRYPT | 30 | #ifdef MHD_HTTPS_REQUIRE_GCRYPT |
33 | #include <gcrypt.h> | 31 | #include <gcrypt.h> |
@@ -41,8 +39,7 @@ static uint16_t global_port; | |||
41 | 39 | ||
42 | /* perform a HTTP GET request via SSL/TLS */ | 40 | /* perform a HTTP GET request via SSL/TLS */ |
43 | static unsigned int | 41 | static unsigned int |
44 | test_secure_get (FILE *test_fd, | 42 | test_secure_get (const char *cipher_suite, |
45 | const char *cipher_suite, | ||
46 | int proto_version) | 43 | int proto_version) |
47 | { | 44 | { |
48 | unsigned int ret; | 45 | unsigned int ret; |
@@ -80,7 +77,7 @@ test_secure_get (FILE *test_fd, | |||
80 | port = dinfo->port; | 77 | port = dinfo->port; |
81 | } | 78 | } |
82 | 79 | ||
83 | ret = test_https_transfer (test_fd, | 80 | ret = test_https_transfer (NULL, |
84 | port, | 81 | port, |
85 | cipher_suite, | 82 | cipher_suite, |
86 | proto_version); | 83 | proto_version); |
@@ -252,7 +249,7 @@ main (int argc, char *const *argv) | |||
252 | return 77; | 249 | return 77; |
253 | } | 250 | } |
254 | errorCount += | 251 | errorCount += |
255 | test_secure_get (NULL, NULL, CURL_SSLVERSION_DEFAULT); | 252 | test_secure_get (NULL, CURL_SSLVERSION_DEFAULT); |
256 | errorCount += testEmptyGet (0); | 253 | errorCount += testEmptyGet (0); |
257 | curl_global_cleanup (); | 254 | curl_global_cleanup (); |
258 | 255 | ||