Closed t348575 closed 5 months ago
Yep, missed that.
Hi, will this change be reverted? currently I have to add rustls by myself as a dependency and enable the aws_lc_rs feature if I want to use rustls with this create.
You can always call CryptoProvider::install_default()
manually. It should be done once at the very beginning.
thanks a lot for the reply. For clarification, in this case I would also have to include rustls to call CryptoProvider::install_default() cause it is not exported by tokio_tungstenite and I have to provide my own CryptoProvider cause CryptoProvider::install_default() needs a self reference.
add this to fixed this issue:
rustls::crypto::ring::default_provider().install_default().expect("Failed to install rustls crypto provider");
After upgrading
tokio-tungstenite
to0.23
from0.22
, I get the below panic when connecting to a secured websocket endpoint.My
Cargo.toml
entry:tokio-tungstenite = { version = "0.23", features = ["rustls-tls-webpki-roots"] }
this might have something to do with it?
The panic: