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.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/testcurl/https/tls_daemon_options_test.c b/src/testcurl/https/tls_daemon_options_test.c
index 38a8c1d5..5817c9c5 100644
--- a/src/testcurl/https/tls_daemon_options_test.c
+++ b/src/testcurl/https/tls_daemon_options_test.c
@@ -356,8 +356,6 @@ main (int argc, char *const *argv)
356{ 356{
357 FILE *test_fd; 357 FILE *test_fd;
358 unsigned int errorCount = 0; 358 unsigned int errorCount = 0;
359 char * cur_dir;
360 char cert_path[255], key_path[255];
361 359
362 MHD_gtls_global_set_log_level (DEBUG_GNUTLS_LOG_LEVEL); 360 MHD_gtls_global_set_log_level (DEBUG_GNUTLS_LOG_LEVEL);
363 361
@@ -379,7 +377,7 @@ main (int argc, char *const *argv)
379 } 377 }
380 378
381 int mac[] = { MHD_GNUTLS_MAC_SHA1, 0 }; 379 int mac[] = { MHD_GNUTLS_MAC_SHA1, 0 };
382 int p[] = { MHD_GNUTLS_SSL3, 0 }; 380 int p[] = { MHD_GNUTLS_PROTOCOL_SSL3, 0 };
383 int cipher[] = { MHD_GNUTLS_CIPHER_3DES_CBC, 0 }; 381 int cipher[] = { MHD_GNUTLS_CIPHER_3DES_CBC, 0 };
384 int kx[] = { MHD_GNUTLS_KX_ANON_DH, 0 }; 382 int kx[] = { MHD_GNUTLS_KX_ANON_DH, 0 };
385 383
@@ -390,16 +388,6 @@ main (int argc, char *const *argv)
390 MHD_OPTION_HTTPS_MEM_CERT, srv_self_signed_cert_pem, 388 MHD_OPTION_HTTPS_MEM_CERT, srv_self_signed_cert_pem,
391 MHD_OPTION_END); 389 MHD_OPTION_END);
392 390
393 cur_dir = get_current_dir_name ();
394 sprintf (cert_path, "%s/%s", cur_dir, "cert.pem");
395 sprintf (key_path, "%s/%s", cur_dir, "key.pem");
396
397 errorCount +=
398 test_wrap ("file certificates", &test_https_transfer, test_fd,
399 "AES256-SHA", CURL_SSLVERSION_TLSv1, MHD_OPTION_HTTPS_CERT_PATH, cert_path,
400 MHD_OPTION_HTTPS_KEY_PATH, key_path, MHD_OPTION_END);
401 free (cur_dir);
402
403 errorCount += 391 errorCount +=
404 test_wrap ("protocol_version", &test_protocol_version, test_fd, 392 test_wrap ("protocol_version", &test_protocol_version, test_fd,
405 "AES256-SHA", CURL_SSLVERSION_TLSv1, MHD_OPTION_HTTPS_MEM_KEY, 393 "AES256-SHA", CURL_SSLVERSION_TLSv1, MHD_OPTION_HTTPS_MEM_KEY,