Home
last modified time | relevance | path

Searched refs:keys (Results 1 – 24 of 24) sorted by relevance

/openssh-portable/regress/
H A Dkeys-command.sh12 rm -f $OBJ/keys-command-args
14 touch $OBJ/keys-command-args
15 chmod a+rw $OBJ/keys-command-args
26 echo args: "\$@" >> $OBJ/keys-command-args
40 if ! $OBJ/check-perm -m keys-command $KEY_COMMAND ; then
H A Dkrl.sh114 $SSHKEYGEN $OPTS -kf $OBJ/krl-keys $RKEYS \
183 check_krl $f $OBJ/krl-keys $KEYS_RESULT "$TAG"
210 for f in $OBJ/krl-keys $OBJ/krl-cert $OBJ/krl-all \
H A Dprincipals-command.sh57 if ! $OBJ/check-perm -m keys-command $PRINCIPALS_COMMAND ; then
H A DMakefile80 keys-command \
117 key.ed25519-512.pub key.rsa-* keys-command-args kh.* \
/openssh-portable/
H A Dssh-add.c330 left = sshkey_signatures_left(idlist->keys[i]); in add_file()
526 fp = sshkey_fingerprint(idlist->keys[i], in list_identities()
530 sshkey_type(idlist->keys[i])); in list_identities()
539 left = sshkey_signatures_left(idlist->keys[i]); in list_identities()
583 struct sshkey **keys; in load_resident_keys() local
590 &keys, &nkeys)) != 0) { in load_resident_keys()
595 if ((fp = sshkey_fingerprint(keys[i], in load_resident_keys()
601 sshkey_type(keys[i]), fp); in load_resident_keys()
610 sshkey_type(keys[i]), fp); in load_resident_keys()
621 sshkey_free(keys[i]); in load_resident_keys() local
[all …]
H A Dssh-sk-client.c384 struct sshkey *key = NULL, **keys = NULL, **tmp; in sshsk_load_resident()
419 if ((tmp = recallocarray(keys, nkeys, nkeys + 1, in sshsk_load_resident()
420 sizeof(*keys))) == NULL) { in sshsk_load_resident()
426 keys = tmp; in sshsk_load_resident()
427 keys[nkeys++] = key; in sshsk_load_resident()
433 *keysp = keys; in sshsk_load_resident()
435 keys = NULL; in sshsk_load_resident()
440 sshkey_free(keys[i]); in sshsk_load_resident() local
441 free(keys); in sshsk_load_resident()
H A Dssh-keysign.c169 struct sshkey *keys[NUM_KEYTYPES], *key = NULL; in main() local
224 keys[i] = NULL; in main()
233 keys[i] = key; in main()
267 if (keys[i] != NULL && in main()
268 sshkey_equal_public(key, keys[i])) { in main()
281 if ((r = sshkey_sign(keys[i], &signature, &slen, data, dlen, in main()
H A Dssh-sk-helper.c219 struct sshkey **keys = NULL; in process_load_resident() local
236 &keys, &nkeys)) != 0) { in process_load_resident()
249 debug_f("key %zu %s %s", i, sshkey_type(keys[i]), in process_load_resident()
250 keys[i]->sk_application); in process_load_resident()
252 if ((r = sshkey_private_serialize(keys[i], kbuf)) != 0) in process_load_resident()
261 sshkey_free(keys[i]); in process_load_resident() local
262 free(keys); in process_load_resident()
H A Dauthfd.c288 (idl->keys = calloc(num, sizeof(*idl->keys))) == NULL || in ssh_fetch_identitylist()
294 if ((r = deserialise_identity2(msg, &(idl->keys[i]), in ssh_fetch_identitylist()
324 if (idl->keys != NULL) in ssh_free_identitylist()
325 sshkey_free(idl->keys[i]); in ssh_free_identitylist()
329 free(idl->keys); in ssh_free_identitylist()
350 if (sshkey_equal_public(idlist->keys[i], key)) { in ssh_agent_has_key()
H A Dssh-pkcs11-helper.c121 struct sshkey **keys = NULL; in process_add() local
133 if ((nkeys = pkcs11_add_provider(name, pin, &keys, &labels)) > 0) { in process_add()
139 if ((r = sshkey_to_blob(keys[i], &blob, &blen)) != 0) { in process_add()
147 add_key(keys[i], name, labels[i]); in process_add() local
154 free(keys); /* keys themselves are transferred to pkcs11_keylist */ in process_add()
H A Dhostfile.c523 struct sshkey * const *keys; member
543 if (!sshkey_equal(ctx->keys[i], l->key)) in host_delete()
574 struct sshkey **keys, size_t nkeys, int store_hash, int quiet, int hash_alg) in hostfile_replace_entries() argument
594 ctx.keys = keys; in hostfile_replace_entries()
634 if ((fp = sshkey_fingerprint(keys[i], hash_alg, in hostfile_replace_entries()
644 keys[i], store_hash)) { in hostfile_replace_entries()
651 keys[i], store_hash)) { in hostfile_replace_entries()
658 keys[i], store_hash)) { in hostfile_replace_entries()
666 sshkey_ssh_name(keys[i]), fp); in hostfile_replace_entries()
H A Dssh-keygen.c866 sshkey_free(keys[i]); in do_download() local
869 free(keys); in do_download()
1702 &keys, NULL); in load_pkcs11_key()
1708 private = keys[i]; in load_pkcs11_key()
1711 sshkey_free(keys[i]); in load_pkcs11_key() local
1713 free(keys); in load_pkcs11_key()
2953 struct sshkey **keys; in do_download_sk() local
2983 sshkey_type(keys[i]), keys[i]->type); in do_download_sk()
2990 sshkey_type(keys[i]), fp, keys[i]->sk_application, in do_download_sk()
3038 sshkey_free(keys[i]); in do_download_sk() local
[all …]
H A Dclientloop.c1799 struct sshkey **keys; member
1827 sshkey_free(ctx->keys[i]); in hostkeys_update_ctx_free()
1828 free(ctx->keys); in hostkeys_update_ctx_free()
1879 sshkey_ssh_name(ctx->keys[i]), in hostkeys_find()
1924 if (!sshkey_equal(l->key, ctx->keys[i])) in hostkeys_find()
2028 sshkey_type(ctx->keys[i]), fp); in update_known_hosts()
2163 sshkey_type(ctx->keys[i]), i); in client_global_hostkeys_private_confirm()
2262 if (sshkey_equal(key, ctx->keys[i])) { in client_input_hostkeys()
2270 sizeof(*ctx->keys))) == NULL) in client_input_hostkeys()
2273 ctx->keys = tmp; in client_input_hostkeys()
[all …]
H A Dssh-sk.c749 struct sshkey *key = NULL, **keys = NULL, **tmp; in sshsk_load_resident()
791 if ((tmp = recallocarray(keys, nkeys, nkeys + 1, in sshsk_load_resident()
797 keys = tmp; in sshsk_load_resident()
798 keys[nkeys++] = key; in sshsk_load_resident()
803 *keysp = keys; in sshsk_load_resident()
805 keys = NULL; in sshsk_load_resident()
815 sshkey_free(keys[i]); in sshsk_load_resident() local
816 free(keys); in sshsk_load_resident()
H A Dsshconnect2.c337 struct idlist keys; member
1627 preferred = &authctxt->keys; in pubkey_prepare()
1703 id->key = idlist->keys[j]; in pubkey_prepare()
1705 idlist->keys[j] = NULL; in pubkey_prepare()
1772 for (id = TAILQ_FIRST(&authctxt->keys); id; in pubkey_cleanup()
1773 id = TAILQ_FIRST(&authctxt->keys)) { in pubkey_cleanup()
1774 TAILQ_REMOVE(&authctxt->keys, id, next); in pubkey_cleanup()
1786 TAILQ_FOREACH(id, &authctxt->keys, next) in pubkey_reset()
1816 TAILQ_REMOVE(&authctxt->keys, id, next); in userauth_pubkey()
2110 private = authctxt->sensitive->keys[i]; in userauth_hostbased()
[all …]
H A Dsshconnect.h29 struct sshkey **keys; member
H A Dssh.c1552 sensitive_data.keys = NULL; in main()
1555 sensitive_data.keys = xcalloc(sensitive_data.nkeys, in main()
1650 if (sensitive_data.keys[i] != NULL) { in main()
1653 sshkey_free(sensitive_data.keys[i]); in main()
1654 sensitive_data.keys[i] = NULL; in main()
1657 free(sensitive_data.keys); in main()
2164 struct sshkey **keys = NULL; in load_public_identity_files() local
2184 &keys, &comments)) > 0) { in load_public_identity_files()
2187 sshkey_free(keys[i]); in load_public_identity_files() local
2191 identity_keys[n_ids] = keys[i]; in load_public_identity_files()
[all …]
H A Dhostfile.h49 const char *host, const char *ip, struct sshkey **keys, size_t nkeys,
H A Dauthfd.h22 struct sshkey **keys; member
H A Dmisc.c1161 } keys[EXPAND_MAX_KEYS]; in vdollar_percent_expand() local
1176 keys[num_keys].key = va_arg(ap, char *); in vdollar_percent_expand()
1177 if (keys[num_keys].key == NULL) in vdollar_percent_expand()
1179 keys[num_keys].repl = va_arg(ap, char *); in vdollar_percent_expand()
1180 if (keys[num_keys].repl == NULL) { in vdollar_percent_expand()
1182 keys[num_keys].key); in vdollar_percent_expand()
1241 if (strchr(keys[i].key, *string) != NULL) { in vdollar_percent_expand() local
1242 if ((r = sshbuf_put(buf, keys[i].repl, in vdollar_percent_expand()
1243 strlen(keys[i].repl))) != 0) in vdollar_percent_expand()
H A Dkex.c1062 u_char *keys[NKEYS]; in kex_derive_keys() local
1076 shared_secret, &keys[i])) != 0) { in kex_derive_keys()
1078 free(keys[j]); in kex_derive_keys() local
1085 kex->newkeys[mode]->enc.iv = keys[ctos ? 0 : 1]; in kex_derive_keys()
1086 kex->newkeys[mode]->enc.key = keys[ctos ? 2 : 3]; in kex_derive_keys()
1087 kex->newkeys[mode]->mac.key = keys[ctos ? 4 : 5]; in kex_derive_keys()
H A Dssh-agent.c730 struct sshkey **keys = NULL, *k; in process_add_smartcard_key() local
774 count = pkcs11_add_provider(canonical_provider, pin, &keys, &comments); in process_add_smartcard_key()
776 k = keys[i]; in process_add_smartcard_key()
780 keys[i] = NULL; /* transferred */ in process_add_smartcard_key()
794 sshkey_free(keys[i]); in process_add_smartcard_key() local
800 free(keys); in process_add_smartcard_key()
/openssh-portable/contrib/aix/
H A Dbuildbff.sh242 echo Creating host keys if required.
/openssh-portable/contrib/redhat/
H A Dopenssh.spec651 - Add a trigger to add host keys for protocol 2 to the config file, now that
671 - Only require openssl (don't prereq) because we generate keys in the init

Completed in 161 milliseconds