Skip to content

Commit 8ade237

Browse files
fix: add explicit crypto provider
1 parent a78299e commit 8ade237

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ clap_complete = "4"
6363

6464
# HTTP client (for LLM drivers)
6565
reqwest = { version = "0.12", default-features = false, features = ["json", "stream", "multipart", "rustls-tls", "gzip", "deflate", "brotli"] }
66+
rustls = { version = "0.23", default-features = false, features = ["ring"] }
6667

6768
# Async trait
6869
async-trait = "0.1"

crates/openfang-kernel/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ subtle = { workspace = true }
3333
rand = { workspace = true }
3434
hex = { workspace = true }
3535
reqwest = { workspace = true }
36+
rustls = { workspace = true }
3637
cron = "0.15"
3738
zeroize = { workspace = true }
3839

crates/openfang-kernel/src/kernel.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,8 @@ impl OpenFangKernel {
511511

512512
/// Boot the kernel with an explicit configuration.
513513
pub fn boot_with_config(mut config: KernelConfig) -> KernelResult<Self> {
514+
let _ = rustls::crypto::ring::default_provider().install_default();
515+
514516
use openfang_types::config::KernelMode;
515517

516518
// Env var overrides — useful for Docker where config.toml is baked in.

0 commit comments

Comments
 (0)