c->halfopen = FALSE;
static void ssh1_smsg_agent_open(Ssh ssh, struct Packet *pktin){    /* Remote side is trying to open a channel to talk to our     * agent. Give them back a local channel number. */    struct ssh_channel *c;    int remoteid = ssh_pkt_getuint32(pktin);    /* Refuse if agent forwarding is disabled. */    if (!ssh->agentfwd_enabled) {	send_packet(ssh, SSH1_MSG_CHANNEL_OPEN_FAILURE,		    PKT_INT, remoteid, PKT_END);    } else {	c = snew(struct ssh_channel);	c->ssh = ssh;	c->remoteid = remoteid;	c->localid = alloc_channel_id(ssh);	c->closes = 0;	c->v.v1.throttling = 0;	c->type = CHAN_AGENT;	/* identify channel type */	c->u.a.lensofar = 0;	add234(ssh->channels, c);	send_packet(ssh, SSH1_MSG_CHANNEL_OPEN_CONFIRMATION,		    PKT_INT, c->remoteid, PKT_INT, c->localid,		    PKT_END);    }}