cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: documentation bug: wrong example reference for CURLOPT_SSL_CTX_FUNCTION

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 6 Mar 2016 16:54:48 +0100 (CET)

On Fri, 4 Mar 2016, Vadim Grinshpun wrote:

> I noticed that the documentation page
> https://curl.haxx.se/libcurl/c/CURLOPT_SSL_CTX_FUNCTION.html
> has the following text (emphasis mine):
>
> For example, you can use this function to call library-specific
> callbacks to add additional validation code for certificates, and
> even to change the actual URI of a HTTPS request *(example used in
> the lib509 test case).*
>
> However, lib509.c is a test for custom memory allocators.
> I cannot find a testcase that matches the above statement, so not sure what
> the correct text should be.
>
> Hope someone knows what was intended there :)

Thanks, that's indeed incorrect and I'll fix that. The existing examples we
have that use CURLOPT_SSL_CTX_FUNCTION seem to be:

   curlx.c, cacertinmem.c and usercertinmem.c

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:  https://curl.haxx.se/mail/etiquette.html
Received on 2016-03-06