]> granicus.if.org Git - curl/commit
examples/cacertinmem: ignore cert-already-exists error
authorJay Satiro <raysatiro@yahoo.com>
Tue, 19 Dec 2017 07:17:39 +0000 (02:17 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Tue, 26 Dec 2017 07:08:35 +0000 (02:08 -0500)
commita0f3eaf25dd2c4acf1f49d28d5de4f1765521709
tree53a2f552a99df162fdd3b917b2a13787f8be1bdb
parent859ac3602159ef3df77ac4cb1ae191b069ff1b5b
examples/cacertinmem: ignore cert-already-exists error

- 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
docs/examples/cacertinmem.c
docs/libcurl/opts/CURLOPT_SSL_CTX_FUNCTION.3