Lines Matching defs:scp
535 struct lws_subprotocol_scp *scp;
1569 * scp sends "scp -t /path/..."
1590 * fake scp
1593 /* we only alloc "exec" of scp for scp destination */
1608 scp = sshd_zalloc(sizeof(*scp));
1609 if (!scp)
1613 pss->ch_temp->sub = (lws_subprotocol *)scp;
1615 scp->ips = SSHS_SCP_COLLECTSTR;
1620 /* we start the scp protocol first by sending an ACK */
1704 scp = &ch->sub->scp;
1705 switch (scp->ips) {
1722 scp->len = (uint64_t)atoll((const char *)pp);
1723 lwsl_notice("scp payload %llu expected\n",
1724 (unsigned long long)scp->len);
1725 scp->ips = SSHS_SCP_PAYLOADIN;
1732 /* the scp file payload */
1736 if (scp->len >= pss->npos)
1737 scp->len -= pss->npos;
1739 scp->len = 0;
1740 if (!scp->len) {
1741 lwsl_notice("scp txfer completed\n");
1742 scp->ips = SSHS_SCP_COLLECTSTR;
1748 default: /* scp payload */