-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
libsgx-rs/remote-attestation/src/client.rs
Lines 180 to 187 in 8712a56
| fn verify_timestamp(&self, attn_report: &Value) -> Result<()> { | |
| if let Value::String(time) = &attn_report["timestamp"] { | |
| Ok(()) | |
| // TODO | |
| // let time_fixed = time.clone() + "+0000"; | |
| // let ts = DateTime::parse_from_str(&time_fixed, "%Y-%m-%dT%H:%M:%S%.f%z").unwrap().timestamp(); | |
| // let now = SystemTime::now().duration_since(UNIX_EPOCH).unwrap().as_secs() as i64; | |
| // ensure!(now - ts > 0, "") |
Reactions are currently unavailable