These values will be used to represent TGT lifetimes, which might or
might not be present.
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
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