diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-04-09 18:08:05 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-04-09 18:08:05 +0300 |
commit | 9d9a9a3f00a5a26c5ffc89874eda6e6f29d4e66e (patch) | |
tree | f7f1fe356bc4f8508281b5b8338704a52a244d10 /src | |
parent | 902432c452ce18f67b73860b140432e27733dea6 (diff) | |
download | libmicrohttpd-9d9a9a3f00a5a26c5ffc89874eda6e6f29d4e66e.tar.gz libmicrohttpd-9d9a9a3f00a5a26c5ffc89874eda6e6f29d4e66e.zip |
HTTPS tests: improved compatibility with some platforms/libcurl versions
Diffstat (limited to 'src')
-rw-r--r-- | src/testcurl/https/tls_test_common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/testcurl/https/tls_test_common.c b/src/testcurl/https/tls_test_common.c index 29aa6449..728842e0 100644 --- a/src/testcurl/https/tls_test_common.c +++ b/src/testcurl/https/tls_test_common.c | |||
@@ -104,7 +104,8 @@ test_daemon_get (void *cls, | |||
104 | /* perform peer authentication */ | 104 | /* perform peer authentication */ |
105 | /* TODO merge into send_curl_req */ | 105 | /* TODO merge into send_curl_req */ |
106 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYPEER, ver_peer); | 106 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYPEER, ver_peer); |
107 | curl_easy_setopt (c, CURLOPT_CAINFO, ca_cert_file_name); | 107 | if (ver_peer) |
108 | curl_easy_setopt (c, CURLOPT_CAINFO, ca_cert_file_name); | ||
108 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYHOST, 0); | 109 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYHOST, 0); |
109 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 110 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); |
110 | 111 | ||