+static inline bool greylist_check_awlentry(const greylist_config_t *config,
+ struct awl_entry *aent, time_t now)
+{
+ return !(now - aent->last > config->max_age);
+}
+
+static inline bool greylist_check_object(const greylist_config_t *config,
+ const struct obj_entry *oent, time_t now)
+{
+ return !(now - oent->last > config->max_age
+ || (oent->last - oent->first < config->delay
+ && now - oent->last > config->retry_window));
+}
+