diff options
Diffstat (limited to 'src/testcurl')
-rw-r--r-- | src/testcurl/https/tls_daemon_options_test.c | 10 | ||||
-rw-r--r-- | src/testcurl/https/tls_session_time_out_test.c | 1 |
2 files changed, 7 insertions, 4 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, |
diff --git a/src/testcurl/https/tls_session_time_out_test.c b/src/testcurl/https/tls_session_time_out_test.c index 37d28656..f0f43dbc 100644 --- a/src/testcurl/https/tls_session_time_out_test.c +++ b/src/testcurl/https/tls_session_time_out_test.c | |||
@@ -156,7 +156,6 @@ main (int argc, char *const *argv) | |||
156 | MHD_USE_DEBUG, 42433, | 156 | MHD_USE_DEBUG, 42433, |
157 | NULL, NULL, &http_ahc, NULL, | 157 | NULL, NULL, &http_ahc, NULL, |
158 | MHD_OPTION_CONNECTION_TIMEOUT, TIME_OUT, | 158 | MHD_OPTION_CONNECTION_TIMEOUT, TIME_OUT, |
159 | MHD_OPTION_SOCK_ADDR, "127.0.0.1", | ||
160 | MHD_OPTION_HTTPS_MEM_KEY, srv_key_pem, | 159 | MHD_OPTION_HTTPS_MEM_KEY, srv_key_pem, |
161 | MHD_OPTION_HTTPS_MEM_CERT, srv_self_signed_cert_pem, | 160 | MHD_OPTION_HTTPS_MEM_CERT, srv_self_signed_cert_pem, |
162 | MHD_OPTION_END); | 161 | MHD_OPTION_END); |