Home
last modified time | relevance | path

Searched refs:nkeys (Results 1 – 19 of 19) sorted by relevance

/openssh-portable/regress/
H A Dhostkey-rotate.sh18 nkeys=0
23 nkeys=`expr $nkeys + 1`
66 expect_nkeys $nkeys "learn hostkeys"
75 expect_nkeys $nkeys "learn hostkeys $k"
88 expect_nkeys $nkeys "learn hostkeys"
101 expect_nkeys `expr $nkeys + 1` "learn hostkeys"
113 expect_nkeys $nkeys "learn hostkeys"
/openssh-portable/
H A Dssh-pkcs11-client.c323 u_int nkeys, i; in pkcs11_add_provider() local
340 if ((r = sshbuf_get_u32(msg, &nkeys)) != 0) in pkcs11_add_provider()
342 *keysp = xcalloc(nkeys, sizeof(struct sshkey *)); in pkcs11_add_provider()
344 *labelsp = xcalloc(nkeys, sizeof(char *)); in pkcs11_add_provider()
345 for (i = 0; i < nkeys; i++) { in pkcs11_add_provider()
362 if ((r = sshbuf_get_u32(msg, &nkeys)) != 0) in pkcs11_add_provider()
363 nkeys = -1; in pkcs11_add_provider()
365 nkeys = -1; in pkcs11_add_provider()
368 return (nkeys); in pkcs11_add_provider()
H A Dssh-pkcs11.c676 for (i = 0; i < *nkeys; i++) in pkcs11_key_included()
1149 (*keysp)[*nkeys] = key; in pkcs11_fetch_certs()
1155 *nkeys = *nkeys + 1; in pkcs11_fetch_certs()
1262 (*keysp)[*nkeys] = key; in pkcs11_fetch_keys()
1268 *nkeys = *nkeys + 1; in pkcs11_fetch_keys()
1478 int nkeys, need_finalize = 0; in pkcs11_register_provider() local
1562 nkeys = 0; in pkcs11_register_provider()
1617 return (nkeys); in pkcs11_register_provider()
1642 int nkeys; in pkcs11_add_provider() local
1653 if (nkeys == 0) in pkcs11_add_provider()
[all …]
H A Dssh-sk-client.c386 size_t i, nkeys = 0; in sshsk_load_resident() local
420 if ((tmp = recallocarray(keys, nkeys, nkeys + 1, in sshsk_load_resident()
426 nkeys, sshkey_type(key), key->sk_application); in sshsk_load_resident()
428 keys[nkeys++] = key; in sshsk_load_resident()
435 *nkeysp = nkeys; in sshsk_load_resident()
437 nkeys = 0; in sshsk_load_resident()
440 for (i = 0; i < nkeys; i++) in sshsk_load_resident()
H A Dssh-pkcs11-helper.c122 int r, i, nkeys; in process_add() local
133 if ((nkeys = pkcs11_add_provider(name, pin, &keys, &labels)) > 0) { in process_add()
136 (r = sshbuf_put_u32(msg, nkeys)) != 0) in process_add()
138 for (i = 0; i < nkeys; i++) { in process_add()
155 if ((r = sshbuf_put_u32(msg, -nkeys)) != 0) in process_add()
H A Dssh-sk-helper.c215 size_t nkeys = 0, i; in process_load_resident() local
231 &keys, &nkeys)) != 0) { in process_load_resident()
243 for (i = 0; i < nkeys; i++) { in process_load_resident()
256 for (i = 0; i < nkeys; i++) in process_load_resident()
H A Dssh-sk.c740 size_t i, nrks = 0, nkeys = 0; in sshsk_load_resident() local
783 if ((tmp = recallocarray(keys, nkeys, nkeys + 1, in sshsk_load_resident()
790 keys[nkeys++] = key; in sshsk_load_resident()
796 *nkeysp = nkeys; in sshsk_load_resident()
798 nkeys = 0; in sshsk_load_resident()
805 if (nkeys != 0) { in sshsk_load_resident()
806 for (i = 0; i < nkeys; i++) in sshsk_load_resident()
H A Dssh-add.c291 for (i = 0; i < idlist->nkeys; i++) { in add_file()
483 for (i = 0; i < idlist->nkeys; i++) { in list_identities()
545 size_t nkeys, i; in load_resident_keys() local
551 &keys, &nkeys)) != 0) { in load_resident_keys()
555 for (i = 0; i < nkeys; i++) { in load_resident_keys()
585 if (nkeys == 0) in load_resident_keys()
H A Dclientloop.c1831 size_t nkeys, nnew; member
1849 for (i = 0; i < ctx->nkeys; i++) in hostkeys_update_ctx_free()
1872 for (i = 0; i < ctx->nkeys; i++) { in hostkeys_find()
1912 for (i = 0; i < ctx->nkeys; i++) { in update_known_hosts()
2156 for (i = 0; i < ctx->nkeys; i++) { in client_input_hostkeys()
2164 if ((tmp = recallocarray(ctx->keys, ctx->nkeys, ctx->nkeys + 1, in client_input_hostkeys()
2167 __func__, ctx->nkeys); in client_input_hostkeys()
2169 ctx->keys[ctx->nkeys++] = key; in client_input_hostkeys()
2173 if (ctx->nkeys == 0) { in client_input_hostkeys()
2208 for (i = 0; i < ctx->nkeys; i++) { in client_input_hostkeys()
[all …]
H A Dhostfile.c468 size_t nkeys; member
491 for (i = 0; i < ctx->nkeys; i++) { in host_delete()
523 struct sshkey **keys, size_t nkeys, int store_hash, int quiet, int hash_alg) in hostfile_replace_entries() argument
537 if ((ctx.skip_keys = calloc(nkeys, sizeof(*ctx.skip_keys))) == NULL) in hostfile_replace_entries()
540 ctx.nkeys = nkeys; in hostfile_replace_entries()
575 for (i = 0; i < nkeys; i++) { in hostfile_replace_entries()
H A Dsshconnect.h30 int nkeys; member
H A Dhostfile.h48 const char *host, const char *ip, struct sshkey **keys, size_t nkeys,
H A Dauthfd.h21 size_t nkeys; member
H A Dssh.c1452 sensitive_data.nkeys = 0; in main()
1455 sensitive_data.nkeys = 10; in main()
1456 sensitive_data.keys = xcalloc(sensitive_data.nkeys, in main()
1461 if ((o) >= sensitive_data.nkeys) \ in main()
1467 if ((o) >= sensitive_data.nkeys) \ in main()
1591 if (sensitive_data.nkeys != 0) { in main()
1592 for (i = 0; i < sensitive_data.nkeys; i++) { in main()
2104 int nkeys; in load_public_identity_files() local
2121 (nkeys = pkcs11_add_provider(options.pkcs11_provider, NULL, in load_public_identity_files()
2123 for (i = 0; i < nkeys; i++) { in load_public_identity_files()
H A Dauthfd.c305 idl->nkeys = num; in ssh_fetch_identitylist()
323 for (i = 0; i < idl->nkeys; i++) { in ssh_free_identitylist()
349 for (i = 0; i < idlist->nkeys; i++) { in ssh_agent_has_key()
H A Dssh-keygen.c831 int i, nkeys; in do_download() local
841 if (nkeys <= 0) in do_download()
843 for (i = 0; i < nkeys; i++) { in do_download()
1705 int r, i, nkeys; in load_pkcs11_key() local
1714 if (nkeys <= 0) in load_pkcs11_key()
1716 for (i = 0; i < nkeys; i++) { in load_pkcs11_key()
2966 size_t nkeys, i; in do_download_sk() local
2976 &keys, &nkeys)) != 0) { in do_download_sk()
2981 if (nkeys == 0) in do_download_sk()
3041 if (i >= nkeys) in do_download_sk()
[all …]
H A Dsshd.c779 u_int i, nkeys; local
789 for (i = nkeys = 0; i < options.num_host_key_files; i++) {
799 if (nkeys == 0) {
816 nkeys++;
818 debug3("%s: sent %u hostkeys", __func__, nkeys);
819 if (nkeys == 0)
H A Dsshconnect2.c1633 for (j = 0; j < idlist->nkeys; j++) { in pubkey_prepare()
2052 for (i = 0; i < authctxt->sensitive->nkeys; i++) { in userauth_hostbased()
H A Dsshkey.c4087 u_int blocksize, rounds, nkeys, encrypted_len, check1, check2; in sshkey_parse_private2() local
4151 (r = sshbuf_get_u32(decoded, &nkeys)) != 0 || in sshkey_parse_private2()
4174 if (nkeys != 1) { in sshkey_parse_private2()

Completed in 118 milliseconds