rustls: switch read_tls and write_tls to callbacks

And update to 0.6.0, including a rename from session to connection for
many fields.

Closes #7071
This commit is contained in:
Jacob Hoffman-Andrews 2021-05-14 18:45:49 -07:00 committed by Daniel Stenberg
parent 98770344b2
commit a62e6435f4
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
6 changed files with 159 additions and 137 deletions

View file

@ -3,7 +3,7 @@
[Rustls is a TLS backend written in Rust.](https://docs.rs/rustls/). Curl can
be built to use it as an alternative to OpenSSL or other TLS backends. We use
the [crustls C bindings](https://github.com/abetterinternet/crustls/). This
version of curl depends on version v0.5.0 of crustls.
version of curl depends on version v0.6.0 of crustls.
# Building with rustls
@ -12,7 +12,7 @@ First, [install Rust](https://rustup.rs/).
Next, check out, build, and install the appropriate version of crustls:
% cargo install cbindgen
% git clone https://github.com/abetterinternet/crustls/ -b v0.5.0
% git clone https://github.com/abetterinternet/crustls/ -b v0.6.0
% cd crustls
% make
% make DESTDIR=${HOME}/crustls-built/ install