Lines Matching refs:kex

179 	while (!server->kex->done || !client->kex->done) {  in run_kex()
192 ASSERT_INT_EQ(server->kex->done, 1); in run_kex()
193 ASSERT_INT_EQ(client->kex->done, 1); in run_kex()
197 do_kex_with_key(const char *kex, struct sshkey *prvkey, int *c2s, int *s2c, in do_kex_with_key() argument
215 if (kex != NULL) in do_kex_with_key()
216 kex_params.proposal[PROPOSAL_KEX_ALGS] = strdup(kex); in do_kex_with_key()
269 kex_free(server2->kex); /* XXX or should ssh_packet_set_state()? */ in do_kex_with_key()
273 ASSERT_PTR_NE(server2->kex, NULL); in do_kex_with_key()
276 server2->kex->kex[KEX_DH_GRP1_SHA1] = kex_gen_server; in do_kex_with_key()
277 server2->kex->kex[KEX_DH_GRP14_SHA1] = kex_gen_server; in do_kex_with_key()
278 server2->kex->kex[KEX_DH_GRP14_SHA256] = kex_gen_server; in do_kex_with_key()
279 server2->kex->kex[KEX_DH_GRP16_SHA512] = kex_gen_server; in do_kex_with_key()
280 server2->kex->kex[KEX_DH_GRP18_SHA512] = kex_gen_server; in do_kex_with_key()
281 server2->kex->kex[KEX_DH_GEX_SHA1] = kexgex_server; in do_kex_with_key()
282 server2->kex->kex[KEX_DH_GEX_SHA256] = kexgex_server; in do_kex_with_key()
284 server2->kex->kex[KEX_ECDH_SHA2] = kex_gen_server; in do_kex_with_key()
287 server2->kex->kex[KEX_C25519_SHA256] = kex_gen_server; in do_kex_with_key()
288 server2->kex->load_host_public_key = server->kex->load_host_public_key; in do_kex_with_key()
289 server2->kex->load_host_private_key = server->kex->load_host_private_key; in do_kex_with_key()
290 server2->kex->sign = server->kex->sign; in do_kex_with_key()
347 const char *kex = NULL, *kpath = NULL, *data_path = NULL; in main() local
382 kex = optarg; in main()
406 if (kex == NULL || !kex_names_valid(kex) || strchr(kex, ',') != NULL) in main()
440 do_kex_with_key(kex, key, &c2s, &s2c, in main()