mirror of
https://github.com/curl/curl.git
synced 2026-07-24 17:07:16 +03:00
curl_easy_ssls_export: make the example more clear
As mentioned in #18031 Closes #18117
This commit is contained in:
parent
ba9ddb9357
commit
077fd6aac8
1 changed files with 6 additions and 0 deletions
|
|
@ -150,6 +150,12 @@ int main(void)
|
|||
if(curl) {
|
||||
curl_easy_setopt(curl, CURLOPT_SHARE, share);
|
||||
|
||||
/* run a transfer, all TLS sessions received will be added
|
||||
* to the share. */
|
||||
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
|
||||
curl_easy_perform(curl);
|
||||
|
||||
/* export the TLS sessions collected in the share */
|
||||
rc = curl_easy_ssls_export(curl, my_export_cb, NULL);
|
||||
|
||||
/* always cleanup */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue