Lines Matching refs:crs
244 struct revoked_serial rs, *ers, *crs, *irs; in insert_serial_range() local
283 while ((crs = RB_PREV(revoked_serial_tree, rt, ers)) != NULL) { in insert_serial_range()
284 KRL_DBG(("%s: pred %llu:%llu", __func__, crs->lo, crs->hi)); in insert_serial_range()
285 if (ers->lo != 0 && crs->hi < ers->lo - 1) in insert_serial_range()
288 if (crs->lo < ers->lo) { in insert_serial_range()
289 ers->lo = crs->lo; in insert_serial_range()
293 RB_REMOVE(revoked_serial_tree, rt, crs); in insert_serial_range()
294 free(crs); in insert_serial_range()
297 while ((crs = RB_NEXT(revoked_serial_tree, rt, ers)) != NULL) { in insert_serial_range()
298 KRL_DBG(("%s: succ %llu:%llu", __func__, crs->lo, crs->hi)); in insert_serial_range()
299 if (ers->hi != (u_int64_t)-1 && crs->lo > ers->hi + 1) in insert_serial_range()
302 if (crs->hi > ers->hi) { in insert_serial_range()
303 ers->hi = crs->hi; in insert_serial_range()
307 RB_REMOVE(revoked_serial_tree, rt, crs); in insert_serial_range()
308 free(crs); in insert_serial_range()