Home
last modified time | relevance | path

Searched refs:trans_zstream (Results 1 – 4 of 4) sorted by relevance

/external/dropbear/
Dpacket.c577 ses.keys->trans_zstream->avail_in = endpos - src->pos; in buf_compress()
578 ses.keys->trans_zstream->next_in = in buf_compress()
579 buf_getptr(src, ses.keys->trans_zstream->avail_in); in buf_compress()
581 ses.keys->trans_zstream->avail_out = dest->size - dest->pos; in buf_compress()
582 ses.keys->trans_zstream->next_out = in buf_compress()
583 buf_getwriteptr(dest, ses.keys->trans_zstream->avail_out); in buf_compress()
585 result = deflate(ses.keys->trans_zstream, Z_SYNC_FLUSH); in buf_compress()
587 buf_setpos(src, endpos - ses.keys->trans_zstream->avail_in); in buf_compress()
588 buf_setlen(dest, dest->size - ses.keys->trans_zstream->avail_out); in buf_compress()
595 if (ses.keys->trans_zstream->avail_in == 0) { in buf_compress()
[all …]
Dcommon-kex.c357 ses.newkeys->trans_zstream = (z_streamp)m_malloc(sizeof(z_stream)); in gen_new_zstreams()
358 ses.newkeys->trans_zstream->zalloc = Z_NULL; in gen_new_zstreams()
359 ses.newkeys->trans_zstream->zfree = Z_NULL; in gen_new_zstreams()
361 if (deflateInit(ses.newkeys->trans_zstream, Z_DEFAULT_COMPRESSION) in gen_new_zstreams()
366 ses.newkeys->trans_zstream = NULL; in gen_new_zstreams()
377 if (ses.keys->trans_zstream != NULL) { in gen_new_zstreams()
378 if (deflateEnd(ses.keys->trans_zstream) == Z_STREAM_ERROR) { in gen_new_zstreams()
382 m_free(ses.keys->trans_zstream); in gen_new_zstreams()
Dsession.h73 z_streamp trans_zstream; member
Dcommon-session.c103 ses.keys->trans_zstream = NULL; in common_session_init()