Home | History | Annotate | Download | only in openssh

Lines Matching defs:proposal

243 /* put algorithm proposal into buffer */
245 kex_prop2buf(struct sshbuf *b, char *proposal[PROPOSAL_MAX])
261 if ((r = sshbuf_put_cstring(b, proposal[i])) != 0)
270 /* parse buffer and return algorithm proposal */
277 char **proposal = NULL;
281 if ((proposal = calloc(PROPOSAL_MAX, sizeof(char *))) == NULL)
289 /* extract kex init proposal strings */
291 if ((r = sshbuf_get_cstring(b, &(proposal[i]), NULL)) != 0)
293 debug2("%s: %s", proposal_names[i], proposal[i]);
304 *propp = proposal;
306 if (r != 0 && proposal != NULL)
307 kex_prop_free(proposal);
313 kex_prop_free(char **proposal)
317 if (proposal == NULL)
320 free(proposal[i]);
321 free(proposal);
531 kex_new(struct ssh *ssh, char *proposal[PROPOSAL_MAX], struct kex **kexp)
544 if ((r = kex_prop2buf(kex->my, proposal)) != 0)
617 kex_setup(struct ssh *ssh, char *proposal[PROPOSAL_MAX])
621 if ((r = kex_new(ssh, proposal, &ssh->kex)) != 0)
761 debug2("proposal mismatch: my %s peer %s",
781 debug2("local %s KEXINIT proposal", kex->server ? "server" : "client");
784 debug2("peer %s KEXINIT proposal", kex->server ? "client" : "server");