328
335
/* it must be aware of the server kex message */
329
336
/* it can fail if option is null, not any user specified kex method matches the server one, if not any default kex matches */
332
339
KEX *server = &session->server_kex;
333
340
KEX *client=&session->client_kex;
343
345
client->methods=malloc(10 * sizeof(char **));
344
346
if (client->methods == NULL) {
345
347
ssh_set_error(session, SSH_FATAL, "No space left");