testcurl/https: stopped CA file creation/removal

Use CA cert file which is already in the filesystem
This commit is contained in:
Evgeny Grin (Karlson2k) committed 2022-10-05 18:42:19 +03:00
1 parent 28e28436c6
commit 0be4e8c2a7
6 files changed
+7 -68

No files matched your search

+5 -5
View File
@@ -209,7 +209,7 @@ do_get (const char *url, uint16_t 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");
curl_easy_setopt (c, CURLOPT_CAINFO, SRCDIR "/test-ca.crt");
/* perform peer authentication */
/* TODO merge into send_curl_req */
@@ -288,10 +288,10 @@ main (int argc, char *const *argv)
return 77;
}
load_keys ("mhdhost1", ABS_SRCDIR "/mhdhost1.crt",
ABS_SRCDIR "/mhdhost1.key");
load_keys ("mhdhost2", ABS_SRCDIR "/mhdhost2.crt",
ABS_SRCDIR "/mhdhost2.key");
load_keys ("mhdhost1", SRCDIR "/mhdhost1.crt",
SRCDIR "/mhdhost1.key");
load_keys ("mhdhost2", SRCDIR "/mhdhost2.crt",
SRCDIR "/mhdhost2.key");
d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION
| MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_TLS
| MHD_USE_ERROR_LOG,