diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-04-21 13:33:07 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-04-21 13:40:09 +0300 |
commit | fc649c7bf3ba670371ff42d06bcdb48e50467c63 (patch) | |
tree | 8cbcbcedb1f76d308214b819b4937d3168816301 /src | |
parent | dde8624f97e62d0a720e325b2a274b6397c2f99f (diff) | |
download | libmicrohttpd-fc649c7bf3ba670371ff42d06bcdb48e50467c63.tar.gz libmicrohttpd-fc649c7bf3ba670371ff42d06bcdb48e50467c63.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/testcurl/https/test_https_sni.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) | |||
209 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 10L); | 209 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 10L); |
210 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 210 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
211 | curl_easy_setopt (c, CURLOPT_FILE, &cbc); | 211 | curl_easy_setopt (c, CURLOPT_FILE, &cbc); |
212 | curl_easy_setopt (c, CURLOPT_CAINFO, ABS_SRCDIR "/test-ca.crt"); | ||
212 | 213 | ||
213 | /* perform peer authentication */ | 214 | /* perform peer authentication */ |
214 | /* TODO merge into send_curl_req */ | 215 | /* TODO merge into send_curl_req */ |