diff options
Diffstat (limited to 'src/testcurl/https/tls_test_common.c')
-rw-r--r-- | src/testcurl/https/tls_test_common.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/testcurl/https/tls_test_common.c b/src/testcurl/https/tls_test_common.c index 9d988451..f68f5979 100644 --- a/src/testcurl/https/tls_test_common.c +++ b/src/testcurl/https/tls_test_common.c | |||
@@ -232,6 +232,7 @@ http_dummy_ahc (void *cls, | |||
232 | return 0; | 232 | return 0; |
233 | } | 233 | } |
234 | 234 | ||
235 | |||
235 | /** | 236 | /** |
236 | * send a test http request to the daemon | 237 | * send a test http request to the daemon |
237 | * @param url | 238 | * @param url |
@@ -414,6 +415,7 @@ cleanup: | |||
414 | return ret; | 415 | return ret; |
415 | } | 416 | } |
416 | 417 | ||
418 | |||
417 | /** | 419 | /** |
418 | * setup test case | 420 | * setup test case |
419 | * | 421 | * |
@@ -439,7 +441,7 @@ setup_testcase (struct MHD_Daemon **d, int port, int daemon_flags, va_list | |||
439 | { | 441 | { |
440 | const union MHD_DaemonInfo *dinfo; | 442 | const union MHD_DaemonInfo *dinfo; |
441 | dinfo = MHD_get_daemon_info (*d, MHD_DAEMON_INFO_BIND_PORT); | 443 | dinfo = MHD_get_daemon_info (*d, MHD_DAEMON_INFO_BIND_PORT); |
442 | if ((NULL == dinfo) ||(0 == dinfo->port) ) | 444 | if ((NULL == dinfo) || (0 == dinfo->port) ) |
443 | { | 445 | { |
444 | MHD_stop_daemon (*d); | 446 | MHD_stop_daemon (*d); |
445 | return 0; | 447 | return 0; |
@@ -450,12 +452,14 @@ setup_testcase (struct MHD_Daemon **d, int port, int daemon_flags, va_list | |||
450 | return port; | 452 | return port; |
451 | } | 453 | } |
452 | 454 | ||
455 | |||
453 | void | 456 | void |
454 | teardown_testcase (struct MHD_Daemon *d) | 457 | teardown_testcase (struct MHD_Daemon *d) |
455 | { | 458 | { |
456 | MHD_stop_daemon (d); | 459 | MHD_stop_daemon (d); |
457 | } | 460 | } |
458 | 461 | ||
462 | |||
459 | int | 463 | int |
460 | setup_session (gnutls_session_t *session, | 464 | setup_session (gnutls_session_t *session, |
461 | gnutls_datum_t *key, | 465 | gnutls_datum_t *key, |
@@ -501,6 +505,7 @@ setup_session (gnutls_session_t *session, | |||
501 | return 0; | 505 | return 0; |
502 | } | 506 | } |
503 | 507 | ||
508 | |||
504 | int | 509 | int |
505 | teardown_session (gnutls_session_t session, | 510 | teardown_session (gnutls_session_t session, |
506 | gnutls_datum_t *key, | 511 | gnutls_datum_t *key, |
@@ -518,6 +523,7 @@ teardown_session (gnutls_session_t session, | |||
518 | return 0; | 523 | return 0; |
519 | } | 524 | } |
520 | 525 | ||
526 | |||
521 | /* TODO test_wrap: change sig to (setup_func, test, va_list test_arg) */ | 527 | /* TODO test_wrap: change sig to (setup_func, test, va_list test_arg) */ |
522 | int | 528 | int |
523 | test_wrap (const char *test_name, int | 529 | test_wrap (const char *test_name, int |