Lines Matching refs:peer
345 sshbuf_reset(kex->peer);
398 if ((r = sshbuf_put(kex->peer, ptr, dlen)) != 0)
444 if ((kex->peer = sshbuf_new()) == NULL ||
509 sshbuf_free(kex->peer);
623 proposals_match(char *my[PROPOSAL_MAX], char *peer[PROPOSAL_MAX])
634 if ((p = strchr(peer[*idx], ',')) != NULL)
636 if (strcmp(my[*idx], peer[*idx]) != 0) {
637 debug2("proposal mismatch: my %s peer %s",
638 my[*idx], peer[*idx]);
651 char **my = NULL, **peer = NULL;
658 (r = kex_buf2prop(kex->peer, &first_kex_follows, &peer)) != 0)
662 cprop=peer;
666 sprop=peer;
672 peer[PROPOSAL_KEX_ALGS], NULL);
694 kex->failed_choice = peer[nenc];
695 peer[nenc] = NULL;
703 kex->failed_choice = peer[nmac];
704 peer[nmac] = NULL;
709 kex->failed_choice = peer[ncomp];
710 peer[ncomp] = NULL;
721 kex->failed_choice = peer[PROPOSAL_KEX_ALGS];
722 peer[PROPOSAL_KEX_ALGS] = NULL;
727 kex->failed_choice = peer[PROPOSAL_SERVER_HOST_KEY_ALGS];
728 peer[PROPOSAL_SERVER_HOST_KEY_ALGS] = NULL;
748 if (first_kex_follows && !proposals_match(my, peer) &&
754 kex_prop_free(peer);