Upgrade to rustls v0.23.22 (#24138)
This will help us debug a panic we're seeing in their internals. In order to make this work, I've temporarily forked async-tls with: https://github.com/async-rs/async-tls/pull/59/files Closes #ISSUE Release Notes: - N/A
This commit is contained in:
parent
a8741dc310
commit
4f63423d56
3 changed files with 95 additions and 47 deletions
|
@ -146,6 +146,8 @@ pub fn init_settings(cx: &mut App) {
|
|||
}
|
||||
|
||||
pub fn init(client: &Arc<Client>, cx: &mut App) {
|
||||
let _ = rustls::crypto::ring::default_provider().install_default();
|
||||
|
||||
let client = Arc::downgrade(client);
|
||||
cx.on_action({
|
||||
let client = client.clone();
|
||||
|
@ -1131,15 +1133,8 @@ impl Client {
|
|||
for error in root_certs.errors {
|
||||
log::warn!("error loading native certs: {:?}", error);
|
||||
}
|
||||
root_store.add_parsable_certificates(
|
||||
&root_certs
|
||||
.certs
|
||||
.into_iter()
|
||||
.map(|cert| cert.as_ref().to_owned())
|
||||
.collect::<Vec<_>>(),
|
||||
);
|
||||
root_store.add_parsable_certificates(root_certs.certs);
|
||||
rustls::ClientConfig::builder()
|
||||
.with_safe_defaults()
|
||||
.with_root_certificates(root_store)
|
||||
.with_no_client_auth()
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue