diff --git a/auth/authn_policy_impl.h b/auth/authn_policy_impl.h index 87a13253835..121c6cbad46 100644 --- a/auth/authn_policy_impl.h +++ b/auth/authn_policy_impl.h @@ -64,4 +64,19 @@ struct authn_audit_info { struct authn_int64_optional tgt_lifetime_raw; }; +static inline struct authn_int64_optional authn_int64_some(const int64_t val) +{ + return (struct authn_int64_optional) { + .is_present = true, + .val = val, + }; +} + +static inline struct authn_int64_optional authn_int64_none(void) +{ + return (struct authn_int64_optional) { + .is_present = false, + }; +} + #endif