Ethereal-dev: [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:21:03 -0800
The protocol I am dissecting can be encrypted. I can get the keys and
decrypt the packets just fine. My problem is that I've passive tvbuf's
down into my subroutins to decode the various payloads and
subpayloads.

What I would *like* to do would be to decrypt the packet, create a new
tvbuf with the plaintext, and then continue on with that tvbuf as if
it had never been encrypted.

How do I create a new tvbuf, with "new" data in it, and what are 
the issues with automaticially freeing it, etc?