aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/https/tls_daemon_options_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/https/tls_daemon_options_test.c')
-rw-r--r--src/testcurl/https/tls_daemon_options_test.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/testcurl/https/tls_daemon_options_test.c b/src/testcurl/https/tls_daemon_options_test.c
index 556d6684..412f65f2 100644
--- a/src/testcurl/https/tls_daemon_options_test.c
+++ b/src/testcurl/https/tls_daemon_options_test.c
@@ -403,6 +403,7 @@ main (int argc, char *const *argv)
403{ 403{
404 FILE *test_fd; 404 FILE *test_fd;
405 unsigned int errorCount = 0; 405 unsigned int errorCount = 0;
406 char * cur_dir;
406 407
407 MHD_gtls_global_set_log_level (DEBUG_GNUTLS_LOG_LEVEL); 408 MHD_gtls_global_set_log_level (DEBUG_GNUTLS_LOG_LEVEL);
408 409
@@ -434,11 +435,14 @@ main (int argc, char *const *argv)
434 MHD_OPTION_HTTPS_MEM_KEY, srv_key_pem, 435 MHD_OPTION_HTTPS_MEM_KEY, srv_key_pem,
435 MHD_OPTION_HTTPS_MEM_CERT, srv_self_signed_cert_pem, 436 MHD_OPTION_HTTPS_MEM_CERT, srv_self_signed_cert_pem,
436 MHD_OPTION_END); 437 MHD_OPTION_END);
438
439 cur_dir = get_current_dir_name ();
437 errorCount += 440 errorCount +=
438 test_wrap ("file certificates", &test_file_certificates, test_fd, 441 test_wrap ("file certificates", &test_file_certificates, test_fd,
439 "AES256-SHA", CURL_SSLVERSION_TLSv1, MHD_OPTION_HTTPS_MEM_KEY, 442 "AES256-SHA", CURL_SSLVERSION_TLSv1, MHD_OPTION_HTTPS_CERT_PATH, cur_dir,
440 srv_key_pem, MHD_OPTION_HTTPS_MEM_CERT, 443 MHD_OPTION_HTTPS_KEY_PATH, cur_dir, MHD_OPTION_END);
441 srv_self_signed_cert_pem, MHD_OPTION_END); 444 free (cur_dir);
445
442 errorCount += 446 errorCount +=
443 test_wrap ("protocol_version", &test_protocol_version, test_fd, 447 test_wrap ("protocol_version", &test_protocol_version, test_fd,
444 "AES256-SHA", CURL_SSLVERSION_TLSv1, MHD_OPTION_HTTPS_MEM_KEY, 448 "AES256-SHA", CURL_SSLVERSION_TLSv1, MHD_OPTION_HTTPS_MEM_KEY,