Home | History | Annotate | Download | only in dropbear

Lines Matching refs:writebuf

53 	buffer * writebuf = NULL;
59 writebuf = (buffer*)examine(&ses.writequeue);
61 len = writebuf->len - writebuf->pos;
64 written = write(ses.sock, buf_getptr(writebuf, len), len);
82 buf_free(writebuf);
83 writebuf = NULL;
86 buf_incrpos(writebuf, written);
408 /* encrypt the writepayload, putting into writebuf, ready for write_packet()
414 buffer * writebuf; /* the packet which will go on the wire */
478 writebuf = buf_new(clearwritebuf->len + macsize);
482 memcpy(buf_getwriteptr(writebuf, clearwritebuf->len),
485 buf_incrwritepos(writebuf, clearwritebuf->len);
490 buf_getwriteptr(writebuf, blocksize),
496 buf_incrwritepos(writebuf, blocksize);
501 writemac(writebuf, clearwritebuf);
508 buf_setpos(writebuf, 0);
509 enqueue(&ses.writequeue, (void*)writebuf);
512 ses.kexstate.datatrans += writebuf->len;