mirror of
https://github.com/curl/curl.git
synced 2026-08-25 13:33:36 +03:00
examples: use present tense in comments
remove "will" and some other word fixes Closes #13003
This commit is contained in:
parent
6e494a2390
commit
f540e43b9d
81 changed files with 189 additions and 198 deletions
|
|
@ -139,7 +139,7 @@ int main(void)
|
|||
curl_easy_setopt(ch, CURLOPT_SSL_VERIFYPEER, 1L);
|
||||
curl_easy_setopt(ch, CURLOPT_URL, "https://www.example.com/");
|
||||
|
||||
/* Turn off the default CA locations, otherwise libcurl will load CA
|
||||
/* Turn off the default CA locations, otherwise libcurl loads CA
|
||||
* certificates from the locations that were detected/specified at
|
||||
* build-time
|
||||
*/
|
||||
|
|
@ -155,19 +155,18 @@ int main(void)
|
|||
else
|
||||
printf("*** transfer failed ***\n");
|
||||
|
||||
/* use a fresh connection (optional)
|
||||
* this option seriously impacts performance of multiple transfers but
|
||||
* it is necessary order to demonstrate this example. recall that the
|
||||
* ssl ctx callback is only called _before_ an SSL connection is
|
||||
* established, therefore it will not affect existing verified SSL
|
||||
* connections already in the connection cache associated with this
|
||||
* handle. normally you would set the ssl ctx function before making
|
||||
* any transfers, and not use this option.
|
||||
/* use a fresh connection (optional) this option seriously impacts
|
||||
* performance of multiple transfers but it is necessary order to
|
||||
* demonstrate this example. recall that the ssl ctx callback is only called
|
||||
* _before_ an SSL connection is established, therefore it does not affect
|
||||
* existing verified SSL connections already in the connection cache
|
||||
* associated with this handle. normally you would set the ssl ctx function
|
||||
* before making any transfers, and not use this option.
|
||||
*/
|
||||
curl_easy_setopt(ch, CURLOPT_FRESH_CONNECT, 1L);
|
||||
|
||||
/* second try: retrieve page using cacerts' certificate -> will succeed
|
||||
* load the certificate by installing a function doing the necessary
|
||||
/* second try: retrieve page using cacerts' certificate -> succeeds to load
|
||||
* the certificate by installing a function doing the necessary
|
||||
* "modifications" to the SSL CONTEXT just before link init
|
||||
*/
|
||||
curl_easy_setopt(ch, CURLOPT_SSL_CTX_FUNCTION, sslctx_function);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue