Home
last modified time | relevance | path

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

/openssh-portable/regress/
H A Dhostkey-rotate.sh21 nkeys=0
26 nkeys=`expr $nkeys + 1`
69 expect_nkeys $nkeys "learn hostkeys"
78 expect_nkeys $nkeys "learn hostkeys $k"
91 expect_nkeys $nkeys "learn hostkeys"
104 expect_nkeys `expr $nkeys + 1` "learn hostkeys"
116 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()
361 if ((r = sshbuf_get_u32(msg, &nkeys)) != 0) in pkcs11_add_provider()
362 nkeys = -1; in pkcs11_add_provider()
364 nkeys = -1; in pkcs11_add_provider()
367 return (nkeys); in pkcs11_add_provider()
H A Dssh-pkcs11.c691 for (i = 0; i < *nkeys; i++) in pkcs11_key_included()
1181 (*keysp)[*nkeys] = key; in pkcs11_fetch_certs()
1187 *nkeys = *nkeys + 1; in pkcs11_fetch_certs()
1295 (*keysp)[*nkeys] = key; in pkcs11_fetch_keys()
1301 *nkeys = *nkeys + 1; in pkcs11_fetch_keys()
1511 int nkeys, need_finalize = 0; in pkcs11_register_provider() local
1593 nkeys = 0; in pkcs11_register_provider()
1647 return (nkeys); in pkcs11_register_provider()
1674 int nkeys; in pkcs11_add_provider() local
1685 if (nkeys == 0) in pkcs11_add_provider()
[all …]
H A Dssh-sk-client.c385 size_t i, nkeys = 0; in sshsk_load_resident() local
419 if ((tmp = recallocarray(keys, nkeys, nkeys + 1, in sshsk_load_resident()
424 debug_f("keys[%zu]: %s %s", nkeys, sshkey_type(key), in sshsk_load_resident()
427 keys[nkeys++] = key; in sshsk_load_resident()
434 *nkeysp = nkeys; in sshsk_load_resident()
436 nkeys = 0; in sshsk_load_resident()
439 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()
151 (r = sshbuf_put_u32(msg, -nkeys)) != 0) in process_add()
H A Dssh-sk.c748 size_t i, nrks = 0, nkeys = 0; in sshsk_load_resident() local
791 if ((tmp = recallocarray(keys, nkeys, nkeys + 1, in sshsk_load_resident()
798 keys[nkeys++] = key; in sshsk_load_resident()
804 *nkeysp = nkeys; in sshsk_load_resident()
806 nkeys = 0; in sshsk_load_resident()
813 if (nkeys != 0) { in sshsk_load_resident()
814 for (i = 0; i < nkeys; i++) in sshsk_load_resident()
H A Dssh-sk-helper.c220 size_t nkeys = 0, i; in process_load_resident() local
236 &keys, &nkeys)) != 0) { in process_load_resident()
248 for (i = 0; i < nkeys; i++) { in process_load_resident()
260 for (i = 0; i < nkeys; i++) in process_load_resident()
H A Dclientloop.c1826 for (i = 0; i < ctx->nkeys; i++) in hostkeys_update_ctx_free()
1874 for (i = 0; i < ctx->nkeys; i++) { in hostkeys_find()
1923 for (i = 0; i < ctx->nkeys; i++) { in hostkeys_find()
2019 for (i = 0; i < ctx->nkeys; i++) { in update_known_hosts()
2261 for (i = 0; i < ctx->nkeys; i++) { in client_input_hostkeys()
2269 if ((tmp = recallocarray(ctx->keys, ctx->nkeys, ctx->nkeys + 1, in client_input_hostkeys()
2272 ctx->nkeys); in client_input_hostkeys()
2274 ctx->keys[ctx->nkeys++] = key; in client_input_hostkeys()
2278 if (ctx->nkeys == 0) { in client_input_hostkeys()
2316 for (i = 0; i < ctx->nkeys; i++) { in client_input_hostkeys()
[all …]
H A Dssh-add.c327 for (i = 0; i < idlist->nkeys; i++) { in add_file()
524 for (i = 0; i < idlist->nkeys; i++) { in list_identities()
584 size_t nkeys, i; in load_resident_keys() local
590 &keys, &nkeys)) != 0) { in load_resident_keys()
594 for (i = 0; i < nkeys; i++) { in load_resident_keys()
624 if (nkeys == 0) in load_resident_keys()
H A Dsshconnect.h30 int nkeys; member
H A Dhostfile.c524 size_t nkeys; member
542 for (i = 0; i < ctx->nkeys; i++) { in host_delete()
574 struct sshkey **keys, size_t nkeys, int store_hash, int quiet, int hash_alg) in hostfile_replace_entries() argument
592 if ((ctx.match_keys = calloc(nkeys, sizeof(*ctx.match_keys))) == NULL) in hostfile_replace_entries()
595 ctx.nkeys = nkeys; in hostfile_replace_entries()
631 for (i = 0; i < nkeys; i++) { in hostfile_replace_entries()
H A Dhostfile.h49 const char *host, const char *ip, struct sshkey **keys, size_t nkeys,
H A Dauthfd.h21 size_t nkeys; member
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.c1551 sensitive_data.nkeys = 0; in main()
1554 sensitive_data.nkeys = 10; in main()
1555 sensitive_data.keys = xcalloc(sensitive_data.nkeys, in main()
1560 if ((o) >= sensitive_data.nkeys) \ in main()
1566 if ((o) >= sensitive_data.nkeys) \ in main()
1648 if (sensitive_data.nkeys != 0) { in main()
1649 for (i = 0; i < sensitive_data.nkeys; i++) { in main()
2166 int nkeys; in load_public_identity_files() local
2183 (nkeys = pkcs11_add_provider(options.pkcs11_provider, NULL, in load_public_identity_files()
2185 for (i = 0; i < nkeys; i++) { in load_public_identity_files()
H A Dssh-keygen.c835 int i, nkeys; in do_download() local
845 if (nkeys <= 0) in do_download()
847 for (i = 0; i < nkeys; i++) { in do_download()
1696 int r, i, nkeys; in load_pkcs11_key() local
1703 debug3_f("%d keys", nkeys); in load_pkcs11_key()
1704 if (nkeys <= 0) in load_pkcs11_key()
2954 size_t nkeys, i; in do_download_sk() local
2968 &keys, &nkeys)) != 0) { in do_download_sk()
2974 if (nkeys == 0) in do_download_sk()
3033 if (i >= nkeys) in do_download_sk()
[all …]
H A Dsshd.c775 u_int i, nkeys; local
785 for (i = nkeys = 0; i < options.num_host_key_files; i++) {
794 if (nkeys == 0) {
810 nkeys++;
812 debug3_f("sent %u hostkeys", nkeys);
813 if (nkeys == 0)
H A Dsshkey.c4048 u_int blocksize, rounds, nkeys, encrypted_len, check1, check2; in private2_decrypt() local
4066 (r = sshbuf_get_u32(decoded, &nkeys)) != 0) in private2_decrypt()
4069 if (nkeys != 1) { in private2_decrypt()
4275 u_int nkeys = 0; in sshkey_parse_private2_pubkey() local
4287 (r = sshbuf_get_u32(decoded, &nkeys)) != 0) in sshkey_parse_private2_pubkey()
4290 if (nkeys != 1) { in sshkey_parse_private2_pubkey()
H A Dsshconnect2.c1685 for (j = 0; j < idlist->nkeys; j++) { in pubkey_prepare()
2101 for (i = 0; i < authctxt->sensitive->nkeys; i++) { in userauth_hostbased()

Completed in 177 milliseconds