Ethereal-dev: Re: [Ethereal-dev] Create a new tvbuf when decrypting?

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Mark Atwood <mra@xxxxxxxxx>
Date: 13 Nov 2000 12:57:56 -0800
Gilbert Ramirez <gram@xxxxxxxxxx> writes:
> On Mon, Nov 13, 2000 at 12:21:03PM -0800, Mark Atwood wrote:
> > 
> > How do I create a new tvbuf, with "new" data in it, and what are 
> > the issues with automaticially freeing it, etc?
> 
> The automatic free on the original tvbuff, of course, won't free
> your new tvbuff, as you rightly guessed, since as far as the tvbuff
> routines are concerned, they are not connected.
> What you need is a way for any arbitrary tvbuff to have a "child"
> TVBUFF_REAL_DATA. The child is freed when the parent is freed. Automatic
> descruction of the object would then take place. This ability does not
> yet exist in the tvbuff routines, but I could add it if it sounds
> useful.
> Let me know if that will work for you, and if so, I'll add the
> ability to chain TVBUFF_REAL_DATA's under other tvbuffs.

That would work for me, and be very useful. Mine isn't the only
protocol with encryption,

-- 
Mark Atwood   | The summit of Mount Everest is marine limestone.
mra@xxxxxxxxx | 
http://www.pobox.com/~mra