summaryrefslogtreecommitdiff
path: root/docs/examples/cacertinmem.c
Commit message (Collapse)AuthorAgeFilesLines
* checksrc: make sure sizeof() is used *with* parenthesesDaniel Stenberg2018-05-211-2/+2
| | | | | | ... and unify the source code to adhere. Closes #2563
* examples/cacertinmem: ignore cert-already-exists errorJay Satiro2017-12-261-53/+90
| | | | | | | | | | | | | | | - Ignore X509_R_CERT_ALREADY_IN_HASH_TABLE errors in the CTX callback since it's possible the cert may have already been loaded by libcurl. - Remove the EXAMPLE code in the CURLOPT_SSL_CTX_FUNCTION.3 doc. Instead have it direct the reader to this cacertinmem.c example. - Fix the CA certificate to use the right CA for example.com, Digicert. Bug: https://curl.haxx.se/mail/lib-2017-12/0057.html Reported-by: Thomas van Hesteren Closes https://github.com/curl/curl/pull/2182
* code style: use spaces around equals signsDaniel Stenberg2017-09-111-22/+22
|
* spelling fixesklemens2017-03-261-2/+2
| | | | Closes #1356
* checksrc: code style: use 'char *name' styleDaniel Stenberg2016-11-241-6/+6
|
* docs/examples: remove spurious white spaces all overDaniel Stenberg2016-04-031-1/+1
| | | | ... to please the new, slightly picker, checksrc.pl
* examples: adhere to curl code styleDaniel Stenberg2016-02-111-19/+19
| | | | | | | | | | All plain C examples now (mostly) adhere to the curl code style. While they are only examples, they had diverted so much and contained all sorts of different mixed code styles by now. Having them use a unified style helps users and readability. Also, as they get copy-and-pasted widely by users, making sure they're clean and nice is a good idea. 573 checksrc warnings were addressed.
* URLs: change all http:// URLs to https://Daniel Stenberg2016-02-031-1/+1
|
* examples: add descriptions with <DESC>Daniel Stenberg2015-06-181-10/+4
| | | | | Using this fixed format for example descriptions, we can generate a better list on the web site.
* Update instances of some obsolete CURLOPTs to their new namesDan Fandrich2014-07-051-1/+1
|
* cacertinmem: fix memory leakDaniel Stenberg2014-05-091-1/+5
| | | | | | | While "just" an example it still isn't nice to leak memory. Bug: http://curl.haxx.se/bug/view.cgi?id=1368 Fixed-by: Marko
* sources: update source headersDaniel Stenberg2011-03-101-2/+15
| | | | | | All C and H files now (should) feature the proper project curl source code header, which includes basic info, a copyright statement and some basic disclaimers.
* examples: use example.com in example URLsDaniel Stenberg2010-10-051-1/+1
|
* remove the CVSish $Id$ linesDaniel Stenberg2010-03-241-1/+0
|
* Fixed a surprising number of example programs that were passing int argumentsDan Fandrich2008-05-221-5/+5
| | | | to curl_easy_setopt instead of long.
* Fixed some compile warnings and errors and improved portability in theDan Fandrich2007-07-121-0/+1
| | | | | | examples. Removed ftp3rdparty.c since libcurl doesn't support 3rd party FTP transfers any longer.
* Theo Borm's example, as was posted here:Daniel Stenberg2005-08-241-0/+138
http://curl.haxx.se/mail/lib-2005-08/0163.html