goto err;
}
+ /* TODO: Battery time check should be moved to
+ * FCB. Implementation of FRSH API is meant only as a thin
+ * wrapper of FRES framework and the FRES framework could
+ * theoretically be used without FRSH API. Moreover, if there
+ * is some logging mechanism in FCB, this contract rejection
+ * will not be logged. */
p = fres_contract_get_power_management(*contract);
if (p && !fosa_rel_time_is_null(p->min_expiration)) {
frsh_abs_time_t req_time, exp_time;