* NULL if no HSDirs are worth trying right now. */
routerstatus_t *
hs_pick_hsdir(smartlist_t *responsible_dirs, const char *req_key_str,
- int *is_rate_limited)
+ bool *is_rate_limited)
{
smartlist_t *usable_responsible_dirs = smartlist_new();
const or_options_t *options = get_options();
routerstatus_t *hs_dir;
time_t now = time(NULL);
int excluded_some;
- int rate_limited;
+ bool rate_limited;
int rate_limited_count = 0;
int responsible_dirs_count = smartlist_len(responsible_dirs);
int use_second_hsdir_index,
int for_fetching, smartlist_t *responsible_dirs);
routerstatus_t *hs_pick_hsdir(smartlist_t *responsible_dirs,
- const char *req_key_str, int *is_rate_limited);
+ const char *req_key_str, bool *is_rate_limited);
time_t hs_hsdir_requery_period(const or_options_t *options);
time_t hs_lookup_last_hid_serv_request(routerstatus_t *hs_dir,
/* Automatically pick an hs dir if none given. */
if (!rs_hsdir) {
- int rate_limited;
+ bool rate_limited;
/* Determine responsible dirs. Even if we can't get all we want, work with
* the ones we have. If it's empty, we'll notice in hs_pick_hsdir(). */