1CURLINFO_PROXY_SSL_VERIFYREScUuLrTl(_3e)asy_getinfoCoUpRtLiIoNnFsO_PROXY_SSL_VERIFYRESULT(3)
2
3
4
6 CURLINFO_PROXY_SSL_VERIFYRESULT - get the result of the proxy certifi‐
7 cate verification
8
10 #include <curl/curl.h>
11
12 CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_PROXY_SSL_VERIFYRE‐
13 SULT, long *result);
14
16 Pass a pointer to a long to receive the result of the certificate veri‐
17 fication that was requested (using the CURLOPT_PROXY_SSL_VERIFYPEER(3)
18 option. This is only used for HTTPS proxies.
19
21 All
22
24 CURL *curl = curl_easy_init();
25 if(curl) {
26 CURLcode res;
27 long verifyresult;
28 curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
29 curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy:443");
30 res = curl_easy_perform(curl);
31 curl_easy_getinfo(curl, CURLINFO_PROXY_SSL_VERIFYRESULT, &verifyresult);
32 printf("The peer verification said %s\n", verifyresult?
33 "fine":"BAAAD");
34 curl_easy_cleanup(curl);
35 }
36
38 Added in 7.52.0
39
41 Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION
42 if not.
43
45 curl_easy_getinfo(3), curl_easy_setopt(3), CURLINFO_SSL_VERIFYRE‐
46 SULT(3),
47
48
49
50libcurl 7.79.1 November 04, 2C0U2R0LINFO_PROXY_SSL_VERIFYRESULT(3)