diff --git a/openmls/Cargo.toml b/openmls/Cargo.toml index d2daaeb3e2..3c8cba95a0 100644 --- a/openmls/Cargo.toml +++ b/openmls/Cargo.toml @@ -22,7 +22,7 @@ openmls_basic_credential = { version = "0.2.0", path = "../basic_credential", fe openmls_x509_credential = { version = "0.2.0", path = "../x509_credential" } x509-cert = "0.2" subtle = "2.5" -fluvio-wasm-timer = "0.2" +web-time = "1.1.0" indexmap = "2.0" itertools = "0.12" diff --git a/openmls/src/key_packages/lifetime.rs b/openmls/src/key_packages/lifetime.rs index 7086dc6569..f5dbb9f776 100644 --- a/openmls/src/key_packages/lifetime.rs +++ b/openmls/src/key_packages/lifetime.rs @@ -1,4 +1,4 @@ -use fluvio_wasm_timer::{SystemTime, UNIX_EPOCH}; +use web_time::{SystemTime, UNIX_EPOCH}; use serde::{Deserialize, Serialize}; use tls_codec::{TlsDeserialize, TlsSerialize, TlsSize}; diff --git a/x509_credential/Cargo.toml b/x509_credential/Cargo.toml index a3a2baa68c..5b1f758945 100644 --- a/x509_credential/Cargo.toml +++ b/x509_credential/Cargo.toml @@ -12,7 +12,7 @@ tls_codec = { workspace = true } async-trait = { workspace = true } serde = "1.0" openmls_basic_credential = { version = "0.2.0", path = "../basic_credential" } -fluvio-wasm-timer = "0.2" +web-time = "1.1.0" base64 = "0.21" uuid = "1.4" percent-encoding = "2.3" diff --git a/x509_credential/src/lib.rs b/x509_credential/src/lib.rs index a5d11d62a5..b87aecb584 100644 --- a/x509_credential/src/lib.rs +++ b/x509_credential/src/lib.rs @@ -122,9 +122,9 @@ impl X509Ext for Certificate { not_after, } = self.tbs_certificate.validity; - let now = fluvio_wasm_timer::SystemTime::now(); + let now = web_time::SystemTime::now(); let now = now - .duration_since(fluvio_wasm_timer::UNIX_EPOCH) + .duration_since(web_time::UNIX_EPOCH) .map_err(|_| CryptoError::TimeError)?; let is_nbf = now > not_before.to_unix_duration();