diff options
Diffstat (limited to 'src/testcurl/https/test_tls_options.c')
-rw-r--r-- | src/testcurl/https/test_tls_options.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testcurl/https/test_tls_options.c b/src/testcurl/https/test_tls_options.c index f94834b5..f42e324b 100644 --- a/src/testcurl/https/test_tls_options.c +++ b/src/testcurl/https/test_tls_options.c | |||
@@ -47,6 +47,7 @@ test_unmatching_ssl_version (void *cls, int port, const char *cipher_suite, | |||
47 | int curl_req_ssl_version) | 47 | int curl_req_ssl_version) |
48 | { | 48 | { |
49 | struct CBC cbc; | 49 | struct CBC cbc; |
50 | char url[255]; | ||
50 | (void) cls; /* Unused. Silent compiler warning. */ | 51 | (void) cls; /* Unused. Silent compiler warning. */ |
51 | if (NULL == (cbc.buf = malloc (sizeof (char) * 256))) | 52 | if (NULL == (cbc.buf = malloc (sizeof (char) * 256))) |
52 | { | 53 | { |
@@ -57,7 +58,6 @@ test_unmatching_ssl_version (void *cls, int port, const char *cipher_suite, | |||
57 | cbc.size = 256; | 58 | cbc.size = 256; |
58 | cbc.pos = 0; | 59 | cbc.pos = 0; |
59 | 60 | ||
60 | char url[255]; | ||
61 | if (gen_test_file_url (url, | 61 | if (gen_test_file_url (url, |
62 | sizeof (url), | 62 | sizeof (url), |
63 | port)) | 63 | port)) |
@@ -93,6 +93,8 @@ main (int argc, char *const *argv) | |||
93 | MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | 93 | MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD |
94 | | MHD_USE_TLS | MHD_USE_ERROR_LOG; | 94 | | MHD_USE_TLS | MHD_USE_ERROR_LOG; |
95 | int port; | 95 | int port; |
96 | const char *aes128_sha = "AES128-SHA"; | ||
97 | const char *aes256_sha = "AES256-SHA"; | ||
96 | (void) argc; (void) argv; /* Unused. Silent compiler warning. */ | 98 | (void) argc; (void) argv; /* Unused. Silent compiler warning. */ |
97 | 99 | ||
98 | if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT)) | 100 | if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT)) |
@@ -126,8 +128,6 @@ main (int argc, char *const *argv) | |||
126 | if (! testsuite_curl_global_init ()) | 128 | if (! testsuite_curl_global_init ()) |
127 | return 99; | 129 | return 99; |
128 | 130 | ||
129 | const char *aes128_sha = "AES128-SHA"; | ||
130 | const char *aes256_sha = "AES256-SHA"; | ||
131 | if (curl_uses_nss_ssl () == 0) | 131 | if (curl_uses_nss_ssl () == 0) |
132 | { | 132 | { |
133 | aes128_sha = "rsa_aes_128_sha"; | 133 | aes128_sha = "rsa_aes_128_sha"; |