tls: default to Arti's rustls backend (drop OpenSSL from TLS)
Arti's TLS backends are non-additive; the root crate defaulted to `native-tls` (OpenSSL). Switch `default = ["rustls"]` and pin the `rustls` crate with its `ring` feature — `tor-rtcompat` pulls rustls in with `default-features = false`, so without that pin the backend compiles with no `CryptoProvider` and the first TLS config fails (same reason already recorded in crates/onionwire-sdk/Cargo.toml). `native-tls` stays as an opt-in feature. SQLCipher still builds vendored OpenSSL (`bundled-sqlcipher-vendored-openssl`); that is unrelated to TLS. - tests/tls_backend.rs: compile-time pin that the default features select rustls, plus a runtime check that rustls resolves a provider with no manual install. - ci.yml: the root `test` job no longer installs pkg-config/libssl-dev (the SDK job keeps it). - docs: README build deps, ARTI_UPGRADE backend table, release-body and the SDK README now describe the rustls default; the false "binaries link libssl.so.3 dynamically" claim is corrected. - crates/onionwire-sdk/Cargo.lock: regenerated for the root crate's new dependency (separate workspace, --locked would otherwise fail).
This commit is contained in:
parent
ad1b994c08
commit
69672809ab
10 changed files with 91 additions and 38 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
|
@ -2645,6 +2645,7 @@ dependencies = [
|
|||
"ratatui",
|
||||
"rpassword",
|
||||
"rusqlite",
|
||||
"rustls",
|
||||
"safelog",
|
||||
"serde_json",
|
||||
"sha2",
|
||||
|
|
@ -3500,6 +3501,7 @@ checksum = "6725596c3f2c3a0aef021139e145d4eafe314a6623e4680ca83852b2c67ab2ba"
|
|||
dependencies = [
|
||||
"log",
|
||||
"once_cell",
|
||||
"ring",
|
||||
"rustls-pki-types",
|
||||
"rustls-webpki",
|
||||
"subtle",
|
||||
|
|
|
|||
Loading…
Reference in a new issue