Skip to repository content

tenant.openagents/omega

No repository description is available.

OpenAgents Git authority 2026-07-28T03:57:50.226Z Public web read
NIP-34 coordinate30617:7649603503856e5148d571eac2766b288a8ff1e9e35d380337a1d2b0015b4f92:omega
MaintainersHidden in public view
References2 branches · 1 tag
Read-only clonegit clone https://openagents.com/git/tenant.openagents/omega.git
Browse files

http_client_tls.rs

22 lines · 640 B · rust
1use std::sync::OnceLock;
2
3use rustls::ClientConfig;
4use rustls_platform_verifier::ConfigVerifierExt;
5
6static TLS_CONFIG: OnceLock<rustls::ClientConfig> = OnceLock::new();
7
8pub fn tls_config() -> ClientConfig {
9    TLS_CONFIG
10        .get_or_init(|| {
11            // rustls uses the `aws_lc_rs` provider by default
12            // This only errors if the default provider has already
13            // been installed. We can ignore this `Result`.
14            rustls::crypto::aws_lc_rs::default_provider()
15                .install_default()
16                .ok();
17
18            ClientConfig::with_platform_verifier()
19        })
20        .clone()
21}
22
Served at tenant.openagents/omega Member data and write actions are omitted.