sshbuf_avail
if ((avail = sshbuf_avail(c->input)) == 0)
size_t sshbuf_avail(const struct sshbuf *buf);