diff options
Diffstat (limited to 'src/testcurl/https/mhds_session_info_test.c')
-rw-r--r-- | src/testcurl/https/mhds_session_info_test.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/testcurl/https/mhds_session_info_test.c b/src/testcurl/https/mhds_session_info_test.c index eefc05fe..a5ff42f8 100644 --- a/src/testcurl/https/mhds_session_info_test.c +++ b/src/testcurl/https/mhds_session_info_test.c | |||
@@ -116,6 +116,12 @@ test_query_session () | |||
116 | if (d == NULL) | 116 | if (d == NULL) |
117 | return 2; | 117 | return 2; |
118 | 118 | ||
119 | char *aes256_sha = "AES256-SHA"; | ||
120 | if (curl_uses_nss_ssl() == 0) | ||
121 | { | ||
122 | aes256_sha = "rsa_aes_256_sha"; | ||
123 | } | ||
124 | |||
119 | c = curl_easy_init (); | 125 | c = curl_easy_init (); |
120 | #if DEBUG_HTTPS_TEST | 126 | #if DEBUG_HTTPS_TEST |
121 | curl_easy_setopt (c, CURLOPT_VERBOSE, 1); | 127 | curl_easy_setopt (c, CURLOPT_VERBOSE, 1); |
@@ -128,7 +134,7 @@ test_query_session () | |||
128 | curl_easy_setopt (c, CURLOPT_FILE, &cbc); | 134 | curl_easy_setopt (c, CURLOPT_FILE, &cbc); |
129 | /* TLS options */ | 135 | /* TLS options */ |
130 | curl_easy_setopt (c, CURLOPT_SSLVERSION, CURL_SSLVERSION_SSLv3); | 136 | curl_easy_setopt (c, CURLOPT_SSLVERSION, CURL_SSLVERSION_SSLv3); |
131 | curl_easy_setopt (c, CURLOPT_SSL_CIPHER_LIST, "AES256-SHA"); | 137 | curl_easy_setopt (c, CURLOPT_SSL_CIPHER_LIST, aes256_sha); |
132 | /* currently skip any peer authentication */ | 138 | /* currently skip any peer authentication */ |
133 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYPEER, 0); | 139 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYPEER, 0); |
134 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYHOST, 0); | 140 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYHOST, 0); |