fix(types,blahd): reject timestamps > i64::MAX

This commit is contained in:
oxalica 2024-09-24 20:36:27 -04:00
parent c4fbf1294b
commit a38b59da84
5 changed files with 27 additions and 12 deletions

View file

@ -1190,7 +1190,7 @@ async fn register_flow(server: Server) {
// Sign using id_key.
let act_key = UserActKeyDesc {
act_key: CAROL.pubkeys.act_key.clone(),
expire_time: u64::MAX,
expire_time: i64::MAX as _,
comment: "comment".into(),
}
.sign_msg(&CAROL.pubkeys.id_key, &CAROL.id_priv)