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.
This commit is contained in:
Evgeny Grin (Karlson2k)
2022-04-21 13:40:09 +03:00
parent dde8624f97
commit fc649c7bf3
+1
View File
@@ -209,6 +209,7 @@ do_get (const char *url, int port)
curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 10L);
curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer);
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 */