mirror of
https://github.com/curl/curl.git
synced 2026-08-25 06:03:32 +03:00
- Introducing CURLOPT_CERTINFO and the corresponding CURLINFO_CERTINFO. By
enabling this feature with CURLOPT_CERTINFO for a request using SSL (HTTPS or FTPS), libcurl will gather lots of server certificate info and that info can then get extracted by a client after the request has completed with curl_easy_getinfo()'s CURLINFO_CERTINFO option. Linus Nielsen Feltzing helped me test and smoothen out this feature. Unfortunately, this feature currently only works with libcurl built to use OpenSSL. This feature was sponsored by networking4all.com - thanks!
This commit is contained in:
parent
873e734c39
commit
4c9768565e
15 changed files with 542 additions and 41 deletions
|
|
@ -481,6 +481,7 @@ CURLcode Curl_close(struct SessionHandle *data)
|
|||
Curl_ssl_close_all(data);
|
||||
Curl_safefree(data->state.first_host);
|
||||
Curl_safefree(data->state.scratch);
|
||||
Curl_ssl_free_certinfo(data);
|
||||
|
||||
if(data->change.referer_alloc)
|
||||
free(data->change.referer);
|
||||
|
|
@ -1800,6 +1801,9 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,
|
|||
*/
|
||||
data->set.ssl.fsslctxp = va_arg(param, void *);
|
||||
break;
|
||||
case CURLOPT_CERTINFO:
|
||||
data->set.ssl.certinfo = (bool)(0 != va_arg(param, long));
|
||||
break;
|
||||
#endif
|
||||
case CURLOPT_CAINFO:
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue