Re: Non-constness of field "data" in "struct curl_blob" with setopt

2021-02-22 Thread Ray Satiro via curl-library
haxx.se Cc: Tomalak Geret'kal Subject: Re: Non-constness of field "data" in "struct curl_blob" with setopt Why? The data isn't going to be modified. Just cast to `void*`. The `const` is erased just like the `char` is in this particular use case. I think we overall ag

Re: Non-constness of field "data" in "struct curl_blob" with setopt

2021-02-22 Thread Tomalak Geret'kal via curl-library
; Subject: Re: Non-constness of field "data" in "struct curl_blob" with setopt > >> Why? The data isn't going to be modified. Just cast to `void*`. The `const` >> is erased just like the `char` is in this particular use case. > I think we overall agree about

RE: Non-constness of field "data" in "struct curl_blob" with setopt

2021-02-22 Thread Laurent Dufresne via curl-library
-Original Message- From: curl-library On Behalf Of Tomalak Geret'kal via curl-library Sent: Monday, February 22, 2021 5:16 PM To: curl-library@cool.haxx.se Cc: Tomalak Geret'kal Subject: Re: Non-constness of field "data" in "struct curl_blob" with setopt

Re: Non-constness of field "data" in "struct curl_blob" with setopt

2021-02-22 Thread Tomalak Geret'kal via curl-library
On 22/02/2021 15:21, Laurent Dufresne via curl-library wrote: > > Hi everyone, > >   > > Version 7.71.0 of libcurl added few more options to enable > user to easily use Mutual TLS. > > Two of them, namely CURLOPT_SSLCERT_BLOB and > CURLOPT_SSLKEY_BLOB, take a “struct curl_blob” as > parameter and t