Lines Matching refs:ch_temp
1368 pss->ch_temp = sshd_zalloc(sizeof(*pss->ch_temp)); in lws_ssh_parse_plaintext()
1369 if (!pss->ch_temp) in lws_ssh_parse_plaintext()
1372 pss->ch_temp->type = SSH_CH_TYPE_SESSION; in lws_ssh_parse_plaintext()
1373 pss->ch_temp->pss = pss; in lws_ssh_parse_plaintext()
1378 pss->ch_temp->sender_ch = pss->len; in lws_ssh_parse_plaintext()
1383 pss->ch_temp->window = pss->len; in lws_ssh_parse_plaintext()
1387 pss->ch_temp->max_pkt = pss->len; in lws_ssh_parse_plaintext()
1388 pss->ch_temp->peer_window_est = LWS_SSH_INITIAL_WINDOW; in lws_ssh_parse_plaintext()
1389 pss->ch_temp->server_ch = pss->next_ch_num++; in lws_ssh_parse_plaintext()
1395 pss->ch_temp->next = pss->ch_list; in lws_ssh_parse_plaintext()
1396 pss->ch_list = pss->ch_temp; in lws_ssh_parse_plaintext()
1399 &pss->ch_temp->priv); in lws_ssh_parse_plaintext()
1400 write_task(pss, pss->ch_temp, SSH_WT_CH_OPEN_CONF); in lws_ssh_parse_plaintext()
1422 pss->ch_temp = ssh_get_server_ch(pss, pss->ch_recip); in lws_ssh_parse_plaintext()
1437 pss->channel_doing_spawn = pss->ch_temp->server_ch; in lws_ssh_parse_plaintext()
1439 !pss->vhd->ops->shell(pss->ch_temp->priv, in lws_ssh_parse_plaintext()
1441 lws_ssh_exec_finish, pss->ch_temp)) { in lws_ssh_parse_plaintext()
1444 write_task_insert(pss, pss->ch_temp, in lws_ssh_parse_plaintext()
1514 n = pss->vhd->ops->pty_req(pss->ch_temp->priv, in lws_ssh_parse_plaintext()
1520 write_task(pss, pss->ch_temp, SSH_WT_CHRQ_SUCC); in lws_ssh_parse_plaintext()
1533 if (pss->vhd->ops->set_env(pss->ch_temp->priv, in lws_ssh_parse_plaintext()
1558 pss->channel_doing_spawn = pss->ch_temp->server_ch; in lws_ssh_parse_plaintext()
1561 !pss->vhd->ops->exec(pss->ch_temp->priv, pss->wsi, in lws_ssh_parse_plaintext()
1563 lws_ssh_exec_finish, pss->ch_temp)) { in lws_ssh_parse_plaintext()
1566 write_task_insert(pss, pss->ch_temp, in lws_ssh_parse_plaintext()
1597 pss->ch_temp->type = SSH_CH_TYPE_SCP; in lws_ssh_parse_plaintext()
1598 pss->ch_temp->sub = (lws_subprotocol *)scp; in lws_ssh_parse_plaintext()
1603 write_task(pss, pss->ch_temp, SSH_WT_CHRQ_SUCC); in lws_ssh_parse_plaintext()
1606 write_task(pss, pss->ch_temp, SSH_WT_SCP_ACK_OKAY); in lws_ssh_parse_plaintext()
1617 pss->ch_temp->type = SSH_CH_TYPE_SFTP; in lws_ssh_parse_plaintext()
1685 write_task(pss, pss->ch_temp, in lws_ssh_parse_plaintext()
1812 write_task(pss, pss->ch_temp, SSH_WT_CHRQ_FAILURE); in lws_ssh_parse_plaintext()
1817 if (pss->ch_temp) { in lws_ssh_parse_plaintext()
1818 free(pss->ch_temp); in lws_ssh_parse_plaintext()
1819 pss->ch_temp = NULL; in lws_ssh_parse_plaintext()
1821 write_task(pss, pss->ch_temp, SSH_WT_CH_FAILURE); in lws_ssh_parse_plaintext()
2258 lws_p32(pp, pss->ch_temp->server_ch); in lws_callback_raw_sshd()
2260 lws_p32(pp, pss->ch_temp->sender_ch); in lws_callback_raw_sshd()
2270 pss->ch_temp = NULL; in lws_callback_raw_sshd()
2506 pss->vhd->ops->child_process_io(pss->ch_temp->priv, in lws_callback_raw_sshd()
2527 pss->vhd->ops->child_process_terminated(pss->ch_temp->priv, in lws_callback_raw_sshd()