Skip to content

Commit

Permalink
Update rustls to 0.23 and tokio-rustls to 0.26
Browse files Browse the repository at this point in the history
In addition we now use aws_lc_rs instead of ring to check for supported key type
  • Loading branch information
Abdullah Alyan committed Mar 25, 2024
1 parent bd26ca4 commit a4562bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ rmp-serde = { version = "1", optional = true }
uuid_ = { package = "uuid", version = "1", optional = true, features = ["serde"] }

# Optional TLS dependencies
rustls = { version = "0.22", optional = true }
tokio-rustls = { version = "0.25", optional = true }
rustls = { version = "0.23", optional = true }
tokio-rustls = { version = "0.26", optional = true }
rustls-pemfile = { version = "2.0.0", optional = true }

# Optional MTLS dependencies
Expand Down
2 changes: 1 addition & 1 deletion core/lib/src/tls/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub fn load_key(reader: &mut dyn io::BufRead) -> Result<PrivateKeyDer<'static>>

// Ensure we can use the key.
let key = keys.remove(0);
rustls::crypto::ring::sign::any_supported_type(&key).map_err(KeyError::Unsupported)?;
rustls::crypto::aws_lc_rs::sign::any_supported_type(&key).map_err(KeyError::Unsupported)?;
Ok(key)
}

Expand Down

0 comments on commit a4562bd

Please sign in to comment.