Lines Matching refs:entries
66 struct hostkey_entry *entries;
226 ret->entries = NULL;
254 if ((tmp = recallocarray(hostkeys->entries, hostkeys->num_entries,
255 hostkeys->num_entries + 1, sizeof(*hostkeys->entries))) == NULL)
257 hostkeys->entries = tmp;
258 hostkeys->entries[hostkeys->num_entries].host = xstrdup(ctx->host);
259 hostkeys->entries[hostkeys->num_entries].file = xstrdup(l->path);
260 hostkeys->entries[hostkeys->num_entries].line = l->linenum;
261 hostkeys->entries[hostkeys->num_entries].key = l->key;
263 hostkeys->entries[hostkeys->num_entries].marker = l->marker;
297 free(hostkeys->entries[i].host);
298 free(hostkeys->entries[i].file);
299 sshkey_free(hostkeys->entries[i].key);
300 explicit_bzero(hostkeys->entries + i, sizeof(*hostkeys->entries));
302 free(hostkeys->entries);
314 if (hostkeys->entries[i].marker != MRK_REVOKE)
316 if (sshkey_equal_public(k, hostkeys->entries[i].key))
320 hostkeys->entries[i].key))
354 if (hostkeys->entries[i].marker != want_marker)
357 if (hostkeys->entries[i].key->type != keytype)
361 *found = hostkeys->entries + i;
362 k = hostkeys->entries[i].key;
367 hostkeys->entries[i].key)) {
371 *found = hostkeys->entries + i;
375 if (sshkey_equal(k, hostkeys->entries[i].key)) {
378 *found = hostkeys->entries + i;
384 *found = hostkeys->entries + i;
568 /* Remove all entries for the specified host from the file */