switch to ring

This commit is contained in:
2025-11-17 21:54:44 -05:00
parent 420a9938ea
commit b18ea96100
5 changed files with 11 additions and 152 deletions

View File

@@ -1,9 +1,6 @@
use openworm::client::App;
use openworm::{client::App, net::install_crypto_provider};
fn main() {
quinn::rustls::crypto::aws_lc_rs::default_provider()
.install_default()
.unwrap();
install_crypto_provider();
App::run();
}

View File

@@ -1,9 +1,6 @@
use openworm::server::run_server;
use openworm::{net::install_crypto_provider, server::run_server};
fn main() {
quinn::rustls::crypto::aws_lc_rs::default_provider()
.install_default()
.unwrap();
install_crypto_provider();
run_server();
}

View File

@@ -27,3 +27,9 @@ pub struct Msg {
pub content: String,
pub user: String,
}
pub fn install_crypto_provider() {
quinn::rustls::crypto::ring::default_provider()
.install_default()
.unwrap();
}