Lines Matching refs:peer
175 buffer_clear(&kex->peer); in kex_finish()
232 buffer_append(&kex->peer, ptr, dlen); in kex_input_kexinit()
286 buffer_init(&kex->peer); in kex_setup()
438 proposals_match(char *my[PROPOSAL_MAX], char *peer[PROPOSAL_MAX]) in proposals_match()
449 if ((p = strchr(peer[*idx], ',')) != NULL) in proposals_match()
451 if (strcmp(my[*idx], peer[*idx]) != 0) { in proposals_match()
453 my[*idx], peer[*idx]); in proposals_match()
465 char **my, **peer; in kex_choose_conf() local
477 peer = kex_buf2prop(&kex->peer, &first_kex_follows); in kex_choose_conf()
480 cprop=peer; in kex_choose_conf()
484 sprop=peer; in kex_choose_conf()
522 if (first_kex_follows && !proposals_match(my, peer) && in kex_choose_conf()
531 p_langs_c2s = peer[PROPOSAL_LANG_CTOS]; in kex_choose_conf()
532 p_langs_s2c = peer[PROPOSAL_LANG_STOC]; in kex_choose_conf()
615 kex_prop_free(peer); in kex_choose_conf()