From aa8f99d22eb51f0a662d6fcba926fcf6b9e994b1 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 19 Jun 2012 17:53:06 +0000 Subject: -use lower port numbers with smaller conflict potential for ssl tests --- src/testcurl/daemon_options_test.c | 8 ++++---- src/testcurl/https/mhds_get_test.c | 4 ++-- src/testcurl/https/tls_test_common.h | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/testcurl/daemon_options_test.c b/src/testcurl/daemon_options_test.c index 7a387d94..79042a46 100644 --- a/src/testcurl/daemon_options_test.c +++ b/src/testcurl/daemon_options_test.c @@ -79,12 +79,12 @@ test_ip_addr_option () memset (&daemon_ip_addr, 0, sizeof (struct sockaddr_in)); daemon_ip_addr.sin_family = AF_INET; - daemon_ip_addr.sin_port = htons (42433); + daemon_ip_addr.sin_port = htons (4233); #if HAVE_INET6 memset (&daemon_ip_addr6, 0, sizeof (struct sockaddr_in6)); daemon_ip_addr6.sin6_family = AF_INET6; - daemon_ip_addr6.sin6_port = htons (42433); + daemon_ip_addr6.sin6_port = htons (4233); #endif inet_pton (AF_INET, "127.0.0.1", &daemon_ip_addr.sin_addr); @@ -92,7 +92,7 @@ test_ip_addr_option () inet_pton (AF_INET6, "::ffff:127.0.0.1", &daemon_ip_addr6.sin6_addr); #endif - d = MHD_start_daemon (MHD_USE_DEBUG, 42433, + d = MHD_start_daemon (MHD_USE_DEBUG, 4233, NULL, NULL, &ahc_echo, NULL, MHD_OPTION_SOCK_ADDR, &daemon_ip_addr, MHD_OPTION_END); @@ -102,7 +102,7 @@ test_ip_addr_option () MHD_stop_daemon (d); #if HAVE_INET6 - d = MHD_start_daemon (MHD_USE_DEBUG | MHD_USE_IPv6, 42433, + d = MHD_start_daemon (MHD_USE_DEBUG | MHD_USE_IPv6, 4233, NULL, NULL, &ahc_echo, NULL, MHD_OPTION_SOCK_ADDR, &daemon_ip_addr6, MHD_OPTION_END); diff --git a/src/testcurl/https/mhds_get_test.c b/src/testcurl/https/mhds_get_test.c index 4eefb8ff..f279ac9f 100644 --- a/src/testcurl/https/mhds_get_test.c +++ b/src/testcurl/https/mhds_get_test.c @@ -44,7 +44,7 @@ test_cipher_option (FILE * test_fd, char *cipher_suite, int proto_version) int ret; struct MHD_Daemon *d; d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_SSL | - MHD_USE_DEBUG, 42433, + MHD_USE_DEBUG, 4233, NULL, NULL, &http_ahc, NULL, MHD_OPTION_HTTPS_MEM_KEY, srv_key_pem, MHD_OPTION_HTTPS_MEM_CERT, srv_self_signed_cert_pem, @@ -70,7 +70,7 @@ test_secure_get (FILE * test_fd, char *cipher_suite, int proto_version) struct MHD_Daemon *d; d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_SSL | - MHD_USE_DEBUG, 42433, + MHD_USE_DEBUG, 4233, NULL, NULL, &http_ahc, NULL, MHD_OPTION_HTTPS_MEM_KEY, srv_signed_key_pem, MHD_OPTION_HTTPS_MEM_CERT, srv_signed_cert_pem, diff --git a/src/testcurl/https/tls_test_common.h b/src/testcurl/https/tls_test_common.h index 1556839b..7cc7e122 100644 --- a/src/testcurl/https/tls_test_common.h +++ b/src/testcurl/https/tls_test_common.h @@ -32,7 +32,7 @@ #define DEBUG_HTTPS_TEST 0 #define CURL_VERBOS_LEVEL 0 -#define DEAMON_TEST_PORT 42433 +#define DEAMON_TEST_PORT 4233 #define test_data "Hello World\n" #define ca_cert_file_name "tmp_ca_cert.pem" -- cgit v1.2.3