Lines Matching defs:keys
193 /* Prefer algorithms that we already have keys for */
257 char *filename; /* comment for agent-only keys */
274 struct idlist keys;
606 * search keys in the reverse order, because last candidate has been
608 * duplicate keys
610 TAILQ_FOREACH_REVERSE(id, &authctxt->keys, idlist, next) {
1189 * try keys in the following order:
1190 * 1. agent keys that are found in the config file
1191 * 2. other agent keys
1192 * 3. keys that are only listed in the config file
1204 TAILQ_INIT(&agent); /* keys from the agent */
1205 TAILQ_INIT(&files); /* keys from the config file */
1206 preferred = &authctxt->keys;
1207 TAILQ_INIT(preferred); /* preferred order of keys */
1209 /* list of keys stored in the filesystem and PKCS#11 */
1223 /* Prefer PKCS11 keys that are explicitly listed */
1246 /* list of keys supported by the agent */
1260 * agent keys from the config file are
1263 if (sshkey_equal(idlist->keys[j], id->key)) {
1274 id->key = idlist->keys[j];
1276 idlist->keys[j] = NULL;
1283 /* append remaining agent keys */
1290 /* append remaining keys from the config file */
1308 for (id = TAILQ_FIRST(&authctxt->keys); id;
1309 id = TAILQ_FIRST(&authctxt->keys)) {
1310 TAILQ_REMOVE(&authctxt->keys, id, next);
1324 while ((id = TAILQ_FIRST(&authctxt->keys))) {
1328 TAILQ_REMOVE(&authctxt->keys, id, next);
1329 TAILQ_INSERT_TAIL(&authctxt->keys, id, next);
1332 * encrypted keys we cannot do this and have to load the
1607 if (authctxt->sensitive->keys[i] == NULL ||
1608 authctxt->sensitive->keys[i]->type == KEY_RSA1 ||
1609 authctxt->sensitive->keys[i]->type == KEY_UNSPEC)
1612 sshkey_ssh_name(authctxt->sensitive->keys[i]),
1617 private = authctxt->sensitive->keys[i];
1618 authctxt->sensitive->keys[i] = NULL;
1624 /* No more keys of this type; advance */