Lines Matching defs:peer
491 error("too many SSH2_MSG_EXT_INFO messages sent by peer");
566 sshbuf_reset(kex->peer);
627 if ((r = sshbuf_put(kex->peer, ptr, dlen)) != 0)
677 (kex->peer = sshbuf_new()) == NULL ||
734 sshbuf_free(kex->peer);
898 proposals_match(char *my[PROPOSAL_MAX], char *peer[PROPOSAL_MAX])
909 if ((p = strchr(peer[*idx], ',')) != NULL)
911 if (strcmp(my[*idx], peer[*idx]) != 0) {
912 debug2("proposal mismatch: my %s peer %s",
913 my[*idx], peer[*idx]);
922 kexalgs_contains(char **peer, const char *ext)
924 return kex_has_any_alg(peer[PROPOSAL_KEX_ALGS], ext);
932 char **my = NULL, **peer = NULL;
942 debug2("peer %s KEXINIT proposal", kex->server ? "client" : "server");
943 if ((r = kex_buf2prop(kex->peer, &first_kex_follows, &peer)) != 0)
947 cprop=peer;
951 sprop=peer;
954 /* Check whether peer supports ext_info/kex_strict */
957 kex->ext_info_c = kexalgs_contains(peer, "ext-info-c");
958 kex->kex_strict = kexalgs_contains(peer,
961 kex->ext_info_s = kexalgs_contains(peer, "ext-info-s");
962 kex->kex_strict = kexalgs_contains(peer,
976 if (kex_has_any_alg(peer[PROPOSAL_SERVER_HOST_KEY_ALGS],
979 if (kex_has_any_alg(peer[PROPOSAL_SERVER_HOST_KEY_ALGS],
987 kex->failed_choice = peer[PROPOSAL_KEX_ALGS];
988 peer[PROPOSAL_KEX_ALGS] = NULL;
993 kex->failed_choice = peer[PROPOSAL_SERVER_HOST_KEY_ALGS];
994 peer[PROPOSAL_SERVER_HOST_KEY_ALGS] = NULL;
1010 kex->failed_choice = peer[nenc];
1011 peer[nenc] = NULL;
1019 kex->failed_choice = peer[nmac];
1020 peer[nmac] = NULL;
1025 kex->failed_choice = peer[ncomp];
1026 peer[ncomp] = NULL;
1078 if (first_kex_follows && !proposals_match(my, peer))
1083 kex_prop_free(peer);
1240 * Send a plaintext error message to the peer, suffixed by \r\n.
1259 * Sends our identification string and waits for the peer's. Will block for