The following macros are supplied to check the semantics of entries in the attribute instance fields. In the following macros, S is a pointer to sec_attr_t. F is a sec_attr_trigs_types_flags_t.
#define SA_ATTR_BND_AUTH_INFO_TYPE_VALID(S) \
(SA_BND_AUTH_INFO_TYPE_VALID(SA_ATTR_BND_INFO_P(S)))
#define SA_ATTR_BND_AUTH_PROT_LEV_VALID(S) \
(SA_BND_AUTH_PROT_LEV_VALID(SA_ATTR_BND_INFO_P(S)))
#define SA_ATTR_BND_AUTH_AUTHN_SVC_VALID(S) \
(SA_BND_AUTH_AUTHN_SVC_VALID(SA_ATTR_BND_INFO_P(S)))
#define SA_ATTR_BND_AUTH_AUTHZ_SVC_VALID(S) \
(SA_BND_AUTH_AUTHZ_SVC_VALID(SA_ATTR_BND_INFO_P(S))
#define SA_SCH_FLAG_IS_SET(S,F) \
(((S)->schema_entry_flags & (F)) == (F))
#define SA_SCH_FLAG_IS_SET_UNIQUE(S) \
(SA_SCH_FLAG_IS_SET((S),sec_attr_sch_entry_unique))
#define SA_SCH_FLAG_IS_SET_MULTI_INST(S) \
(SA_SCH_FLAG_IS_SET((S),sec_attr_sch_entry_multi_inst))
#define SA_SCH_FLAG_IS_SET_RESERVED(S) \
(SA_SCH_FLAG_IS_SET((S),sec_attr_sch_entry_reserved))
#define SA_SCH_FLAG_IS_SET_USE_DEFAULTS(S) \
(SA_SCH_FLAG_IS_SET((S),sec_attr_sch_entry_use_defaults))