diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-01-23 12:05:54 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-01-23 12:05:54 +0000 |
commit | 51c9feb0d8404622db4f2bd6e489684dd6b9ad20 (patch) | |
tree | 9810fdd4dbd5186571e89563b516625a0eaae371 /src/testcurl/https/tls_test_common.c | |
parent | 016c03992e26690c5b321ad692351068ab2dbe83 (diff) | |
download | libmicrohttpd-51c9feb0d8404622db4f2bd6e489684dd6b9ad20.tar.gz libmicrohttpd-51c9feb0d8404622db4f2bd6e489684dd6b9ad20.zip |
-minor test code cleanup
Diffstat (limited to 'src/testcurl/https/tls_test_common.c')
-rw-r--r-- | src/testcurl/https/tls_test_common.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/testcurl/https/tls_test_common.c b/src/testcurl/https/tls_test_common.c index 140954d2..7c6441f7 100644 --- a/src/testcurl/https/tls_test_common.c +++ b/src/testcurl/https/tls_test_common.c | |||
@@ -206,7 +206,7 @@ http_dummy_ahc (void *cls, struct MHD_Connection *connection, | |||
206 | */ | 206 | */ |
207 | /* TODO have test wrap consider a NULL cbc */ | 207 | /* TODO have test wrap consider a NULL cbc */ |
208 | int | 208 | int |
209 | send_curl_req (char *url, struct CBC * cbc, char *cipher_suite, | 209 | send_curl_req (char *url, struct CBC * cbc, const char *cipher_suite, |
210 | int proto_version) | 210 | int proto_version) |
211 | { | 211 | { |
212 | CURL *c; | 212 | CURL *c; |
@@ -289,7 +289,7 @@ gen_test_file_url (char *url, int port) | |||
289 | * test HTTPS file transfer | 289 | * test HTTPS file transfer |
290 | */ | 290 | */ |
291 | int | 291 | int |
292 | test_https_transfer (void *cls, char *cipher_suite, int proto_version) | 292 | test_https_transfer (void *cls, const char *cipher_suite, int proto_version) |
293 | { | 293 | { |
294 | int len; | 294 | int len; |
295 | int ret = 0; | 295 | int ret = 0; |
@@ -424,10 +424,10 @@ teardown_session (gnutls_session_t session, | |||
424 | 424 | ||
425 | /* TODO test_wrap: change sig to (setup_func, test, va_list test_arg) */ | 425 | /* TODO test_wrap: change sig to (setup_func, test, va_list test_arg) */ |
426 | int | 426 | int |
427 | test_wrap (char *test_name, int | 427 | test_wrap (const char *test_name, int |
428 | (*test_function) (void * cls, char *cipher_suite, | 428 | (*test_function) (void * cls, const char *cipher_suite, |
429 | int proto_version), void * cls, | 429 | int proto_version), void * cls, |
430 | int daemon_flags, char *cipher_suite, int proto_version, ...) | 430 | int daemon_flags, const char *cipher_suite, int proto_version, ...) |
431 | { | 431 | { |
432 | int ret; | 432 | int ret; |
433 | va_list arg_list; | 433 | va_list arg_list; |
@@ -437,6 +437,7 @@ test_wrap (char *test_name, int | |||
437 | if (setup_testcase (&d, daemon_flags, arg_list) != 0) | 437 | if (setup_testcase (&d, daemon_flags, arg_list) != 0) |
438 | { | 438 | { |
439 | va_end (arg_list); | 439 | va_end (arg_list); |
440 | fprintf (stderr, "Failed to setup testcase %s\n", test_name); | ||
440 | return -1; | 441 | return -1; |
441 | } | 442 | } |
442 | #if 0 | 443 | #if 0 |