dispatch_set(SSH2_MSG_KEX_DH_GEX_GROUP, &kexgex_input_group);  state = xmalloc(sizeof(*state)); state->nbits = dh_estimate(kex->we_need * 8); kex->state = state;
nbits = dh_estimate(kex->we_need * 8);
kexgex_client(Kex *kex){	State *state;	dispatch_set(SSH2_MSG_KEX_DH_GEX_GROUP, &kexgex_input_group);	state = xmalloc(sizeof(*state));	state->nbits = dh_estimate(kex->we_need * 8);	kex->state = state;	if (datafellows & SSH_OLD_DHGEX) {		debug("SSH2_MSG_KEX_DH_GEX_REQUEST_OLD sent");		/* Old GEX request */		packet_start(SSH2_MSG_KEX_DH_GEX_REQUEST_OLD);		packet_put_int(state->nbits);		state->min = DH_GRP_MIN;		state->max = DH_GRP_MAX;	} else {		debug("SSH2_MSG_KEX_DH_GEX_REQUEST sent");		/* New GEX request */		state->min = DH_GRP_MIN;		state->max = DH_GRP_MAX;		packet_start(SSH2_MSG_KEX_DH_GEX_REQUEST);		packet_put_int(state->min);		packet_put_int(state->nbits);		packet_put_int(state->max);	}#ifdef DEBUG_KEXDH	fprintf(stderr, "\nmin = %d, nbits = %d, max = %d\n",	    state->min, state->nbits, state->max);#endif	packet_send();}