Use sshbuf_read() to read directly into the channel input buffer
authordjm <djm@openbsd.org>
Sat, 22 Jan 2022 00:45:31 +0000 (00:45 +0000)
committerdjm <djm@openbsd.org>
Sat, 22 Jan 2022 00:45:31 +0000 (00:45 +0000)
commitce08ede1e6a72f2fd3f54385b4cba8cc58e91b44
tree66116f7962dc18afa4432c381c255742e3d264bc
parentae24c81140aec6669c10633ebceefcfee765271b
Use sshbuf_read() to read directly into the channel input buffer
rather than into a stack buffer that needs to be copied again;
Improves performance by about 1% on cipher-speed.sh
feedback dtucker@ ok markus@
usr.bin/ssh/channels.c