Skip to content

Commit

Permalink
log: TLS crypto provider is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
JLerxky committed Jun 11, 2024
1 parent 8f26611 commit 870cf1e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions io/zenoh-links/zenoh-link-quic/src/unicast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ impl LinkManagerUnicastTrait for LinkManagerUnicastQuic {
// Install rustls provider
rustls::crypto::ring::default_provider()
.install_default()
.map_err(|_| tracing::warn!("TLS crypto provider is installed"))
.ok();

let quic_config: QuicServerConfig = server_crypto
Expand Down
2 changes: 2 additions & 0 deletions io/zenoh-links/zenoh-link-quic/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ impl TlsServerConfig {
// Install rustls provider
rustls::crypto::ring::default_provider()
.install_default()
.map_err(|_| tracing::warn!("TLS crypto provider is installed"))
.ok();

let sc = if tls_server_client_auth {
Expand Down Expand Up @@ -276,6 +277,7 @@ impl TlsClientConfig {
// Install rustls provider
rustls::crypto::ring::default_provider()
.install_default()
.map_err(|_| tracing::warn!("TLS crypto provider is installed"))
.ok();

let cc = if tls_client_server_auth {
Expand Down
2 changes: 2 additions & 0 deletions io/zenoh-links/zenoh-link-tls/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ impl TlsServerConfig {
// Install rustls provider
rustls::crypto::ring::default_provider()
.install_default()
.map_err(|_| tracing::warn!("TLS crypto provider is installed"))
.ok();

let sc = if tls_server_client_auth {
Expand Down Expand Up @@ -277,6 +278,7 @@ impl TlsClientConfig {
// Install rustls provider
rustls::crypto::ring::default_provider()
.install_default()
.map_err(|_| tracing::warn!("TLS crypto provider is installed"))
.ok();

let cc = if tls_client_server_auth {
Expand Down

0 comments on commit 870cf1e

Please sign in to comment.