libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 9d9a9a3f00a5a26c5ffc89874eda6e6f29d4e66e
parent 902432c452ce18f67b73860b140432e27733dea6
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Sun,  9 Apr 2017 18:08:05 +0300

HTTPS tests: improved compatibility with some platforms/libcurl versions

Diffstat:
Msrc/testcurl/https/tls_test_common.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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, /* perform peer authentication */ /* TODO merge into send_curl_req */ curl_easy_setopt (c, CURLOPT_SSL_VERIFYPEER, ver_peer); - curl_easy_setopt (c, CURLOPT_CAINFO, ca_cert_file_name); + if (ver_peer) + curl_easy_setopt (c, CURLOPT_CAINFO, ca_cert_file_name); curl_easy_setopt (c, CURLOPT_SSL_VERIFYHOST, 0); curl_easy_setopt (c, CURLOPT_FAILONERROR, 1);