aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/https/tls_test_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/https/tls_test_common.c')
-rw-r--r--src/testcurl/https/tls_test_common.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/testcurl/https/tls_test_common.c b/src/testcurl/https/tls_test_common.c
index 93eb4bed..95716379 100644
--- a/src/testcurl/https/tls_test_common.c
+++ b/src/testcurl/https/tls_test_common.c
@@ -23,7 +23,6 @@
23 * @brief Common tls test functions 23 * @brief Common tls test functions
24 * @author Sagie Amir 24 * @author Sagie Amir
25 */ 25 */
26
27#include "tls_test_common.h" 26#include "tls_test_common.h"
28#include "tls_test_keys.h" 27#include "tls_test_keys.h"
29#include "gnutls.h" 28#include "gnutls.h"
@@ -55,7 +54,7 @@ copyBuffer (void *ptr, size_t size, size_t nmemb, void *ctx)
55} 54}
56 55
57static int 56static int
58file_reader (void *cls, size_t pos, char *buf, int max) 57file_reader (void *cls, uint64_t pos, char *buf, int max)
59{ 58{
60 FILE *file = cls; 59 FILE *file = cls;
61 fseek (file, pos, SEEK_SET); 60 fseek (file, pos, SEEK_SET);
@@ -68,7 +67,7 @@ file_reader (void *cls, size_t pos, char *buf, int max)
68int 67int
69http_ahc (void *cls, struct MHD_Connection *connection, 68http_ahc (void *cls, struct MHD_Connection *connection,
70 const char *url, const char *method, const char *upload_data, 69 const char *url, const char *method, const char *upload_data,
71 const char *version, unsigned int *upload_data_size, void **ptr) 70 const char *version, size_t *upload_data_size, void **ptr)
72{ 71{
73 static int aptr; 72 static int aptr;
74 struct MHD_Response *response; 73 struct MHD_Response *response;
@@ -112,7 +111,7 @@ http_ahc (void *cls, struct MHD_Connection *connection,
112int 111int
113http_dummy_ahc (void *cls, struct MHD_Connection *connection, 112http_dummy_ahc (void *cls, struct MHD_Connection *connection,
114 const char *url, const char *method, const char *upload_data, 113 const char *url, const char *method, const char *upload_data,
115 const char *version, unsigned int *upload_data_size, 114 const char *version, size_t *upload_data_size,
116 void **ptr) 115 void **ptr)
117{ 116{
118 return 0; 117 return 0;