curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Usage of CURLINFO_CAINFO

From: Dan Fandrich via curl-users <curl-users_at_lists.haxx.se>
Date: Sun, 29 May 2022 11:45:52 -0700

On Sun, May 29, 2022 at 05:17:47PM +0200, Mac-Fly via curl-users wrote:
> I want to derive the CA_INFO default value using libcurl v7.83.1 on Windows 10 as described here:
> https://curl.se/libcurl/c/curl_easy_getinfo.html
> ...with this snippet:
>
> char* ca_info;
> CURLcode cc = curl_easy_getinfo(curl, CURLINFO_CAINFO, &ca_info);
>
> However, at compile time I receive:
> error: 'CURLINFO_CAINFO' was not declared in this scope; did you mean 'CURLINFO_CERTINFO'?
>
> Additionally, this referred page:
> https://curl.se/libcurl/c/CURLINFO_CAINFO.html
> ...delivers "Resource is gone".
> What am I missing?

This feature was just added a few days ago. It hasn't propagated everywhere
yet, including into a release.

Dan
-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-users
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2022-05-29