From fc649c7bf3ba670371ff42d06bcdb48e50467c63 Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Thu, 21 Apr 2022 13:33:07 +0300 Subject: test_https_sni: use CA certificate Still disabled in the test itself, but it should not hurt to give the proper CA if it is available. --- src/testcurl/https/test_https_sni.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/testcurl/https/test_https_sni.c b/src/testcurl/https/test_https_sni.c index a1272a18..cc7d1f43 100644 --- a/src/testcurl/https/test_https_sni.c +++ b/src/testcurl/https/test_https_sni.c @@ -209,6 +209,7 @@ do_get (const char *url, int port) curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 10L); curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); curl_easy_setopt (c, CURLOPT_FILE, &cbc); + curl_easy_setopt (c, CURLOPT_CAINFO, ABS_SRCDIR "/test-ca.crt"); /* perform peer authentication */ /* TODO merge into send_curl_req */ -- cgit v1.2.3