• Home
  • Raw
  • Download

Lines Matching refs:server2

40 	struct ssh *client, *server, *server2;  member
203 struct ssh *client = NULL, *server = NULL, *server2 = NULL; in do_kex_with_key() local
224 ASSERT_INT_EQ(ssh_init(&server2, 1, NULL), 0); in do_kex_with_key()
227 ASSERT_PTR_NE(server2, NULL); in do_kex_with_key()
238 hook_ctx.server2 = server2; in do_kex_with_key()
241 ssh_packet_set_input_hook(server2, packet_hook, &hook_ctx); in do_kex_with_key()
270 ASSERT_INT_EQ(ssh_add_hostkey(server2, prvkey), 0); in do_kex_with_key()
271 kex_free(server2->kex); /* XXX or should ssh_packet_set_state()? */ in do_kex_with_key()
272 ASSERT_INT_EQ(ssh_packet_set_state(server2, state), 0); in do_kex_with_key()
275 ASSERT_PTR_NE(server2->kex, NULL); in do_kex_with_key()
278 server2->kex->kex[KEX_DH_GRP1_SHA1] = kexdh_server; in do_kex_with_key()
279 server2->kex->kex[KEX_DH_GRP14_SHA1] = kexdh_server; in do_kex_with_key()
280 server2->kex->kex[KEX_DH_GRP14_SHA256] = kexdh_server; in do_kex_with_key()
281 server2->kex->kex[KEX_DH_GRP16_SHA512] = kexdh_server; in do_kex_with_key()
282 server2->kex->kex[KEX_DH_GRP18_SHA512] = kexdh_server; in do_kex_with_key()
283 server2->kex->kex[KEX_DH_GEX_SHA1] = kexgex_server; in do_kex_with_key()
284 server2->kex->kex[KEX_DH_GEX_SHA256] = kexgex_server; in do_kex_with_key()
286 server2->kex->kex[KEX_ECDH_SHA2] = kexecdh_server; in do_kex_with_key()
289 server2->kex->kex[KEX_C25519_SHA256] = kexc25519_server; in do_kex_with_key()
290 server2->kex->load_host_public_key = server->kex->load_host_public_key; in do_kex_with_key()
291 server2->kex->load_host_private_key = server->kex->load_host_private_key; in do_kex_with_key()
292 server2->kex->sign = server->kex->sign; in do_kex_with_key()
296 ASSERT_INT_EQ(kex_send_kexinit(server2), 0); in do_kex_with_key()
297 run_kex(client, server2); in do_kex_with_key()
299 run_kex(client, server2); in do_kex_with_key()
306 ssh_free(server2); in do_kex_with_key()