diff --git a/Cargo.toml b/Cargo.toml index aa980bd..eac5984 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ readme = "README.md" [dependencies] ahash = "0.8.11" -anyhow = "1.0.92" +anyhow = "1.0.93" arc-swap = "1.7.1" async-trait = "0.1.83" axum = "0.7.7" @@ -76,7 +76,7 @@ strum = { version = "0.26.3", features = ["derive"] } strum_macros = "0.26.4" sync_wrapper = "1.0.1" systemstat = "0.2.3" -thiserror = "1.0.68" +thiserror = "2.0.3" tokio = { version = "1.41.0", features = ["full"] } tokio-util = { version = "0.7.12", features = ["full"] } tokio-rustls = { version = "0.26.0", default-features = false, features = [ diff --git a/src/tls/mod.rs b/src/tls/mod.rs index 9c1c81a..eb4ff6c 100644 --- a/src/tls/mod.rs +++ b/src/tls/mod.rs @@ -13,7 +13,7 @@ use rustls::{ crypto::ring, server::{ClientHello, ResolvesServerCert}, sign::CertifiedKey, - ClientConfig, ServerConfig, SupportedProtocolVersion, TicketSwitcher, + ClientConfig, ServerConfig, SupportedProtocolVersion, TicketRotator, }; use rustls_platform_verifier::Verifier; use std::{ @@ -174,7 +174,7 @@ pub fn prepare_server_config( // while keeping the previous one available for decryption of tickets // issued earlier than `ticket_lifetime` ago. let ticketer = tickets::WithMetrics( - TicketSwitcher::new(opts.ticket_lifetime.as_secs() as u32, move || { + TicketRotator::new(opts.ticket_lifetime.as_secs() as u32, move || { Ok(Box::new(tickets::Ticketer::new())) }) .unwrap(),