From f294c5bca990f684b59f217dd468a41b7ac83d0e Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Tue, 27 Jan 2026 16:20:25 -0800 Subject: chore(deps): audit ssl deps (#3110) ## Checks - [ ] I am happy for maintainers to push small adjustments to this PR, to speed up the review cycle - [ ] I have checked that there are no existing pull requests for the same thing --- crates/atuin-client/src/api_client.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crates/atuin-client/src/api_client.rs') diff --git a/crates/atuin-client/src/api_client.rs b/crates/atuin-client/src/api_client.rs index 86452d50..aeca6492 100644 --- a/crates/atuin-client/src/api_client.rs +++ b/crates/atuin-client/src/api_client.rs @@ -11,6 +11,7 @@ use reqwest::{ use atuin_common::{ api::{ATUIN_CARGO_VERSION, ATUIN_HEADER_VERSION, ATUIN_VERSION}, record::{EncryptedData, HostId, Record, RecordIdx}, + tls::ensure_crypto_provider, }; use atuin_common::{ api::{ @@ -59,6 +60,7 @@ pub async fn register( email: &str, password: &str, ) -> Result { + ensure_crypto_provider(); let mut map = HashMap::new(); map.insert("username", username); map.insert("email", email); @@ -91,6 +93,7 @@ pub async fn register( } pub async fn login(address: &str, req: LoginRequest) -> Result { + ensure_crypto_provider(); let url = make_url(address, "/login")?; let client = reqwest::Client::new(); @@ -114,6 +117,7 @@ pub async fn login(address: &str, req: LoginRequest) -> Result { pub async fn latest_version() -> Result { use atuin_common::api::IndexResponse; + ensure_crypto_provider(); let url = "https://api.atuin.sh"; let client = reqwest::Client::new(); @@ -197,6 +201,7 @@ impl<'a> Client<'a> { connect_timeout: u64, timeout: u64, ) -> Result { + ensure_crypto_provider(); let mut headers = HeaderMap::new(); headers.insert(AUTHORIZATION, format!("Token {session_token}").parse()?); -- cgit v1.3.1