As an extension to #1020 this PR adds a function that gets called by libcurl just before the initialization of an SSL connection after having processed all other SSL related options to give a last chance to an application to modify the behavior of the SSL initialization.
This option is incompatible with cpr::ssl::CaBuffer. In case both options are present an instance of std::logic_error gets thrown while performing the request.
Implements #1019.
As an extension to #1020 this PR adds a function that gets called by libcurl just before the initialization of an SSL connection after having processed all other SSL related options to give a last chance to an application to modify the behavior of the SSL initialization.
Ref: https://curl.se/libcurl/c/CURLOPT_SSL_CTX_FUNCTION.html
How to use:
This option is incompatible with
cpr::ssl::CaBuffer
. In case both options are present an instance ofstd::logic_error
gets thrown while performing the request.