mirror of
https://github.com/curl/curl.git
synced 2026-07-24 17:07:16 +03:00
rustls: add CURLOPT_CAINFO_BLOB support
Add support for `CURLOPT_CAINFO_BLOB` `CURLOPT_PROXY_CAINFO_BLOB` to the rustls TLS backend. Multiple certificates in a single PEM string are supported just like OpenSSL does with this option. This is compatible at least with rustls-ffi 0.8+ which is our new minimum version anyway. I was able to build and run this on Windows, pulling trusted certs from the system and then add them to rustls by setting `CURLOPT_CAINFO_BLOB`. Handy! Closes #8255
This commit is contained in:
parent
dbde76bdd6
commit
3be94d84fc
3 changed files with 33 additions and 5 deletions
|
|
@ -62,7 +62,7 @@ if(curl) {
|
|||
Added in 7.77.0.
|
||||
|
||||
This option is supported by the BearSSL (since 7.79.0), mbedTLS (since 7.81.0),
|
||||
OpenSSL, Secure Transport and Schannel backends.
|
||||
rustls (since 7.82.0), OpenSSL, Secure Transport and Schannel backends.
|
||||
.SH RETURN VALUE
|
||||
Returns CURLE_OK if the option is supported, CURLE_UNKNOWN_OPTION if not, or
|
||||
CURLE_OUT_OF_MEMORY if there was insufficient heap space.
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ if(curl) {
|
|||
.SH AVAILABILITY
|
||||
Added in 7.77.0.
|
||||
|
||||
This option is supported by the OpenSSL, Secure
|
||||
This option is supported by the rustls (since 7.82.0), OpenSSL, Secure
|
||||
Transport and Schannel backends.
|
||||
.SH RETURN VALUE
|
||||
Returns CURLE_OK if the option is supported, CURLE_UNKNOWN_OPTION if not, or
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue